Hadoop 什么';s beeline的用户名和密码

Hadoop 什么';s beeline的用户名和密码,hadoop,hive,beeline,Hadoop,Hive,Beeline,我正在使用cloudera虚拟机,我想连接到beeline,但当我留空时,它会询问用户名和密码,它无法连接。谁能告诉我用户名和密码吗 !!连接jdbc:hive2://localhost:10000/ 连接到jdbc:hive2://localhost:10000/ 输入jdbc的用户名:hive2://localhost:10000/: 输入jdbc的密码:hive2://localhost:10000/: 错误:无法使用JDBC Uri打开客户端传输:JDBC:hive2://localho

我正在使用cloudera虚拟机,我想连接到beeline,但当我留空时,它会询问用户名和密码,它无法连接。谁能告诉我用户名和密码吗

!!连接jdbc:hive2://localhost:10000/ 连接到jdbc:hive2://localhost:10000/ 输入jdbc的用户名:hive2://localhost:10000/: 输入jdbc的密码:hive2://localhost:10000/: 错误:无法使用JDBC Uri打开客户端传输:JDBC:hive2://localhost:10000/:java.net.ConnectException:连接被拒绝(状态=08S01,代码=0) 0:jdbc:hive2://localhost:10000/(已关闭)>

[cloudera@quickstart~]$直线 2019-10-09 17:06:46217警告[main]mapreduce.TableMapReduceUtil:包含PrefixTreeCodec的hbase前缀树模块jar不存在。没有它就继续。 ApacheHive的直线版本1.1.0-cdh5.7.0 直线>!连接jdbc:hive2://localhost:10000/ 扫描在5毫秒内完成 连接到jdbc:hive2://localhost:10000/ 输入jdbc的用户名:hive2://localhost:10000/:hadoop 输入jdbc的密码:hive2://localhost:10000/: 错误:无法使用JDBC Uri打开客户端传输:JDBC:hive2://localhost:10000/:java.net.ConnectException:连接被拒绝(状态=08S01,代码=0) 0:jdbc:hive2://localhost:10000/(已关闭)>

有人知道登录beeline的用户名和密码吗。我已检查了配置单元元存储和配置单元服务器2。它正在工作:-

[cloudera@quickstart~]$sudo服务配置单元元存储状态 配置单元元存储正在运行

[cloudera@quickstart~]$sudo服务配置单元-服务器2状态
Hive Server2正在运行[OK]

我已解决该问题。我的Namenode处于安全模式。因此,我使用:-hadoop dfsadmin-safemode leave关闭了安全模式。您可以使用“beeline-u jdbc:hive2://”

它将连接到hive2。这是使用直线与蜂巢通话的最佳方式。您不需要指定任何其他内容。请让我知道这是否适用于所有希望通过直线命令使用蜂巢的人。请检查链接