Return-Path: X-Original-To: apmail-hadoop-common-user-archive@www.apache.org Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 71F6AF3C5 for ; Tue, 30 Apr 2013 18:07:19 +0000 (UTC) Received: (qmail 6810 invoked by uid 500); 30 Apr 2013 18:07:14 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 6531 invoked by uid 500); 30 Apr 2013 18:07:14 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 6515 invoked by uid 99); 30 Apr 2013 18:07:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Apr 2013 18:07:13 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rkevinburton@charter.net designates 216.33.127.82 as permitted sender) Received: from [216.33.127.82] (HELO mta31.charter.net) (216.33.127.82) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Apr 2013 18:07:09 +0000 Received: from imp11 ([10.20.200.11]) by mta31.charter.net (InterMail vM.8.01.05.02 201-2260-151-103-20110920) with ESMTP id <20130430180648.DHVA24708.mta31.charter.net@imp11>; Tue, 30 Apr 2013 14:06:48 -0400 Received: from KevinPC ([24.159.241.210]) by imp11 with smtp.charter.net id WJ6n1l00T4Z4VX405J6nNV; Tue, 30 Apr 2013 14:06:48 -0400 X-Authority-Analysis: v=2.0 cv=dIr+A5lb c=1 sm=1 a=rvDZ1Ou6zk5jcJFOa7NSqA==:17 a=yUnIBFQkZM0A:10 a=hOpmn2quAAAA:8 a=3s95SbjHtX8A:10 a=pGLkceISAAAA:8 a=mV9VRH-2AAAA:8 a=Cb6IxKRDAAAA:8 a=vV5ofkA0AAAA:8 a=cR77FsjfP_QEPcD9TPcA:9 a=CjuIK1q_8ugA:10 a=t0WRet2RL3kA:10 a=MSl-tDqOz04A:10 a=hUswqBWy9Q8A:10 a=gA6IeH5FQcgA:10 a=NWVoK91CQyQA:10 a=HakYNpHgxzx921w_:21 a=il_jKIS5_m2Ci_8V:21 a=yMhMjlubAAAA:8 a=SSmOFEACAAAA:8 a=YjOBGq4wAAAA:8 a=aAbPJnMWAAAA:8 a=an6HOS5nBIDJXyvkAAEA:9 a=gKO2Hq4RSVkA:10 a=UiCQ7L4-1S4A:10 a=hTZeC7Yk6K0A:10 a=frz4AuCg-hUA:10 a=tXsnliwV7b4A:10 a=631Sbpt990fHPab0:21 a=rvDZ1Ou6zk5jcJFOa7NSqA==:117 From: "Kevin Burton" To: Cc: References: <030c01ce45c1$616e8240$244b86c0$@charter.net> In-Reply-To: Subject: RE: Can't initialize cluster Date: Tue, 30 Apr 2013 13:06:46 -0500 Message-ID: <002b01ce45cd$7ab2e640$7018b2c0$@charter.net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_002C_01CE45A3.91E01290" X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQGtXmpV2Pjz2+tvfzJP+dUBvJFcUwIWtothmSAks4A= Content-Language: en-us X-Virus-Checked: Checked by ClamAV on apache.org This is a multipart message in MIME format. ------=_NextPart_000_002C_01CE45A3.91E01290 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit We/I are/am making progress. Now I get the error: 13/04/30 12:59:40 WARN mapred.JobClient: Use GenericOptionsParser for parsing the arguments. Applications should implement Tool for the same. 13/04/30 12:59:40 INFO mapred.JobClient: Cleaning up the staging area hdfs://devubuntu05:9000/data/hadoop/tmp/hadoop-mapred/mapred/staging/kevin/. staging/job_201304301251_0003 13/04/30 12:59:40 ERROR security.UserGroupInformation: PriviledgedActionException as:kevin (auth:SIMPLE) cause:org.apache.hadoop.mapreduce.lib.input.InvalidInputException: Input path does not exist: hdfs://devubuntu05:9000/user/kevin/input Exception in thread "main" org.apache.hadoop.mapreduce.lib.input.InvalidInputException: Input path does not exist: hdfs://devubuntu05:9000/user/kevin/input When I run it with java -jar the input and output is the local folder. When running it with hadoop jar it seems to be expecting the folders (input and output) to be on the HDFS file system. I am not sure why these two methods of invocation don't make the same file system assumptions. It is hadoop jar WordCount.jar input output (which gives the above exception) versus java -jar WordCount.jar input output (which outputs the wordcount statistics to the output folder) This is run in the local /home/kevin/WordCount folder. Kevin From: Mohammad Tariq [mailto:dontariq@gmail.com] Sent: Tuesday, April 30, 2013 12:33 PM To: user@hadoop.apache.org Subject: Re: Can't initialize cluster Set "HADOOP_MAPRED_HOME" in your hadoop-env.sh file and re-run the job. See if it helps. Warm Regards, Tariq https://mtariq.jux.com/ cloudfront.blogspot.com On Tue, Apr 30, 2013 at 10:10 PM, Kevin Burton wrote: To be clear when this code is run with 'java -jar' it runs without exception. The exception occurs when I run with 'hadoop jar'. From: Kevin Burton [mailto:rkevinburton@charter.net] Sent: Tuesday, April 30, 2013 11:36 AM To: user@hadoop.apache.org Subject: Can't initialize cluster I have a simple MapReduce job that I am trying to get to run on my cluster. When I run it I get: 13/04/30 11:27:45 INFO mapreduce.Cluster: Failed to use org.apache.hadoop.mapred.LocalClientProtocolProvider due to error: Invalid "mapreduce.jobtracker.address" configuration value for LocalJobRunner : "devubuntu05:9001" 13/04/30 11:27:45 ERROR security.UserGroupInformation: PriviledgedActionException as:kevin (auth:SIMPLE) cause:java.io.IOException: Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name and the correspond server addresses. Exception in thread "main" java.io.IOException: Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name and the correspond server addresses. My core-site.xml looks like: fs.default.name hdfs://devubuntu05:9000 The name of the default file system. A URI whose scheme and authority determine the FileSystem implementation. So I am unclear as to why it is looking at devubuntu05:9001? Here is the code: public static void WordCount( String[] args ) throws Exception { Configuration conf = new Configuration(); String[] otherArgs = new GenericOptionsParser(conf, args).getRemainingArgs(); if (otherArgs.length != 2) { System.err.println("Usage: wordcount "); System.exit(2); } Job job = new Job(conf, "word count"); job.setJarByClass(WordCount.class); job.setMapperClass(WordCount.TokenizerMapper.class); job.setCombinerClass(WordCount.IntSumReducer.class); job.setReducerClass(WordCount.IntSumReducer.class); job.setOutputKeyClass(Text.class); job.setOutputValueClass(IntWritable.class); org.apache.hadoop.mapreduce.lib.input.FileInputFormat.addInputPath(job, new Path(otherArgs[0])); org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.setOutputPath(job, new Path(otherArgs[1])); System.exit(job.waitForCompletion(true) ? 0 : 1); Ideas? ------=_NextPart_000_002C_01CE45A3.91E01290 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

We/I are/am making progress. Now I get the = error:

 

13/04/30 12:59:40 WARN mapred.JobClient: Use GenericOptionsParser for = parsing the arguments. Applications should implement Tool for the = same.

13/04/30 12:59:40 INFO mapred.JobClient: Cleaning up the staging area = hdfs://devubuntu05:9000/data/hadoop/tmp/hadoop-mapred/mapred/staging/kevi= n/.staging/job_201304301251_0003

13/04/30 12:59:40 ERROR security.UserGroupInformation: = PriviledgedActionException as:kevin (auth:SIMPLE) = cause:org.apache.hadoop.mapreduce.lib.input.InvalidInputException: = Input path does not exist: = hdfs://devubuntu05:9000/user/kevin/input

Exception in thread "main" = org.apache.hadoop.mapreduce.lib.input.InvalidInputException: Input = path does not exist: = hdfs://devubuntu05:9000/user/kevin/input

 

When I run it with java –jar the input and output is the local = folder. When running it with hadoop jar it seems to be expecting the = folders (input and output) to be on the HDFS file system. I am not sure = why these two methods of invocation don’t make the same file = system assumptions.

 

It is

 

hadoop jar WordCount.jar input output (which gives the above = exception)

 

versus

 

java –jar WordCount.jar input output (which outputs the = wordcount statistics to the output folder)

 

This is run in the local /home/kevin/WordCount = folder.

 

Kevin

 

From:= = Mohammad Tariq [mailto:dontariq@gmail.com]
Sent: Tuesday, = April 30, 2013 12:33 PM
To: = user@hadoop.apache.org
Subject: Re: Can't initialize = cluster

 

Set = "HADOOP_MAPRED_HOME" in your hadoop-env.sh file and re-run = the job. See if it helps.


<= /div>

 

On Tue, Apr 30, 2013 at 10:10 PM, Kevin Burton <rkevinburton@charter.net> = wrote:

To be clear when this code is run with = ‘java –jar’ it runs without exception. The exception = occurs when I run with ‘hadoop jar’.

 

From:= = Kevin Burton [mailto:rkevinburton@charter.net]
Sent: = Tuesday, April 30, 2013 11:36 AM
To: user@hadoop.apache.org
Subject: Can't = initialize cluster

 <= /o:p>

I have a = simple MapReduce job that I am trying to get to run on my cluster. When = I run it I get:

 <= /o:p>

13/04/30 = 11:27:45 INFO mapreduce.Cluster: Failed to use = org.apache.hadoop.mapred.LocalClientProtocolProvider due to error: = Invalid "mapreduce.jobtracker.address" configuration value for = LocalJobRunner : "devubuntu05:9001"

13/04/30 = 11:27:45 ERROR security.UserGroupInformation: PriviledgedActionException = as:kevin (auth:SIMPLE) cause:java.io.IOException: Cannot initialize = Cluster. Please check your configuration for mapreduce.framework.name and the correspond server = addresses.

Exception = in thread "main" java.io.IOException: Cannot initialize = Cluster. Please check your configuration for mapreduce.framework.name and the correspond server = addresses.

 <= /o:p>

My = core-site.xml looks like:

 <= /o:p>

<property= >

  = <name>fs.default.name</name>

  = <value>hdfs://devubuntu05:9000</value>

  = <description>The name of the default file system. A URI whose = scheme and authority determine the FileSystem implementation. = </description>

</propert= y>

 <= /o:p>

So I am = unclear as to why it is looking at devubuntu05:9001?

 <= /o:p>

Here is the = code:

 <= /o:p>

  =   public static void WordCount( String[] args )  throws = Exception {

  =       Configuration conf =3D new = Configuration();

  =       String[] otherArgs =3D new = GenericOptionsParser(conf, args).getRemainingArgs();

  =       if (otherArgs.length !=3D 2) = {

  =           = System.err.println("Usage: wordcount <in> = <out>");

  =           = System.exit(2);

  =       }

  =       Job job =3D new Job(conf, "word = count");

  =       = job.setJarByClass(WordCount.class);

  =       = job.setMapperClass(WordCount.TokenizerMapper.class);

  =       = job.setCombinerClass(WordCount.IntSumReducer.class);

  =       = job.setReducerClass(WordCount.IntSumReducer.class);

  =       = job.setOutputKeyClass(Text.class);

  =       = job.setOutputValueClass(IntWritable.class);

  =       = org.apache.hadoop.mapreduce.lib.input.FileInputFormat.addInputPath(job, = new Path(otherArgs[0]));

  =       = org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.setOutputPath(job= , new Path(otherArgs[1]));

  =       System.exit(job.waitForCompletion(true) ? = 0 : 1);

 <= /o:p>

Ideas?<= /o:p>

 

------=_NextPart_000_002C_01CE45A3.91E01290--