2013-01-09 85 views
0

,如果我嘗試啓動HBase的,HMASTER未運行,並獲得以下 error.From谷歌我想這是因爲類路徑不匹配,所以我 將hadoop jar複製到hbase/lib中,但仍然在getiing下面出錯。配置Hadoop的-2.0.2-α與HBase的-0.94.2

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) 

回答

0

如果這是一個錯誤的Classpath嘗試添加$HBASE_HOME/conf/$HBASE_HOME/lib/$HADOOP_CLASSPATH。後者可以在$HADOOP_HOME/conf/hadoop-env.sh中設置。對我而言,它就是這樣。