我想在ubuntu上安装hadoop。我遵循了以下教程:http://dogdogfish.com/2014/04/26/installing-hadoop-2-4-on-ubuntu-14-04/ 一切似乎都很顺利。但是,当我运行命令时:
hadoop namenode -format
我得到以下信息:
14/12/26 18:18:21 INFO namenode.NameNode: registered UNIX signal handlers for [TERM, HUP, INT]
14/12/26 18:18:21 INFO namenode.NameNode: createNameNode [-format]
14/12/26 18:18:22 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Formatting using clusterid: CID-b144d870-a74f-4c1c-8918-5b2fcef6805c
14/12/26 18:18:23 INFO namenode.FSNamesystem: No KeyProvider found.
在“找不到keyprovider”之后,进程完全卡住,没有输出。
你知道问题是什么,或者怎样调查吗?先谢谢你。
编辑:jstack结果
2014-12-27 17:14:53
Full thread dump OpenJDK Zero VM (24.65-b04 mixed mode):
"Attach Listener" daemon prio=10 tid=0x70104060 nid=0xe88 waiting on condition [0x00000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"Service Thread" daemon prio=10 tid=0xb577e3c0 nid=0xd98 runnable [0x00000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"Signal Dispatcher" daemon prio=10 tid=0xb577c9b8 nid=0xd97 runnable [0x00000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"Finalizer" daemon prio=10 tid=0xb5769fd8 nid=0xd96 in Object.wait() [0x7045e000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x859e6a70> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:135)
- locked <0x859e6a70> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:151)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:209)
Locked ownable synchronizers:
- None
"Reference Handler" daemon prio=10 tid=0xb5768a80 nid=0xd95 in Object.wait() [0x705fe000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x859e6b00> (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:503)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:133)
- locked <0x859e6b00> (a java.lang.ref.Reference$Lock)
Locked ownable synchronizers:
- None
"main" prio=10 tid=0xb570c4b0 nid=0xd93 runnable [0xb59a5000]
java.lang.Thread.State: RUNNABLE
at com.google.common.base.CharMatcher$12.setBits(CharMatcher.java:507)
at com.google.common.base.CharMatcher$Or.setBits(CharMatcher.java:642)
at com.google.common.base.CharMatcher.precomputedInternal(CharMatcher.java:673)
at com.google.common.base.Platform.precomputeCharMatcher(Platform.java:53)
at com.google.common.base.CharMatcher.precomputed(CharMatcher.java:657)
at com.google.common.base.CharMatcher.<clinit>(CharMatcher.java:179)
at com.google.common.base.Splitter.on(Splitter.java:125)
at org.apache.hadoop.crypto.CryptoCodec.getCodecClasses(CryptoCodec.java:114)
at org.apache.hadoop.crypto.CryptoCodec.getInstance(CryptoCodec.java:59)
at org.apache.hadoop.crypto.CryptoCodec.getInstance(CryptoCodec.java:100)
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.<init>(FSNamesystem.java:779)
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.<init>(FSNamesystem.java:755)
at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:934)
at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1379)
at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1504)
Locked ownable synchronizers:
- None
"VM Thread" prio=10 tid=0xb5766130 nid=0xd94 runnable
"VM Periodic Task Thread" prio=10 tid=0xb5780058 nid=0xd99 waiting on condition
JNI global references: 355
暂无答案!
目前还没有任何答案,快来回答吧!