Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
MapReduce >> mail # user >> RE: Can't initialize cluster


+
Kevin Burton 2013-04-30, 16:40
+
Mohammad Tariq 2013-04-30, 17:32
+
Kevin Burton 2013-04-30, 18:06
Copy link to this message
-
Re: Can't initialize cluster
When you run with java -jar, as previously stated on another thread,
you aren't loading any configs present on the installation (that
configure HDFS to be the default filesystem).

When you run with "hadoop jar", the configs under /etc/hadoop/conf get
applied automatically to your program, making it (1) use HDFS as
default FS and (2) run job in distributed mode, as opposed to local
with your java -jar config-less invocation.

On Tue, Apr 30, 2013 at 11:36 PM, Kevin Burton <[EMAIL PROTECTED]> wrote:
> 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:[EMAIL PROTECTED]]
> Sent: Tuesday, April 30, 2013 12:33 PM
> To: [EMAIL PROTECTED]
> 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 <[EMAIL PROTECTED]>
> 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:[EMAIL PROTECTED]]
> Sent: Tuesday, April 30, 2013 11:36 AM
> To: [EMAIL PROTECTED]
> 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:
>
>
>
> <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>
>
> </property>
>
>
>
> 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,

Harsh J
+
Kevin Burton 2013-04-30, 16:36
+
rkevinburton@... 2013-05-01, 13:42
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB