hbase1.2.0-cdh5.11.2升级到hbase2.1.0-cdh6.3.0遇到的问题之hbase通过MapReduce查看表行数

求解???
环境描述:五台测试机器,该台机器并非重装linux系统,而是删除原5.11.2集群上的已知目录,然后通过其他四台机器上cdh6.3.0添加新主机。由于只有此台机器配置高,故此台机器上有各种自我安装的软件:phoenix5.0(官网最高只支持hbase2.0)。
问题描述:执行以下命令报错

[root@worker ~]# hbase org.apache.hadoop.hbase.mapreduce.RowCounter 'TESTSALT'
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-6.3.0-1.cdh6.3.0.p0.1279813/lib/hbase/lib/phoenix-5.0.0-HBase-2.0-pig.jar!/org/slf4j  /impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-6.3.0-1.cdh6.3.0.p0.1279813/lib/hbase/lib/phoenix-5.0.0-HBase-2.0-thin-client.jar!/o  rg/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-6.3.0-1.cdh6.3.0.p0.1279813/jars/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLogg  erBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
Exception in thread "main" java.io.IOException: Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name and the   correspond server addresses.
        at org.apache.hadoop.mapreduce.Cluster.initialize(Cluster.java:116)
        at org.apache.hadoop.mapreduce.Cluster.(Cluster.java:109)
        at org.apache.hadoop.mapreduce.Cluster.(Cluster.java:102)
        at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1540)
        at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1536)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:422)
        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1962)
        at org.apache.hadoop.mapreduce.Job.connect(Job.java:1536)
        at org.apache.hadoop.mapreduce.Job.submit(Job.java:1564)
        at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:1588)
        at org.apache.hadoop.hbase.mapreduce.RowCounter.run(RowCounter.java:242)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
        at org.apache.hadoop.hbase.mapreduce.RowCounter.main(RowCounter.java:261)

经查网友普遍认为是jar包问题:https://stackoverflow.com/questions/33011134/cannot-initialize-cluster-please-check-your-configuration-for-mapreduce-framewo
https://www.cppentry.com/bencandy.php?fid=114&id=185228

https://blog.51cto.com/zcnick/1415560
可是我查看了其他四台正常(文首的查看hbase表行数)机器(重装linux后才安装cdh6.3.0)上

find / -name hadoop-mapreduce-client-jobclient-*.jar
find / -name hadoop-mapreduce-client-common-*.jar

仅能发现此台异常机器仅仅多出了phoenix5的如下包:

/root/my/phoenix/phoenix-hive/target/dependency/hadoop-mapreduce-client-jobclient-3.0.0.jar
/root/my/phoenix/phoenix-hive/target/dependency/hadoop-mapreduce-client-jobclient-3.0.0-tests.jar
/root/maven_repo/org/apache/hadoop/hadoop-mapreduce-client-jobclient/3.0.0/hadoop-mapreduce-client-jobclient-3.0.0.jar
/root/maven_repo/org/apache/hadoop/hadoop-mapreduce-client-jobclient/3.0.0/hadoop-mapreduce-client-jobclient-3.0.0-tests.jar
/opt/cloudera/phoenix-5.0.0-HBase-2.0/lib/hadoop-mapreduce-client-jobclient-3.0.0.jar
和
/root/my/phoenix/phoenix-hive/target/dependency/hadoop-mapreduce-client-common-3.0.0.jar
/root/maven_repo/org/apache/hadoop/hadoop-mapreduce-client-common/3.0.0/hadoop-mapreduce-client-common-3.0.0.jar
/opt/cloudera/phoenix-5.0.0-HBase-2.0/lib/hadoop-mapreduce-client-common-3.0.0.jar

有点“丈二的和尚摸不着头脑”的感觉

你可能感兴趣的:(cdh,hbase修复)