使得hivecli访问hive

[root@node1 ~]# sudo -u hdfs hdfs dfs -ls /
Found 3 items
drwxr-xr-x - hbase hbase 0 2020-03-01 13:27 /hbase
drwxrwxrwt - hdfs supergroup 0 2020-02-29 19:18 /tmp
drwxr-xr-x - hdfs supergroup 0 2020-02-29 19:17 /user

#  sudo -u hdfs hdfs dfs -ls /user/hive/warehouse/stu

# sudo -u hdfs hive
WARNING: Use "yarn jar" to launch YARN applications.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-6.2.0-1.cdh6.2.0.p0.967373/jars/log4j-slf4j-impl-2.8.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-6.2.0-1.cdh6.2.0.p0.967373/jars/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.apache.logging.slf4j.Log4jLoggerFactory]

Logging initialized using configuration in jar:file:/opt/cloudera/parcels/CDH-6.2.0-1.cdh6.2.0.p0.967373/jars/hive-common-2.1.1-cdh6.2.0.jar!/hive-log4j2.properties Async: false

WARNING: Hive CLI is deprecated and migration to Beeline is recommended.

原文地址:https://www.cnblogs.com/zsfishman/p/12416329.html