|
bharath vissapragada
2009-06-13, 10:28
bharath vissapragada
2009-06-13, 10:30
Ravi Phulari
2009-06-13, 20:06
bharath vissapragada
2009-06-14, 03:50
Ravi Phulari
2009-06-14, 05:37
Jay
2009-06-14, 17:40
Alexandre Jaquet
2009-06-14, 18:00
|
-
Running a MapReduce Programbharath vissapragada 2009-06-13, 10:28
Hi all,
I wrote a java code(map-reduce). Can anyone tell me in detail, how to run it on hadoop (right from how to create a jar file).. or send me a link specifying the same. Thanks in advance
-
Re: Running a MapReduce Programbharath vissapragada 2009-06-13, 10:30
Also please tell me , how to set path and stuff , and directory in wch the
code mst be compiled etc, Thanks On Sat, Jun 13, 2009 at 3:58 PM, bharath vissapragada < [EMAIL PROTECTED]> wrote: > Hi all, > I wrote a java code(map-reduce). Can anyone tell me in detail, how to run > it on hadoop (right from how to create a jar file).. or send me a link > specifying the same. > > Thanks in advance > >
-
Re: Running a MapReduce ProgramRavi Phulari 2009-06-13, 20:06
You can find answers to your all questions on this web page .
http://hadoop.apache.org/core/docs/current/mapred_tutorial.html - Ravi On 6/13/09 3:30 AM, "bharath vissapragada" <[EMAIL PROTECTED]> wrote: Also please tell me , how to set path and stuff , and directory in wch the code mst be compiled etc, Thanks On Sat, Jun 13, 2009 at 3:58 PM, bharath vissapragada < [EMAIL PROTECTED]> wrote: > Hi all, > I wrote a java code(map-reduce). Can anyone tell me in detail, how to run > it on hadoop (right from how to create a jar file).. or send me a link > specifying the same. > > Thanks in advance > >
-
Re: Running a MapReduce Programbharath vissapragada 2009-06-14, 03:50
The details provided in this page are not that clear . I am a newbie to java
, so please take the pain of explaining because .. i am not able to compile the java code to make a jar file . It is giving many errors such as "packages not found" . This means that there is some problem with the path , Classpath etc. Someone kindly explain Thanks On Sun, Jun 14, 2009 at 1:36 AM, Ravi Phulari <[EMAIL PROTECTED]>wrote: > You can find answers to your all questions on this web page . > > http://hadoop.apache.org/core/docs/current/mapred_tutorial.html > > - > Ravi > > On 6/13/09 3:30 AM, "bharath vissapragada" <[EMAIL PROTECTED]> > wrote: > > Also please tell me , how to set path and stuff , and directory in wch the > code mst be compiled etc, > Thanks > > On Sat, Jun 13, 2009 at 3:58 PM, bharath vissapragada < > [EMAIL PROTECTED]> wrote: > > > Hi all, > > I wrote a java code(map-reduce). Can anyone tell me in detail, how to run > > it on hadoop (right from how to create a jar file).. or send me a link > > specifying the same. > > > > Thanks in advance > > > > > >
-
Re: Running a MapReduce ProgramRavi Phulari 2009-06-14, 05:37
Assuming your Hadoop setup ( local-standalone, pseudo-distributed or
fully-distributed) is done . If not please follow http://hadoop.apache.org/core/docs/current/quickstart.html Next - Write Example Word count program in WordCount.java - http://hadoop.apache.org/core/docs/current/mapred_tutorial.html#Example%3A+W ordCount+v1.0 Finally Assuming HADOOP_HOME is the root of the installation and HADOOP_VERSION is the Hadoop version installed, compile WordCount.java and create a jar: $ mkdir wordcount_classes $ javac -classpath ${HADOOP_HOME}/hadoop-${HADOOP_VERSION}-core.jar -d wordcount_classes WordCount.java $ jar -cvf /usr/joe/wordcount.jar -C wordcount_classes/ . Assuming that: /usr/joe/wordcount/input - input directory in HDFS /usr/joe/wordcount/output - output directory in HDFS Sample text-files as input: $ bin/hadoop dfs -ls /usr/joe/wordcount/input/ /usr/joe/wordcount/input/file01 /usr/joe/wordcount/input/file02 $ bin/hadoop dfs -cat /usr/joe/wordcount/input/file01 Hello World Bye World $ bin/hadoop dfs -cat /usr/joe/wordcount/input/file02 Hello Hadoop Goodbye Hadoop Run the application: $ bin/hadoop jar /usr/joe/wordcount.jar org.myorg.WordCount /usr/joe/wordcount/input /usr/joe/wordcount/output I hope this will help you compiling and running your WordCount program . If you any further problems in running this example then post steps you have followed and stack error out put . - Ravi On 6/13/09 8:50 PM, "bharath vissapragada" <[EMAIL PROTECTED]> wrote: > The details provided in this page are not that clear . I am a newbie to java > , so please take the pain of explaining because .. i am not able to compile > the java code to make a jar file . It is giving many errors such as > "packages not found" . This means that there is some problem with the path , > Classpath etc. Someone kindly explain > > Thanks > > On Sun, Jun 14, 2009 at 1:36 AM, Ravi Phulari <[EMAIL PROTECTED]>wrote: > >> > You can find answers to your all questions on this web page . >> > >> > http://hadoop.apache.org/core/docs/current/mapred_tutorial.html >> > >> > - >> > Ravi >> > >> > On 6/13/09 3:30 AM, "bharath vissapragada" <[EMAIL PROTECTED]> >> > wrote: >> > >> > Also please tell me , how to set path and stuff , and directory in wch the >> > code mst be compiled etc, >> > Thanks >> > >> > On Sat, Jun 13, 2009 at 3:58 PM, bharath vissapragada < >> > [EMAIL PROTECTED]> wrote: >> > >>> > > Hi all, >>> > > I wrote a java code(map-reduce). Can anyone tell me in detail, how to run >>> > > it on hadoop (right from how to create a jar file).. or send me a link >>> > > specifying the same. >>> > > >>> > > Thanks in advance >>> > > >>> > > >> > >> > --
-
Re: Running a MapReduce ProgramJay 2009-06-14, 17:40
Bharath,
You can google for phrases like "how to create a jar file" and you should find some tutorials on the web. This is a good resource too http://www.cloudera.com/hadoop-training-basic Best Regards -- Jay ________________________________ From: bharath vissapragada <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Sent: Saturday, June 13, 2009 8:50:53 PM Subject: Re: Running a MapReduce Program The details provided in this page are not that clear . I am a newbie to java , so please take the pain of explaining because .. i am not able to compile the java code to make a jar file . It is giving many errors such as "packages not found" . This means that there is some problem with the path , Classpath etc. Someone kindly explain Thanks On Sun, Jun 14, 2009 at 1:36 AM, Ravi Phulari <[EMAIL PROTECTED]>wrote: > You can find answers to your all questions on this web page . > > http://hadoop.apache.org/core/docs/current/mapred_tutorial.html > > - > Ravi > > On 6/13/09 3:30 AM, "bharath vissapragada" <[EMAIL PROTECTED]> > wrote: > > Also please tell me , how to set path and stuff , and directory in wch the > code mst be compiled etc, > Thanks > > On Sat, Jun 13, 2009 at 3:58 PM, bharath vissapragada < > [EMAIL PROTECTED]> wrote: > > > Hi all, > > I wrote a java code(map-reduce). Can anyone tell me in detail, how to run > > it on hadoop (right from how to create a jar file).. or send me a link > > specifying the same. > > > > Thanks in advance > > > > > >
-
Re: Running a MapReduce ProgramAlexandre Jaquet 2009-06-14, 18:00
Creating a jar as nothing to do to set correctly build path of a project.
She / he should first to know how to setup up build path. 2009/6/14 Jay <[EMAIL PROTECTED]> > Bharath, > > You can google for phrases like "how to create a jar file" and you should > find some tutorials on the web. > > This is a good resource too http://www.cloudera.com/hadoop-training-basic > > Best Regards > -- > Jay > > > > > ________________________________ > From: bharath vissapragada <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Sent: Saturday, June 13, 2009 8:50:53 PM > Subject: Re: Running a MapReduce Program > > The details provided in this page are not that clear . I am a newbie to > java > , so please take the pain of explaining because .. i am not able to compile > the java code to make a jar file . It is giving many errors such as > "packages not found" . This means that there is some problem with the path > , > Classpath etc. Someone kindly explain > > Thanks > > On Sun, Jun 14, 2009 at 1:36 AM, Ravi Phulari <[EMAIL PROTECTED] > >wrote: > > > You can find answers to your all questions on this web page . > > > > http://hadoop.apache.org/core/docs/current/mapred_tutorial.html > > > > - > > Ravi > > > > On 6/13/09 3:30 AM, "bharath vissapragada" <[EMAIL PROTECTED] > > > > wrote: > > > > Also please tell me , how to set path and stuff , and directory in wch > the > > code mst be compiled etc, > > Thanks > > > > On Sat, Jun 13, 2009 at 3:58 PM, bharath vissapragada < > > [EMAIL PROTECTED]> wrote: > > > > > Hi all, > > > I wrote a java code(map-reduce). Can anyone tell me in detail, how to > run > > > it on hadoop (right from how to create a jar file).. or send me a link > > > specifying the same. > > > > > > Thanks in advance > > > > > > > > > > > > > > > |