解决beeline 不能连接 hiveserver2的问题
2017-02-20 00:00
411 查看
连接出现如下问题:
Hive Connecting to beeline from client having various Modes.
1.Embedded Mode: Both Server and Client runs in same machine. No TCP Connection required.
2. Remote Mode: It supports multiple clients to execute queries with help of following Authentication schemes.
Authentication Schemes:
References:
https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.2/bk_dataintegration/content/beeline-vs-hive-cli.html
Could not open connection to jdbc:hive2://localhost:10000: java.net.ConnectException: Connection refused (state=08S01,code=0)
Hive Connecting to beeline from client having various Modes.
1.Embedded Mode: Both Server and Client runs in same machine. No TCP Connection required.
If hive.server2.authentication is "NONE" in HIVE_HOME/conf/hive-site.xml then connect beeline with below url Connection URL: !connect jdbc:hive2://
2. Remote Mode: It supports multiple clients to execute queries with help of following Authentication schemes.
Authentication Schemes:
i.)SASL Authentication: If value of "hive.server2.authentication" property in HIVE_HOME/conf/hive-site.xml to be set as "SASL" then connect hive beeline with below url Beeline URL: !connect jdbc:hive2://<host>:<port>/<db> ii.)NOSASL Authentication: If "hive.server2.authentication" is nosasl then connect the beeline like below. Beeline URL: !connect jdbc:hive2://<host>:<port>/<db>;auth=noSasl
References:
https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.2/bk_dataintegration/content/beeline-vs-hive-cli.html
相关文章推荐
- 解决:kettle连接hadoop 2.20后,导致不能连接Hive的问题
- HiveServer2连接ZooKeeper出现Too many connections问题的解决
- [spark]解决beeline连接thrift-server加载数据权限问题
- 解决EOS启动“不能连接到Server”的问题
- Hive中文乱码(JDBC连接HiveServer2)问题解决
- 解决hive客户端无法连接远程hive server问题
- 解决EOS启动“不能连接到Server”的问题
- 解决EOS启动“不能连接到Server”的问题
- Hive中文乱码(JDBC连接HiveServer2)问题解决
- [转]解决EOS启动“不能连接到Server”的问题
- win2003 asp 不能连接 access 问题解决
- 解决不能通过mysql.sock连接MySQL问题的办法
- 解决MS SQL Server 2005 无法远程连接问题
- 解决 web服务器部署常见问题,server application unavailable 和 程序无法连接数据库 的问题(asp.net 2.0 + oracle9i + winXP)
- Report Server 报表服务器安装sp2补丁后,报表服务器不能用的问题解决方法
- Visual Studio 2008不能创建数据库连接出现:未能加载文件或程序集“Microsoft.SqlServer.Management.Sdk.Sfc, Version=10.0.0.0, Culture=neutral,PublicKeyToken=89845dcd8080cc91”或它的一个依赖项。系统找不到指定的文件的解决办法
- Visual Studio 2008不能创建数据库连接出现:未能加载文件或程序集“Microsoft.SqlServer.Management.Sdk.Sfc, Version=10.0.0.0, Culture=neutral,PublicKeyToken=89845dcd8080cc91”或它的一个依赖项。系统找不到指定的文件的解决办法
- Java与数据库SQLSserver2005的连接问题解决
- 关于在java中连接MS SQL Server 2005 JDBC的问题及解决办法
- FAQ-1:不能远程连接其它SQL数据库问题及解决方法