Note that there are some explanatory texts on larger screens.

plurals
  1. POHadoop on MAC pseudo node : nodename nor servname provided, or not known
    text
    copied!<p>I am a Hadoop newbie. I installed Hadoop on my MAC using this <a href="http://importantfish.com/how-to-run-hadoop-in-standalone-mode-using-eclipse-on-mac-os-x/">link</a></p> <p>It worked like a charm for me to begin with, but now I hit this problem when I run the same WordCount problem from Eclipse :</p> <pre><code>ERROR security.UserGroupInformation: PriviledgedActionException as:&lt;username&gt; cause:java.net.UnknownHostException: &lt;hostname&gt;: &lt;hostname&gt;: hostname nor servname provided, or not known Exception in thread "main" java.net.UnknownHostException: &lt;hostname&gt;: &lt;hostname&gt;: nodename nor servname provided, or not known at java.net.InetAddress.getLocalHost(InetAddress.java:1466) at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:960) at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:936) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:415) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1190) at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:936) at org.apache.hadoop.mapreduce.Job.submit(Job.java:550) at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:580) at WordCount.main(WordCount.java:57) Caused by: java.net.UnknownHostException: &lt;hostname&gt;: nodename nor servname provided, or not known at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) </code></pre> <p>This is how my conf files look :</p> <p><em>core-site.xml:</em></p> <pre><code>&lt;configuration&gt; &lt;property&gt; &lt;name&gt;fs.default.name&lt;/name&gt; &lt;value&gt;hdfs://localhost:9000&lt;/value&gt; &lt;/property&gt; &lt;/configuration&gt; </code></pre> <hr> <p><em>hadoop-env.sh</em></p> <p>Has the following entry, in addition the defaults:</p> <pre><code>export HADOOP_OPTS="-Djava.security.krb5.realm=OX.AC.UK -Djava.security.krb5.kdc=kdc0.ox.ac.uk:kdc1.ox.ac.uk" </code></pre> <hr> <p><em>hdfs-site.xml</em></p> <pre><code>&lt;configuration&gt; &lt;property&gt; &lt;name&gt;dfs.replication&lt;/name&gt; &lt;value&gt;1&lt;/value&gt; &lt;/property&gt; &lt;/configuration&gt; </code></pre> <hr> <p><em>mapred-site.xml</em></p> <pre><code>&lt;configuration&gt; &lt;property&gt; &lt;name&gt;mapred.job.tracker&lt;/name&gt; &lt;value&gt;localhost:9001&lt;/value&gt; &lt;/property&gt; &lt;/configuration&gt; </code></pre> <hr> <p>I also see this in the beginning of the errors:</p> <pre><code>2013-10-11 21:03:08.795 java[7484:1903] Unable to load realm mapping info from SCDynamicStore 13/10/11 21:03:08 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable 13/10/11 21:03:08 WARN mapred.JobClient: Use GenericOptionsParser for parsing the arguments. Applications should implement Tool for the same. 13/10/11 21:03:08 WARN mapred.JobClient: No job jar file set. User classes may not be found. See JobConf(Class) or JobConf#setJar(String). 13/10/11 21:03:08 INFO mapred.JobClient: Cleaning up the staging area file:/tmp/hadoop-&lt;uname&gt;/mapred/staging/&lt;uname&gt;386844365/.staging/job_local386844365_0001 </code></pre> <p>Can somebody please tell me if I am doing anything wrong ? My program is the same and havent changed the defaults (which used to work)</p> <p>Thanks</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload