Could not open client transport with JDBC Uri: jdbc:hive2://hadoop01:10000: java.net.ConnectException: Connection refused: connect
时间: 2023-10-19 15:56:58 浏览: 258
引用\[1\]:22/04/10 01:13:24 \[main\]: WARN jdbc.HiveConnection: Failed to connect to hadoop102:10000 Error: Could not open client transport with JDBC Uri: jdbc:hive2://hadoop102:10000: Failed to open new session: java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: fei is not allowed to impersonate fei (state=08S01,code=0) 。 引用\[2\]:Error: Could not open client transport with JDBC Uri: jdbc:hive2://192.168.136.128:10000/mydb/: Failed to open new session: java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: root is not allowed to impersonate root (state=08S01,code=0) 。 引用\[3\]:在安装hive的时候,启动hiveserver2后,启动beeline客户端报错如下: Could not open client transport with JDBC Uri: jdbc:hive2://hadoop101:10000: Failed to open new session: java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: root is not allowed to impersonate root (state=08S01,code=0) 产生这一问题的原因是,在Hadoop集群配置文件,hdfs-site.xml和core-site.xml没有进行用户相关的配置。 解决方式如下: 1 首先需要关闭hive的元数据服务和hiveserver2,然后关闭Hadoop集群 2 vim /hadoop-3.1.3/etc/hadoop/hdfs-site.xml 添加下面配置内容 <property> <name>dfs.webhdfs.enabled</name> <value>true</value> </property> 。
问题:Could not open client transport with JDBC Uri: jdbc:hive2://hadoop01:10000: java.net.ConnectException: Connection refused: connect
回答: 这个问题的原因是连接被拒绝,可能是因为Hadoop集群中的Hive服务没有启动或者配置有误。你可以尝试以下解决方式:
1. 确保Hadoop集群中的Hive服务已经启动。可以通过检查Hive的日志文件或者使用命令行工具来确认。
2. 检查连接的JDBC URI是否正确,包括主机名、端口号和数据库名称等信息。
3. 确保网络连接正常,没有被防火墙或其他安全设置阻止。
4. 检查Hadoop集群的配置文件,特别是hdfs-site.xml和core-site.xml,确保其中的用户相关配置正确设置。
如果以上方法都没有解决问题,你可以尝试重新配置Hadoop集群和Hive服务,确保配置正确无误。
#### 引用[.reference_title]
- *1* [Error: Could not open client transport with JDBC Uri: jdbc:hive2://hadoop102:10000: Failed to open..](https://blog.csdn.net/weixin_46005650/article/details/124071650)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [hive中 beeline连接时报错](https://blog.csdn.net/qq_37668945/article/details/83627783)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [Hive beeline客户端启动报错Could not open client transport with JDBC Uri: jdbc:hive2://hadoop101:...](https://blog.csdn.net/qq_32118757/article/details/128686275)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文