[ 
https://issues.apache.org/jira/browse/BOOKKEEPER-682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13766148#comment-13766148
 ] 

SN_cn commented on BOOKKEEPER-682:
----------------------------------

 yeah,u are right,I have both binary package and src package.I was mixed up of 
them, later I run `mvn package` then can start bookie successfully!
 but i get a new problem:
when I run "start-dfs.sh",the namenode can't start but datanode can:

2013-09-13 17:19:43,651 FATAL org.apache.hadoop.hdfs.server.namenode.NameNode: 
Exception in namenode join
java.lang.NoClassDefFoundError: 
org/apache/bookkeeper/client/BKException$BKNoSuchLedgerExistsException
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:247)
        at 
org.apache.hadoop.conf.Configuration.getClassByNameOrNull(Configuration.java:1519)
        at 
org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:1484)
        at 
org.apache.hadoop.conf.Configuration.getClass(Configuration.java:1578)
        at 
org.apache.hadoop.conf.Configuration.getClass(Configuration.java:1604)
        at 
org.apache.hadoop.hdfs.server.namenode.FSEditLog.getJournalClass(FSEditLog.java:1222)
        at 
org.apache.hadoop.hdfs.server.namenode.FSEditLog.createJournal(FSEditLog.java:1245)
        at 
org.apache.hadoop.hdfs.server.namenode.FSEditLog.initJournals(FSEditLog.java:226)
        at 
org.apache.hadoop.hdfs.server.namenode.FSEditLog.initSharedJournalsForRead(FSEditLog.java:206)
        at 
org.apache.hadoop.hdfs.server.namenode.FSImage.initEditLog(FSImage.java:668)
        at 
org.apache.hadoop.hdfs.server.namenode.FSImage.loadFSImage(FSImage.java:595)
        at 
org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSImage.java:264)
        at 
org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFSImage(FSNamesystem.java:627)
        at 
org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFromDisk(FSNamesystem.java:469)
        at 
org.apache.hadoop.hdfs.server.namenode.NameNode.loadNamesystem(NameNode.java:403)
        at 
org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:437)
        at 
org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:609)
        at 
org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:594)
        at 
org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1169)
        at 
org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1235)
Caused by: java.lang.ClassNotFoundException: 
org.apache.bookkeeper.client.BKException$BKNoSuchLedgerExistsException
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        ... 21 more
2013-09-13 17:19:43,655 INFO org.apache.hadoop.util.ExitUtil: Exiting with 
status 1
2013-09-13 17:19:43,656 INFO org.apache.hadoop.hdfs.server.namenode.NameNode: 
SHUTDOWN_MSG:
                
> Could not find the main class: org.apache.bookkeeper.proto.BookieServer,
> ------------------------------------------------------------------------
>
>                 Key: BOOKKEEPER-682
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-682
>             Project: Bookkeeper
>          Issue Type: Question
>            Reporter: SN_cn
>
> I want to build the namenode HA with using the bookkeeper,but when I run 
> /bookkeeper bookie command , it don't work:
> JMX enabled by default
> cat: 
> /home/chenlin/bookkeeper-4.2.1/bookkeeper-server/target/cached_classpath.txt: 
> No such file or directory
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> org/apache/bookkeeper/proto/BookieServer
> Caused by: java.lang.ClassNotFoundException: 
> org.apache.bookkeeper.proto.BookieServer
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> Could not find the main class: org.apache.bookkeeper.proto.BookieServer.  
> Program will exit.
> thanks advance.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to