使用HBase运行Hadoop:org.apache.hadoop.hbase.client.HTable。<init>(Lorg / apache / hadoop / conf / Configuration; Ljava / lang / String </init>

时间:2015-03-09 19:26:56

标签: apache hadoop mapreduce hbase yarn

我试图使用HBase在Hadoop上制作mapreduce程序。我使用Hadoop 2.5.1和HBase 0.98.10.1。

程序可以成功编译并制作成jar文件。但是,当我尝试使用&#34; hadoop jar&#34;来运行jar时程序显示错误说:

  

&#34; org.apache.hadoop.hbase.client.HTable。(Lorg / apache / hadoop / conf / Configuration; Ljava / lang / String&#34;。

以下是我用来启动HTable的代码行。

HBaseConfiguration config = new HBaseConfiguration();
HTable table = new HTable(config, "Test");

我应该改变什么来克服这个错误?

1 个答案:

答案 0 :(得分:0)

我通过重新安装Hadoop 2.5.1和HBase 0.98.10以某种方式解决了这个错误。

相关问题