我安装了一个ambari集群,但是当我使用server hive命令link hive时,页面会显示出来,但是在我的CDH集群和本地hive中,这里应该没有0: JDBC :hive2:// cluster .ambari:2181,lave1.amb,我应该如何设置让他成为hive,或者jdbc显示在这里:0:jdbc:hive2:// cluster .ambari:2181,lave1.amb。引起amb的原因是什么?我期待着你的帮助。谢谢。
[root@slave1 conf]# hive
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/hdp/3.1.4.0-315/hive/lib/log4j-slf4j-impl-2.10.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/hdp/3.1.4.0-315/hadoop/lib/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]
Connecting to jdbc:hive2://master.ambari:2181,slave1.ambari:2181,slave2.ambari:2181/default;password=root;serviceDiscoveryMode=zooKeeper;user=root;zooKeeperNamespace=hiveserver2
20/07/20 21:52:18 [main]: INFO jdbc.HiveConnection: Connected to slave1.ambari:10000
Connected to: Apache Hive (version 3.1.0.3.1.4.0-315)
Driver: Hive JDBC (version 3.1.0.3.1.4.0-315)
Transaction isolation: TRANSACTION_REPEATABLE_READ
Beeline version 3.1.0.3.1.4.0-315 by Apache Hive
0: jdbc:hive2://master.ambari:2181,slave1.amb> 发布于 2020-07-25 15:52:41
amb是您为集群中的服务器指定的域名。
beeline是新的连接命令行界面,而不是hive (只是一个别名)
您看到的是正确的,我不确定您指的是什么文档,但它似乎已经过时了
https://stackoverflow.com/questions/63006247
复制相似问题