我试图使用HBase在Hadoop上制作mapreduce程序。我使用Hadoop 2.5.1和HBase 0.98.10.1。
程序可以成功编译并制作成jar文件。但是,当我尝试使用" hadoop jar"来运行jar时程序显示错误说:
" org.apache.hadoop.hbase.client.HTable。(Lorg / apache / hadoop / conf / Configuration; Ljava / lang / String"。
以下是我用来启动HTable的代码行。
HBaseConfiguration config = new HBaseConfiguration();
HTable table = new HTable(config, "Test");
我应该改变什么来克服这个错误?
答案 0 :(得分:0)
我通过重新安装Hadoop 2.5.1和HBase 0.98.10以某种方式解决了这个错误。