1

我一直在尝试在 Windows 上的 cygwin 上运行 hbase,但在让它正常工作时遇到了一些麻烦。问题是我在克服这个错误方面遇到了一些麻烦,因为我无法找到关于这个异常的任何有用的帮助。

user@myself ~/apache/hbase
$ ./bin/start-hbase.sh
localhost: starting zookeeper, logging to /home/user/apache/hbase/bin/../logs/hbase-myself-zookeeper-myself.out
starting master, logging to /home/user/apache/hbase/bin/../logs/hbase-myself-master-myself.out
java.lang.NoClassDefFoundError: org/apache/zookeeper/KeeperException
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2521)
        at java.lang.Class.getMethod0(Class.java:2764)
        at java.lang.Class.getMethod(Class.java:1653)
        at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
        at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
Caused by: java.lang.ClassNotFoundException: org.apache.zookeeper.KeeperException
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
localhost: starting regionserver, logging to /home/user/apache/hbase/bin/../logs/hbase-myself-regionserver-myself.out
localhost: java.lang.NoClassDefFoundError: org/apache/zookeeper/KeeperException
localhost:      at java.lang.Class.getDeclaredMethods0(Native Method)
localhost:      at java.lang.Class.privateGetDeclaredMethods(Class.java:2521)
localhost:      at java.lang.Class.getMethod0(Class.java:2764)
localhost:      at java.lang.Class.getMethod(Class.java:1653)
localhost:      at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
localhost:      at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
localhost: Caused by: java.lang.ClassNotFoundException: org.apache.zookeeper.KeeperException
localhost:      at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
localhost:      at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

为了让它运行,我一直在使用这些网站:http://hbase.apache.org/book/quickstart.html http://hbase.apache.org/cygwin.html
http ://archive.cloudera。 com/cdh/3/hbase/cygwin.html http://alans.se/blog/2010/hadoop-hbase-cygwin-windows-7-x64/


这些都没有解决这个问题的方法,所以我不知道我做错了什么。

我可以确认 zookeeper zookeeper-3.4.5.jar 在 /home/user/apache/hbase/lib
我使用的是 hbase 版本 0.94.12。我正在使用 cygwin 版本 1.7.25 x64 版本。

4

1 回答 1

0

HBASE 版本 = 0.94.12 CYGwin 环境

转到 /hbase/conf/Hbase-env.sh

HBASE_CLASSPATH = /cygdrive/c/cygwin/usr/local/hbase-0.94.12/lib/zookeeper-3.4.5.jar

将解决动物园管理员异常...

于 2013-10-10T10:59:26.217 回答