FAQ
Hi Jon,

Can you try to set "export
HADOOP_MAPRED_HOME=/usr/lib/hadoop-0.20-mapreduce" in your environment
and retry?
On Sun, Aug 19, 2012 at 5:29 AM, Jon Ramos wrote:
Hi, I'm trying to run my first simple MapReduce word count example on a
one-node cluster running Cloudera Manager 4 + CDH4. I'm using the
examples.jar. I seem to be getting a permission denied error. Any tips on
how I can troubleshoot this?

Here is what my /etc/hosts looks like (x added to end of IP for anonymity):

[root@CM-CDH4 hadoop-mapreduce]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4
localhost4.localdomain4
::1 localhost localhost.localdomain localhost6
localhost6.localdomain6
50.56.207.x CM-CDH4
10.179.2.x CM-CDH4



[root@CM-CDH4 hadoop-mapreduce]# hadoop jar
/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar wordcount
/user/jramos/x_input /user/jramos/x_output
12/08/18 23:53:24 INFO mapreduce.Cluster: Failed to use
org.apache.hadoop.mapred.LocalClientProtocolProvider due to error: Invalid
"mapreduce.jobtracker.address" configuration value for LocalJobRunner :
"CM-CDH4:8021"
12/08/18 23:53:24 ERROR security.UserGroupInformation:
PriviledgedActionException as:root (auth:SIMPLE) cause:java.io.IOException:
Cannot initialize Cluster. Please check your configuration for
mapreduce.framework.name and the correspond server addresses.
java.io.IOException: Cannot initialize Cluster. Please check your
configuration for mapreduce.framework.name and the correspond server
addresses.
at org.apache.hadoop.mapreduce.Cluster.initialize(Cluster.java:121)
at org.apache.hadoop.mapreduce.Cluster.<init>(Cluster.java:83)
at org.apache.hadoop.mapreduce.Cluster.<init>(Cluster.java:76)
at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1196)
at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1192)
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:1232)
at org.apache.hadoop.mapreduce.Job.connect(Job.java:1191)
at org.apache.hadoop.mapreduce.Job.submit(Job.java:1220)
at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:1244)
at org.apache.hadoop.examples.WordCount.main(WordCount.java:84)
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.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:72)
at
org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:144)
at
org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:68)
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)


--
Harsh J

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 4 | next ›
Discussion Overview
groupscm-users @
categorieshadoop
postedAug 18, '12 at 11:59p
activeAug 27, '12 at 7:02p
posts4
users2
websitecloudera.com
irc#hadoop

2 users in discussion

Jon Ramos: 3 posts Harsh J: 1 post

People

Translate

site design / logo © 2022 Grokbase