Hadoop version cdh4.3.2
Exception description
Journalnode prompts that the data cannot be written, and an exception is thrown at the backend.
1.6.small: 50854: error: org. apache. hadoop. hdfs. qjournal. protocol. JournalNotFormattedException: Journal Storage Directory/data/hadoop/journalnode/journaldata/jn/mycluster not formatted
Org. apache. hadoop. hdfs. qjournal. protocol. JournalNotFormattedException: Journal Storage Directory/data/hadoop/journalnode/journaldata/jn/mycluster not formatted
At org. apache. hadoop. hdfs. qjournal. server. Journal. checkFormatted (Journal. java: 451)
At org. apache. hadoop. hdfs. qjournal. server. Journal. getEditLogManifest (Journal. java: 634)
At org. apache. hadoop. hdfs. qjournal. server. JournalNodeRpcServer. getEditLogManifest (JournalNodeRpcServer. java: 177)
At org. apache. hadoop. hdfs. qjournal. protocolPB. QJournalProtocolServerSideTranslatorPB. getEditLogManifest (QJournalProtocolServerSideTranslatorPB. java: 196)
At org. apache. hadoop. hdfs. qjournal. protocol. QJournalProtocolProtos $ QJournalProtocolService $2. callBlockingMethod (QJournalProtocolProtos. java: 14028)
At org. apache. hadoop. ipc. ProtobufRpcEngine $ Server $ ProtoBufRpcInvoker. call (ProtobufRpcEngine. java: 453)
At org. apache. hadoop. ipc. RPC $ Server. call (RPC. java: 1002)
At org. apache. hadoop. ipc. Server $ Handler $ 1.run( Server. java: 1701)
At org. apache. hadoop. ipc. Server $ Handler $ 1.run( Server. java: 1697)
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: 1408)
At org. apache. hadoop. ipc. Server $ Handler. Execute (Server. java: 1695)
Solution
Copy another normal journalnode to the specified journaldata directory, restart the service, done
Build a Hadoop environment on Ubuntu 13.04
Cluster configuration for Ubuntu 12.10 + Hadoop 1.2.1
Build a Hadoop environment on Ubuntu (standalone mode + pseudo Distribution Mode)
Configuration of Hadoop environment in Ubuntu
Detailed tutorial on creating a Hadoop environment for standalone Edition
Build a Hadoop environment (using virtual machines to build two Ubuntu systems in a Winodws environment)