2016-01-23 63 views

回答

0

我有类似的错误并通过执行以下步骤解决:

1)确保HBase客户端版本与群集上的HBase版本兼容。 2)将hbase-site.xml添加到您的应用程序类路径中,以便HBase客户端根据它确定所有适当的HBase配置。

val conf = org.apache.hadoop.hbase.HBaseConfiguration.create() 
// Instead of the following settings, pass hbase-site.xml in classpath 
// conf.set("hbase.zookeeper.quorum", hbaseHost) 
// conf.set("hbase.zookeeper.property.clientPort", hbasePort) 

HBaseAdmin.checkHBaseAvailable(conf); 
log.debug("HBase found! with conf " + conf); 
相关问题