使用hbase-0.94.2配置hadoop-2.0.2-alpha

时间:2013-01-09 08:16:41

标签: hadoop hbase

  

如果我尝试启动hbase,hmaster没有运行并且在下面   错误。从谷歌我试过它是因为类路径不匹配所以我   将hadoop jar复制到hbase / lib中,但我仍然在错误之下。

FATAL master.HMaster: Unhandled exception. Starting shutdown.
org.apache.hadoop.ipc.RemoteException: Server IPC version 7 cannot communicate with client version 4
    at org.apache.hadoop.ipc.Client.call(Client.java:1070)
    at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:225)
    at $Proxy10.getProtocolVersion(Unknown Source)
    at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:396)
    at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:379)
    at org.apache.hadoop.hdfs.DFSClient.createRPCNamenode(DFSClient.java:119)
    at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:238)
    at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:203)
    at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:89)
    at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:1386)
    at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:66)
    at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1404)
    at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:254)
    at org.apache.hadoop.fs.Path.getFileSystem(Path.java:187)
    at org.apache.hadoop.hbase.util.FSUtils.getRootDir(FSUtils.java:561)
    at org.apache.hadoop.hbase.master.MasterFileSystem.<init>(MasterFileSystem.java:94)
    at org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:482)
    at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:344)
    at java.lang.Thread.run(Thread.java:722)

1 个答案:

答案 0 :(得分:0)

如果是类路径错误,请尝试将$HBASE_HOME/conf/$HBASE_HOME/lib/添加到$HADOOP_CLASSPATH。后一个可以在$HADOOP_HOME/conf/hadoop-env.sh中设置。对我而言,它就是这样的。