[kepler-dev] Hadoop problems

Daniel Crawl danielcrawl at gmail.com
Sat Sep 27 11:30:03 PDT 2014


Hi Truong,

Which JDK are you using? It looks like this error occurs for
non-Oracle JDKs:

https://issues.apache.org/jira/browse/HADOOP-6941

The easiest fix is to switch to the Oracle JDK.

   --dan

On 9/27/14 5:33 AM, Viet Truong Xuan wrote:
> Dear all,
>
> I'm trying to run the examples of Hadoop on Kepler 2.4, but get some
> problems with it.
> When I start the Hadoop service (with correct passwords as required) with:
>
> *bin/start-hadoop.sh*
> *The output is as the following and the worklows cannot be run:*
>
> bin
> bin=.
> bin=/home/cloudera/KeplerData/workflows/module/hadoop-1.0.0/tools/bin
> starting namenode, logging to
> /home/cloudera/KeplerData/workflows/module/hadoop-1.0.0/tools/bin/../logs/hadoop-cloudera-namenode-quickstart.cloudera.out
> cloudera at localhost's password:
> localhost: starting datanode, logging to
> /home/cloudera/KeplerData/workflows/module/hadoop-1.0.0/tools/bin/../logs/hadoop-cloudera-datanode-quickstart.cloudera.out
> cloudera at localhost's password:
> localhost: starting secondarynamenode, logging to
> /home/cloudera/KeplerData/workflows/module/hadoop-1.0.0/tools/bin/../logs/hadoop-cloudera-secondarynamenode-quickstart.cloudera.out
> localhost: Exception in thread "main" java.lang.NoClassDefFoundError:
> com.sun.security.auth.UnixPrincipal
> localhost:    at
> org.apache.hadoop.security.UserGroupInformation.<clinit>(UserGroupInformation.java:313)
> localhost:    at java.lang.Class.initializeClass(libgcj.so.10)
> localhost:    at
> org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.initialize(SecondaryNameNode.java:144)
> localhost:    at
> org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.<init>(SecondaryNameNode.java:125)
> localhost:    at
> org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.main(SecondaryNameNode.java:579)
> DEPRECATED: Use of this script to execute hdfs command is deprecated.
> Instead use the hdfs command for it.
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> com.sun.security.auth.UnixPrincipal
>     at
> org.apache.hadoop.security.UserGroupInformation.<clinit>(UserGroupInformation.java:313)
>     at java.lang.Class.initializeClass(libgcj.so.10)
>     at org.apache.hadoop.fs.FileSystem$Cache$Key.<init>(FileSystem.java:1953)
>     at org.apache.hadoop.fs.FileSystem$Cache$Key.<init>(FileSystem.java:1945)
>     at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1807)
>     at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:265)
>     at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:146)
>     at org.apache.hadoop.fs.FsShell.init(FsShell.java:85)
>     at org.apache.hadoop.hdfs.tools.DFSAdmin.run(DFSAdmin.java:981)
>     at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:69)
>     at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:83)
>     at org.apache.hadoop.hdfs.tools.DFSAdmin.main(DFSAdmin.java:1068)
> starting jobtracker, logging to
> /home/cloudera/KeplerData/workflows/module/hadoop-1.0.0/tools/bin/../logs/hadoop-cloudera-jobtracker-quickstart.cloudera.out
> cloudera at localhost's password:
> localhost: starting tasktracker, logging to
> /home/cloudera/KeplerData/workflows/module/hadoop-1.0.0/tools/bin/../logs/hadoop-cloudera-tasktracker-quickstart.cloudera.out
>
> If there are some body can give me a help?
>
> Thanks,
>
> Truong Xuan Viet
>
>
>
> _______________________________________________
> Kepler-dev mailing list
> Kepler-dev at kepler-project.org
> http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev
>



More information about the Kepler-dev mailing list