Need help with WordCount Compilation

Showing 1-9 of 9 messages
Need help with WordCount Compilation Seabiscuit 5/13/13 10:15 PM
Hi,
I have CDH4 installed on VM . When I try to compile WordCount.java I
am getting the following errors.
-----------------------------------------------------
[cloudera@localhost ~]$ javac -cp `hadoop classpath`:. -d
wordcount_classes WordCount.java
incorrect classpath: /usr/lib/hadoop/lib/*
incorrect classpath: /usr/lib/hadoop/.//*
incorrect classpath: /usr/lib/hadoop-hdfs/lib/*
incorrect classpath: /usr/lib/hadoop-hdfs/.//*
incorrect classpath: /usr/lib/hadoop-yarn/lib/*
incorrect classpath: /usr/lib/hadoop-yarn/.//*
incorrect classpath: /usr/lib/hadoop-0.20-mapreduce/lib/*
incorrect classpath: /usr/lib/hadoop-0.20-mapreduce/.//*
----------
1. ERROR in WordCount.java (at line 8)
        import org.apache.hadoop.fs.Path;
               ^^^^^^^^^^
The import org.apache cannot be resolved
----------
2. ERROR in WordCount.java (at line 9)
        import org.apache.hadoop.io.IntWritable;
               ^^^^^^^^^^
The import org.apache cannot be resolved
----------
3. ERROR in WordCount.java (at line 10)
        import org.apache.hadoop.io.LongWritable;
               ^^^^^^^^^^
The import org.apache cannot be resolved
----------
4. ERROR in WordCount.java (at line 11)
        import org.apache.hadoop.io.Text;
               ^^^^^^^^^^
The import org.apache cannot be resolved
----------
5. ERROR in WordCount.java (at line 12)
        import org.apache.hadoop.mapred.FileInputFormat;
               ^^^^^^^^^^
The import org.apache cannot be resolved
----------
6. ERROR in WordCount.java (at line 13)
        import org.apache.hadoop.mapred.FileOutputFormat;
               ^^^^^^^^^^
The import org.apache cannot be resolved
----------
7. ERROR in WordCount.java (at line 14)
        import org.apache.hadoop.mapred.JobClient;
               ^^^^^^^^^^
The import org.apache cannot be resolved
----------
8. ERROR in WordCount.java (at line 15)
        import org.apache.hadoop.mapred.JobConf;
               ^^^^^^^^^^
The import org.apache cannot be resolved
----------
9. ERROR in WordCount.java (at line 16)
        import org.apache.hadoop.mapred.MapReduceBase;
               ^^^^^^^^^^
The import org.apache cannot be resolved
----------
10. ERROR in WordCount.java (at line 17)
        import org.apache.hadoop.mapred.Mapper;
               ^^^^^^^^^^
The import org.apache cannot be resolved
----------
11. ERROR in WordCount.java (at line 18)
        import org.apache.hadoop.mapred.OutputCollector;
               ^^^^^^^^^^
The import org.apache cannot be resolved
----------
12. ERROR in WordCount.java (at line 19)
        import org.apache.hadoop.mapred.Reducer;
               ^^^^^^^^^^
The import org.apache cannot be resolved
----------
13. ERROR in WordCount.java (at line 20)
        import org.apache.hadoop.mapred.Reporter;
               ^^^^^^^^^^
The import org.apache cannot be resolved
----------
14. ERROR in WordCount.java (at line 21)
        import org.apache.hadoop.mapred.TextInputFormat;
               ^^^^^^^^^^
The import org.apache cannot be resolved
----------
15. ERROR in WordCount.java (at line 22)
        import org.apache.hadoop.mapred.TextOutputFormat;
               ^^^^^^^^^^
The import org.apache cannot be resolved
----------
16. ERROR in WordCount.java (at line 27)
        public static class Map extends MapReduceBase implements
Mapper<LongWritable, Text, Text, IntWritable> {
                                        ^^^^^^^^^^^^^
MapReduceBase cannot be resolved to a type
----------
17. ERROR in WordCount.java (at line 27)
        public static class Map extends MapReduceBase implements
Mapper<LongWritable, Text, Text, IntWritable> {
                                                                 ^^^^^^
Mapper cannot be resolved to a type
----------
18. ERROR in WordCount.java (at line 27)
        public static class Map extends MapReduceBase implements
Mapper<LongWritable, Text, Text, IntWritable> {
        
^^^^^^^^^^^^
LongWritable cannot be resolved to a type
----------
19. ERROR in WordCount.java (at line 27)
        public static class Map extends MapReduceBase implements
Mapper<LongWritable, Text, Text, IntWritable> {
        
^^^^
Text cannot be resolved to a type
----------
20. ERROR in WordCount.java (at line 27)
        public static class Map extends MapReduceBase implements
Mapper<LongWritable, Text, Text, IntWritable> {
        
^^^^
Text cannot be resolved to a type
----------
21. ERROR in WordCount.java (at line 27)
        public static class Map extends MapReduceBase implements
Mapper<LongWritable, Text, Text, IntWritable> {
        
^^^^^^^^^^^
IntWritable cannot be resolved to a type
----------
22. ERROR in WordCount.java (at line 28)
        private final static IntWritable one = new IntWritable(1);
                             ^^^^^^^^^^^
IntWritable cannot be resolved to a type
----------
23. ERROR in WordCount.java (at line 28)
        private final static IntWritable one = new IntWritable(1);
                                                   ^^^^^^^^^^^
IntWritable cannot be resolved to a type
----------
24. ERROR in WordCount.java (at line 29)
        private Text word = new Text();
                ^^^^
Text cannot be resolved to a type
----------
25. ERROR in WordCount.java (at line 29)
        private Text word = new Text();
                                ^^^^
Text cannot be resolved to a type
----------
26. ERROR in WordCount.java (at line 31)
        public void map(LongWritable key, Text value, OutputCollector<Text,
IntWritable> output, Reporter reporter) throws IOException {
                        ^^^^^^^^^^^^
LongWritable cannot be resolved to a type
----------
27. ERROR in WordCount.java (at line 31)
        public void map(LongWritable key, Text value, OutputCollector<Text,
IntWritable> output, Reporter reporter) throws IOException {
                                          ^^^^
Text cannot be resolved to a type
----------
28. ERROR in WordCount.java (at line 31)
        public void map(LongWritable key, Text value, OutputCollector<Text,
IntWritable> output, Reporter reporter) throws IOException {
                                                      ^^^^^^^^^^^^^^^
OutputCollector cannot be resolved to a type
----------
29. ERROR in WordCount.java (at line 31)
        public void map(LongWritable key, Text value, OutputCollector<Text,
IntWritable> output, Reporter reporter) throws IOException {
                                                                      ^^^^
Text cannot be resolved to a type
----------
30. ERROR in WordCount.java (at line 31)
        public void map(LongWritable key, Text value, OutputCollector<Text,
IntWritable> output, Reporter reporter) throws IOException {
        
^^^^^^^^^^^
IntWritable cannot be resolved to a type
----------
31. ERROR in WordCount.java (at line 31)
        public void map(LongWritable key, Text value, OutputCollector<Text,
IntWritable> output, Reporter reporter) throws IOException {
        
^^^^^^^^
Reporter cannot be resolved to a type
----------
32. ERROR in WordCount.java (at line 35)
        word.set(tokenizer.nextToken());
        ^^^^
Text cannot be resolved to a type
----------
33. ERROR in WordCount.java (at line 36)
        output.collect(word, one);
                       ^^^^
Text cannot be resolved to a type
----------
34. ERROR in WordCount.java (at line 36)
        output.collect(word, one);
                             ^^^
IntWritable cannot be resolved to a type
----------
35. ERROR in WordCount.java (at line 41)
        public static class Reduce extends MapReduceBase implements
Reducer<Text, IntWritable, Text, IntWritable> {
                                           ^^^^^^^^^^^^^
MapReduceBase cannot be resolved to a type
----------
36. ERROR in WordCount.java (at line 41)
        public static class Reduce extends MapReduceBase implements
Reducer<Text, IntWritable, Text, IntWritable> {
                                                                    ^^^^^^^
Reducer cannot be resolved to a type
----------
37. ERROR in WordCount.java (at line 41)
        public static class Reduce extends MapReduceBase implements
Reducer<Text, IntWritable, Text, IntWritable> {
        
^^^^
Text cannot be resolved to a type
----------
38. ERROR in WordCount.java (at line 41)
        public static class Reduce extends MapReduceBase implements
Reducer<Text, IntWritable, Text, IntWritable> {
        
^^^^^^^^^^^
IntWritable cannot be resolved to a type
----------
39. ERROR in WordCount.java (at line 41)
        public static class Reduce extends MapReduceBase implements
Reducer<Text, IntWritable, Text, IntWritable> {
        
^^^^
Text cannot be resolved to a type
----------
40. ERROR in WordCount.java (at line 41)
        public static class Reduce extends MapReduceBase implements
Reducer<Text, IntWritable, Text, IntWritable> {
        
^^^^^^^^^^^
IntWritable cannot be resolved to a type
----------
41. ERROR in WordCount.java (at line 42)
        public void reduce(Text key, Iterator<IntWritable> values,
OutputCollector<Text, IntWritable> output, Reporter reporter) throws
IOException {
                           ^^^^
Text cannot be resolved to a type
----------
42. ERROR in WordCount.java (at line 42)
        public void reduce(Text key, Iterator<IntWritable> values,
OutputCollector<Text, IntWritable> output, Reporter reporter) throws
IOException {
                                              ^^^^^^^^^^^
IntWritable cannot be resolved to a type
----------
43. ERROR in WordCount.java (at line 42)
        public void reduce(Text key, Iterator<IntWritable> values,
OutputCollector<Text, IntWritable> output, Reporter reporter) throws
IOException {
        
^^^^^^^^^^^^^^^
OutputCollector cannot be resolved to a type
----------
44. ERROR in WordCount.java (at line 42)
        public void reduce(Text key, Iterator<IntWritable> values,
OutputCollector<Text, IntWritable> output, Reporter reporter) throws
IOException {
        
^^^^
Text cannot be resolved to a type
----------
45. ERROR in WordCount.java (at line 42)
        public void reduce(Text key, Iterator<IntWritable> values,
OutputCollector<Text, IntWritable> output, Reporter reporter) throws
IOException {
        
^^^^^^^^^^^
IntWritable cannot be resolved to a type
----------
46. ERROR in WordCount.java (at line 42)
        public void reduce(Text key, Iterator<IntWritable> values,
OutputCollector<Text, IntWritable> output, Reporter reporter) throws
IOException {
        
^^^^^^^^
Reporter cannot be resolved to a type
----------
47. ERROR in WordCount.java (at line 47)
        output.collect(key, new IntWritable(sum));
                                ^^^^^^^^^^^
IntWritable cannot be resolved to a type
----------
48. ERROR in WordCount.java (at line 52)
        JobConf conf = new JobConf(WordCount.class);
        ^^^^^^^
JobConf cannot be resolved to a type
----------
49. ERROR in WordCount.java (at line 52)
        JobConf conf = new JobConf(WordCount.class);
                           ^^^^^^^
JobConf cannot be resolved to a type
----------
50. ERROR in WordCount.java (at line 55)
        conf.setOutputKeyClass(Text.class);
                               ^^^^
Text cannot be resolved to a type
----------
51. ERROR in WordCount.java (at line 56)
        conf.setOutputValueClass(IntWritable.class);
                                 ^^^^^^^^^^^
IntWritable cannot be resolved to a type
----------
52. ERROR in WordCount.java (at line 62)
        conf.setInputFormat(TextInputFormat.class);
                            ^^^^^^^^^^^^^^^
TextInputFormat cannot be resolved to a type
----------
53. ERROR in WordCount.java (at line 63)
        conf.setOutputFormat(TextOutputFormat.class);
                             ^^^^^^^^^^^^^^^^
TextOutputFormat cannot be resolved to a type
----------
54. ERROR in WordCount.java (at line 65)
        FileInputFormat.setInputPaths(conf, new Path(args[0]));
        ^^^^^^^^^^^^^^^
FileInputFormat cannot be resolved
----------
55. ERROR in WordCount.java (at line 65)
        FileInputFormat.setInputPaths(conf, new Path(args[0]));
                                                ^^^^
Path cannot be resolved to a type
----------
56. ERROR in WordCount.java (at line 66)
        FileOutputFormat.setOutputPath(conf, new Path(args[1]));
        ^^^^^^^^^^^^^^^^
FileOutputFormat cannot be resolved
----------
57. ERROR in WordCount.java (at line 66)
        FileOutputFormat.setOutputPath(conf, new Path(args[1]));
                                                 ^^^^
Path cannot be resolved to a type
----------
58. ERROR in WordCount.java (at line 68)
        JobClient.runJob(conf);
        ^^^^^^^^^
JobClient cannot be resolved
-----------------------------------------------------

Here is my Wordcount.java

*************************



import java.io.IOException;
import java.util.Iterator;
import java.util.StringTokenizer;

import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapred.FileInputFormat;
import org.apache.hadoop.mapred.FileOutputFormat;
import org.apache.hadoop.mapred.JobClient;
import org.apache.hadoop.mapred.JobConf;
import org.apache.hadoop.mapred.MapReduceBase;
import org.apache.hadoop.mapred.Mapper;
import org.apache.hadoop.mapred.OutputCollector;
import org.apache.hadoop.mapred.Reducer;
import org.apache.hadoop.mapred.Reporter;
import org.apache.hadoop.mapred.TextInputFormat;
import org.apache.hadoop.mapred.TextOutputFormat;


public class WordCount {

  public static class Map extends MapReduceBase implements
Mapper<LongWritable, Text, Text, IntWritable> {
    private final static IntWritable one = new IntWritable(1);
    private Text word = new Text();

    public void map(LongWritable key, Text value,
OutputCollector<Text, IntWritable> output, Reporter reporter) throws
IOException {
      String line = value.toString();
      StringTokenizer tokenizer = new StringTokenizer(line);
      while (tokenizer.hasMoreTokens()) {
        word.set(tokenizer.nextToken());
        output.collect(word, one);
      }
    }
  }

  public static class Reduce extends MapReduceBase implements
Reducer<Text, IntWritable, Text, IntWritable> {
    public void reduce(Text key, Iterator<IntWritable> values,
OutputCollector<Text, IntWritable> output, Reporter reporter) throws
IOException {
      int sum = 0;
      while (values.hasNext()) {
        sum += values.next().get();
      }
      output.collect(key, new IntWritable(sum));
    }
  }

  public static void main(String[] args) throws Exception {
    JobConf conf = new JobConf(WordCount.class);
    conf.setJobName("wordcount");

    conf.setOutputKeyClass(Text.class);
    conf.setOutputValueClass(IntWritable.class);

    conf.setMapperClass(Map.class);
    conf.setCombinerClass(Reduce.class);
    conf.setReducerClass(Reduce.class);

    conf.setInputFormat(TextInputFormat.class);
    conf.setOutputFormat(TextOutputFormat.class);

    FileInputFormat.setInputPaths(conf, new Path(args[0]));
    FileOutputFormat.setOutputPath(conf, new Path(args[1]));

    JobClient.runJob(conf);
  }
}
************************

Can someone please check it and let me know what could be the
problem ?

I just got started with Hadoop few days back and cannot proceed due to
these error.
Thanks for your help.
Re: Need help with WordCount Compilation praveen kumar 5/13/13 10:58 PM
I guess the class path is not set correctly. It is not able to identify the packages you are importing into your code.



--




Re: Need help with WordCount Compilation Srinivasan 5/13/13 11:30 PM
i agree with praveen kumar comments


--
 
 
 

Re: Need help with WordCount Compilation Seabiscuit 5/14/13 4:44 AM
Thanks.
I modified the classpath but I still see the following errors :

-------------------------------------------
6 problems (26 errors)[cloudera@localhost ~]$ javac -classpath /usr/
lib/hadoop/4.2.0.jar:/usr/lib/hadoop/client/hadoop-mapreduce-client-
core-2.0.0-cdh4.2.1.jar -d wordcount_classes WordCount.java
----------
1. ERROR in WordCount.java (at line 12)
        import org.apache.hadoop.mapred.*;
               ^^^^^^^^^^^^^^^^^^^^^^^^
The import org.apache.hadoop.mapred cannot be resolved
----------
2. ERROR in WordCount.java (at line 17)
        public static class Map extends MapReduceBase implements
Mapper<LongWritable, Text, Text, IntWritable> {
                                        ^^^^^^^^^^^^^
MapReduceBase cannot be resolved to a type
----------
3. ERROR in WordCount.java (at line 17)
        public static class Map extends MapReduceBase implements
Mapper<LongWritable, Text, Text, IntWritable> {
                                                                 ^^^^^^
Mapper cannot be resolved to a type
----------
4. ERROR in WordCount.java (at line 21)
        public void map(LongWritable key, Text value, OutputCollector<Text,
IntWritable> output, Reporter reporter) throws IOException {
                                                      ^^^^^^^^^^^^^^^
OutputCollector cannot be resolved to a type
----------
5. ERROR in WordCount.java (at line 21)
        public void map(LongWritable key, Text value, OutputCollector<Text,
IntWritable> output, Reporter reporter) throws IOException {
        
^^^^^^^^
Reporter cannot be resolved to a type
----------
6. ERROR in WordCount.java (at line 31)
        public static class Reduce extends MapReduceBase implements
Reducer<Text, IntWritable, Text, IntWritable> {
                                           ^^^^^^^^^^^^^
MapReduceBase cannot be resolved to a type
----------
7. ERROR in WordCount.java (at line 31)
        public static class Reduce extends MapReduceBase implements
Reducer<Text, IntWritable, Text, IntWritable> {
                                                                    ^^^^^^^
Reducer cannot be resolved to a type
----------
8. ERROR in WordCount.java (at line 32)
        public void reduce(Text key, Iterator<IntWritable> values,
OutputCollector<Text, IntWritable> output, Reporter reporter) throws
IOException {
        
^^^^^^^^^^^^^^^
OutputCollector cannot be resolved to a type
----------
9. ERROR in WordCount.java (at line 32)
        public void reduce(Text key, Iterator<IntWritable> values,
OutputCollector<Text, IntWritable> output, Reporter reporter) throws
IOException {
        
^^^^^^^^
Reporter cannot be resolved to a type
----------
10. ERROR in WordCount.java (at line 42)
        JobConf conf = new JobConf(WordCount.class);
        ^^^^^^^
JobConf cannot be resolved to a type
----------
11. ERROR in WordCount.java (at line 42)
        JobConf conf = new JobConf(WordCount.class);
                           ^^^^^^^
JobConf cannot be resolved to a type
----------
12. ERROR in WordCount.java (at line 52)
        conf.setInputFormat(TextInputFormat.class);
                            ^^^^^^^^^^^^^^^
TextInputFormat cannot be resolved to a type
----------
13. ERROR in WordCount.java (at line 53)
        conf.setOutputFormat(TextOutputFormat.class);
                             ^^^^^^^^^^^^^^^^
TextOutputFormat cannot be resolved to a type
----------
14. ERROR in WordCount.java (at line 55)
        FileInputFormat.setInputPaths(conf, new Path(args[0]));
        ^^^^^^^^^^^^^^^
FileInputFormat cannot be resolved
----------
15. ERROR in WordCount.java (at line 56)
        FileOutputFormat.setOutputPath(conf, new Path(args[1]));
        ^^^^^^^^^^^^^^^^
FileOutputFormat cannot be resolved
----------
16. ERROR in WordCount.java (at line 58)
        JobClient.runJob(conf);
        ^^^^^^^^^
JobClient cannot be resolved
----------
16 problems (16 errors)[cloudera@localhost ~]$

-------------------------------------------

Also,I have changed the import statements in my class to the
following :

****************************

package org.myorg;

import java.io.IOException;
import java.util.*;

import org.apache.hadoop.fs.Path;
import org.apache.hadoop.conf.*;
import org.apache.hadoop.io.*;
import org.apache.hadoop.mapred.*;
import org.apache.hadoop.util.*;

****************************
Appreciate if any one can provide any inputs.

Thanks.


On May 14, 2:30 am, Srinivasan Ramalingam <eceseenu1989...@gmail.com>
wrote:
> i agree with praveen kumar comments
>
> On Tue, May 14, 2013 at 12:58 AM, praveen kumar <pravinkumar.ba...@gmail.com
>
>
>
>
>
>
>
> > wrote:
> > I guess the class path is not set correctly. It is not able to identify
> > the packages you are importing into your code.
>
> ...
>
> read more »
Re: Need help with WordCount Compilation Harsh J 5/14/13 4:57 AM
Hi,

What is the output of your environment's "java -version"? The Oracle
1.6+ JVMs should accept wildcarded paths normally.

Your javac seems to be rejecting away the wildcarded classpath entries
got by `hadoop classpath`. You can alternatively try to follow the
guide and commands presented at
http://www.cloudera.com/content/cloudera-content/cloudera-docs/CDH4/latest/CDH4-Installation-Guide/cdh4ig_topic_31_1.html.

Using JAR Files Provided in the hadoop-client Package
=========================================

Make sure you add to your project all of the JAR files provided under
/usr/lib/hadoop/client-0.20 (for MRv1 APIs) or/usr/lib/hadoop/client
(for YARN).

For example, you can add this location to the JVM classpath:

$ export CLASSPATH=/usr/lib/hadoop/client-0.20/\*

You can then try to do the following perhaps:

$ javac -d <dir> <file> [Without a -cp override]
> --
>
>
>



--
Harsh J
Re: Need help with WordCount Compilation Seabiscuit 5/14/13 5:02 AM
Thanks Harsh.
I was successfully able to compile and create the jar . However when
trying to run the application getting the following error :

(in = 6917) (out = 3877) (deflated 43%)
[cloudera@localhost ~]$ hadoop jar wordcount.jar org.myorg.WordCount /
user/cloudera/wordcount/input /user/cloudera/wordcount/output
13/05/11 16:26:29 WARN mapred.JobClient: Use GenericOptionsParser for
parsing the arguments. Applications should implement Tool for the
same.
13/05/11 16:26:30 INFO mapred.JobClient: Cleaning up the staging area
hdfs://localhost.localdomain:8020/user/cloudera/.staging/job_201305102141_0001
13/05/11 16:26:30 ERROR security.UserGroupInformation:
PriviledgedActionException as:cloudera (auth:SIMPLE)
cause:org.apache.hadoop.mapred.FileAlreadyExistsException: Output
directory hdfs://localhost.localdomain:8020/user/cloudera/wordcount/output
already exists
Exception in thread "main"
org.apache.hadoop.mapred.FileAlreadyExistsException: Output directory
hdfs://localhost.localdomain:8020/user/cloudera/wordcount/output
already exists
        at
org.apache.hadoop.mapred.FileOutputFormat.checkOutputSpecs(FileOutputFormat.java:
117)
        at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:987)
        at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:946)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:396)
        at
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:
1408)
        at
org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:
946)
        at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:920)
        at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1369)
        at org.myorg.WordCount.main(WordCount.java:58)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:208)


---------------

Any ideas ?


On May 14, 7:57 am, Harsh J <ha...@cloudera.com> wrote:
> Hi,
>
> What is the output of your environment's "java -version"? The Oracle
> 1.6+ JVMs should accept wildcarded paths normally.
>
> Your javac seems to be rejecting away the wildcarded classpath entries
> got by `hadoop classpath`. You can alternatively try to follow the
> guide and commands presented athttp://www.cloudera.com/content/cloudera-content/cloudera-docs/CDH4/l....
>
> Using JAR Files Provided in the hadoop-client Package
> =========================================
>
> Make sure you add to your project all of the JAR files provided under
> /usr/lib/hadoop/client-0.20 (for MRv1 APIs) or/usr/lib/hadoop/client
> (for YARN).
>
> For example, you can add this location to the JVM classpath:
>
> $ export CLASSPATH=/usr/lib/hadoop/client-0.20/\*
>
> You can then try to do the following perhaps:
>
> $ javac -d <dir> <file> [Without a -cp override]
>
>
>
>
>
>
>
> ...
>
> read more »
Re: Need help with WordCount Compilation praveen kumar 5/14/13 5:11 AM
Hi,


It says the output directory already exists. Either you have to delete the existing output directory and try running the M/r Job or change the output directory.



--




Re: Need help with WordCount Compilation Seabiscuit 5/14/13 7:32 AM
Thank You all .

I was able to run the program.

On May 14, 8:11 am, praveen kumar <pravinkumar.ba...@gmail.com> wrote:
> Hi,
>
> It says the output directory already exists. Either you have to delete the
> existing output directory and try running the M/r Job or change the output
> directory.
>
>
>
>
>
>
>
> ...
>
> read more »
Re: Need help with WordCount Compilation kk 1/29/14 9:20 AM
Hi,

Can you send me what you hanged under path? I downloaded wordcount source code from cloudera site but when try to execute it I am getting same error like yours. Can you help me how you resolve your errors and able to run mapreduce?