项目场景:
- 操作系统:Ubuntu 18 - Hadoop版本:Hadoop 3.1.3 - HBase版本:2.2.2 - JDK版本:1.8 - Java IDE:eclipse
问题描述:
进入shell界面时蹦出好多信息: 提示:/usr/local/hadoop/bin/…/libexec/hadoop-functions.sh: line 2395: HADOOP_ORG.APACHE.HADOOP.HBASE.UTIL.GETJAVAPROPERTY_USER: bad substitution /usr/local/hadoop/bin/…/libexec/hadoop-functions.sh: line 2360: HADOOP_ORG.APACHE.HADOOP.HBASE.UTIL.GETJAVAPROPERTY_USER: bad substitution /usr/local/hadoop/bin/…/libexec/hadoop-functions.sh: line 2455: HADOOP_ORG.APACHE.HADOOP.HBASE.UTIL.GETJAVAPROPERTY_OPTS: bad substitution SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/usr/local/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/usr/local/hbase/lib/client-facing-thirdparty/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory] HBase Shell
原因分析:
中文显示:无效变量名,错误:找不到或无法加载主类 可能是Hadoop和Hbase包冲突所致
解决方案:
进入/usr/local/hbase/conf/hbase-env 文件,将最后一行不允许注释
原来 取消注释,保存退出 重新进入shell界面,问题解决了
|