hbase shell运行问题

环境:CDH-5.15.0-1.cdh5.15.0 

突然运行hbase shell出现问题:

[root@cdh-master ~]# hbase shell
Error: Could not find or load main class org.apache.hadoop.util.PlatformName
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
NameError: cannot link Java class org.apache.hadoop.hbase.HConstants, probable missing dependency: org/apache/hadoop/io/RawComparator
  get_proxy_or_package_under_package at org/jruby/javasupport/JavaUtilities.java:54
                      method_missing at file:/opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/jars/jruby-cloudera-1.0.0.jar!/builtin/javasupport/java.rb:51
                      HBaseConstants at /opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/lib/hbase/bin/../lib/ruby/hbase.rb:39
                              (root) at /opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/lib/hbase/bin/../lib/ruby/hbase.rb:34
                             require at org/jruby/RubyKernel.java:1062
                              (root) at /opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/lib/hbase/bin/../bin/hirb.rb:118

hbase shell运行问题_第1张图片

解决分析:连接hadoop出现问题--缺少jar包---hadoop-auth-2.6.0-cdh5.15.0.jar

解决方案

[root@cdh-master jars]# cp /opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/jars/hadoop-auth-2.6.0-cdh5.15.0.jar /opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/lib/hbase/lib

[root@cdh-master lib]# chmod 777 /opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/lib/hbase/lib/hadoop-auth-2.6.0-cdh5.15.0.jar
[root@cdh-master lib]# chown cloudera-scm:cloudera-scm /opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/lib/hbase/lib/hadoop-auth-2.6.0-cdh5.15.0.jar

 

你可能感兴趣的:(大数据问题总结)