[mw_shl_code=shell,true][root@master ~]# beeline -u jdbc:hive2://master:10000/default -n root
which: no hbase in (/opt/java/jdk/bin:/opt/zookeeper/bin:/opt/scala/bin:/opt/hive/bin:/opt/spark/bin:/opt/hadoop/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/hive/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.10.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.apache.logging.slf4j.Log4jLoggerFactory]
Connecting to jdbc:hive2://master:10000/default
[/mw_shl_code]
which: no hbase in (/opt/java/jdk/bin:/opt/zookeeper/bin:/opt/scala/bin:/opt/hive/bin:/opt/spark/bin:/opt/hadoop/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)
上面括号中确实没有hbase的配置。
SLF4J: Class path contains multiple SLF4J bindings.这个错误是因为多个地方都包含了这个jar包