[root@bigdata111 apache-phoenix-5.0.0-HBase-2.0-bin]# hbase clean --cleanAll
错误: 找不到或无法加载主类 org.apache.hadoop.hbase.util.GetJavaProperty
错误: 找不到或无法加载主类 org.apache.hadoop.hbase.util.GetJavaProperty
错误: 找不到或无法加载主类 org.apache.hadoop.hbase.util.HBaseConfTool
错误: 找不到或无法加载主类 org.apache.hadoop.hbase.util.GetJavaProperty
错误: 找不到或无法加载主类 org.apache.hadoop.hbase.util.HBaseConfTool
错误: 找不到或无法加载主类 org.apache.hadoop.hbase.util.GetJavaProperty
错误: 找不到或无法加载主类 org.apache.hadoop.hbase.util.HBaseConfTool
ZNode(s) [错误: 找不到或无法加载主类 org.apache.hadoop.hbase.zookeeper.ZKMainServer] of regionservers are not expired. Exiting without cleaning hbase data.
[root@bigdata111 apache-phoenix-5.0.0-HBase-2.0-bin]# hbase zkcli
错误: 找不到或无法加载主类 org.apache.hadoop.hbase.util.GetJavaProperty
错误: 找不到或无法加载主类 org.apache.hadoop.hbase.zookeeper.ZKMainServer
[root@bigdata111 apache-phoenix-5.0.0-HBase-2.0-bin]# hbase zkcli
错误: 找不到或无法加载主类 org.apache.hadoop.hbase.util.GetJavaProperty
错误: 找不到或无法加载主类 org.apache.hadoop.hbase.zookeeper.ZKMainServer
[root@bigdata111 apache-phoenix-5.0.0-HBase-2.0-bin]# hbase zkcli
错误: 找不到或无法加载主类 org.apache.hadoop.hbase.util.GetJavaProperty
错误: 找不到或无法加载主类 org.apache.hadoop.hbase.zookeeper.ZKMainServer
[root@bigdata111 apache-phoenix-5.0.0-HBase-2.0-bin]# hbase clean --cleanAll
错误: 找不到或无法加载主类 org.apache.hadoop.hbase.util.GetJavaProperty
错误: 找不到或无法加载主类 org.apache.hadoop.hbase.util.GetJavaProperty
错误: 找不到或无法加载主类 org.apache.hadoop.hbase.util.HBaseConfTool
错误: 找不到或无法加载主类 org.apache.hadoop.hbase.util.GetJavaProperty
错误: 找不到或无法加载主类 org.apache.hadoop.hbase.util.HBaseConfTool
错误: 找不到或无法加载主类 org.apache.hadoop.hbase.util.GetJavaProperty
错误: 找不到或无法加载主类 org.apache.hadoop.hbase.util.HBaseConfTool
jZNode(s) [错误: 找不到或无法加载主类 org.apache.hadoop.hbase.zookeeper.ZKMainServer] of regionservers are not expired. Exiting without cleaning hbase data.
出现这个报错就是找不到hbase下的包,我们只需执行一个就可以了
export HADOOP_CLASSPATH=$HBASE_HOME/lib/*:$CLASSPATH