一、 Hive 交互命令
1. 首先解决一个可能发生的问题 (log4 jar包冲突)
我这里解决方法就是删除一个,我删的是hive下的包
yexiang@hadoop2:<apache-hive-2.3.7-bin>$ hive
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/soft/apache-hive-2.3.7-bin/lib/log4j-slf4j-impl-2.6.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/soft/hadoop-2.7.2/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]
usage: hive
...
...
yexiang@hadoop2:<lib>$ pwd
/opt/soft/apache-hive-2.3.7-bin/