Re: ClassNotFoundException in Main

2013-02-19 Thread Hemanth Yamijala
Thats because the error is not related to the packaging. As mentioned in my last mail, downgrade the java version used for compiling your code from Jdk 7 to Jdk 6. If you are using an IDE, it will have an option to set the target compilation version. Google will help. On Tuesday, February 19, 201

Re: ClassNotFoundException in Main

2013-02-19 Thread Fatih Haltas
Yes i reorganized the packages but still i am getting same error my hadoop version is 1.0.4 19 Şubat 2013 Salı tarihinde Hemanth Yamijala adlı kullanıcı şöyle yazdı: > I am not sure if that will actually work, because the class is defined to > be in the org.myorg package. I suggest you repackage

Re: ClassNotFoundException in Main

2013-02-19 Thread Hemanth Yamijala
I am not sure if that will actually work, because the class is defined to be in the org.myorg package. I suggest you repackage to reflect the right package structure. Also, the error you are getting seems to indicate that you aphave compiled using Jdk 7. Note that some versions of Hadoop are suppo

Re: ClassNotFoundException in Main

2013-02-19 Thread Fatih Haltas
Thank you very much. When i tried with wordcount_classes.org.myorg.WordCount, I am getting the following error: [hadoop@ADUAE042-LAP-V project]$ hadoop jar wordcount_19_02.jar wordcount_classes.org.myorg.WordCount /home/hadoop/project/hadoop-data/NetFlow 19_02_wordcount.out Warning: $HADOOP_HOME i

Re: ClassNotFoundException in Main

2013-02-19 Thread Hemanth Yamijala
Sorry. I did not read the mail correctly. I think the error is in how the jar has been created. The classes start with root as wordcount_classes, instead of org. Thanks Hemanth On Tuesday, February 19, 2013, Hemanth Yamijala wrote: > Have you used the Api setJarByClass in your main program? > >

Re: ClassNotFoundException in Main

2013-02-19 Thread Fatih Haltas
Thanks Hemanth for your reply. Unfortunately, I used in mycode. Also to control my system I tried to run Wordcount example of apache.hadoop itself by just changing the package info, this one also did not work On Tue, Feb 19, 2013 at 8:02 PM, Hemanth Yamijala wrote: > Have you used the Api setJ

Re: ClassNotFoundException in Main

2013-02-19 Thread Hemanth Yamijala
Have you used the Api setJarByClass in your main program? http://hadoop.apache.org/docs/r1.0.4/api/org/apache/hadoop/mapreduce/Job.html#setJarByClass(java.lang.Class) On Tuesday, February 19, 2013, Fatih Haltas wrote: > Hi everyone, > > I know this is the common mistake to not specify the class

ClassNotFoundException in Main

2013-02-19 Thread Fatih Haltas
Hi everyone, I know this is the common mistake to not specify the class adress while trying to run a jar, however, although I specified, I am still getting the ClassNotFound exception. What may be the reason for it? I have been struggling for this problem more than a 2 days. I just wrote differen