Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within hadoop
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Hadoop
struggling with setting up classpath for hadoop-mapreduce-client jar
akshay naidu
Ranch Hand
Posts: 85
posted 7 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
$ javac WordCount.java WordCount.java:4: error: package org.apache.hadoop.conf does not exist import org.apache.hadoop.conf.Configuration; ^ WordCount.java:5: error: package org.apache.hadoop.fs does not exist import org.apache.hadoop.fs.Path; ^ WordCount.java:6: error: package org.apache.hadoop.io does not exist import org.apache.hadoop.io.IntWritable; ^ WordCount.java:7: error: package org.apache.hadoop.io does not exist import org.apache.hadoop.io.Text; ^ WordCount.java:8: error: package org.apache.hadoop.mapreduce does not exist import org.apache.hadoop.mapreduce.Job; ^ WordCount.java:9: error: package org.apache.hadoop.mapreduce does not exist import org.apache.hadoop.mapreduce.Mapper; ^ WordCount.java:10: error: package org.apache.hadoop.mapreduce does not exist import org.apache.hadoop.mapreduce.Reducer; ^ WordCount.java:11: error: package org.apache.hadoop.mapreduce.lib.input does not exist import org.apache.hadoop.mapreduce.lib.input.FileInputFormat; ^ WordCount.java:12: error: package org.apache.hadoop.mapreduce.lib.output does not exist import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat; ^ WordCount.java:17: error: cannot find symbol extends Mapper<Object, Text, Text, IntWritable>{ ^ symbol: class Mapper location: class WordCount WordCount.java:17: error: cannot find symbol extends Mapper<Object, Text, Text, IntWritable>{ ^ . . . symbol: class Path location: class WordCount WordCount.java:58: error: cannot find symbol FileOutputFormat.setOutputPath(job, new Path(args[1])); ^ symbol: variable FileOutputFormat location: class WordCount 40 errors
this is the error when i am running
javac wordcount.java
someone suggested me that i need to set classpath properly.
please suggest me the solution.
thank you.
Oh the stink of it! Smell my tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
want to learn hadoop
ERROR security.UserGroupInformation: PriviledgedActionException in MapReduce program
WordCount program giving exception.
HADOOP Reducer code not working...!
Exception while Debugging Hadoop Mapreduce programmes in single mode cluster in ubuntu
More...