从 Teradata Studio Express 15.10 连接 HDP

Connecting HDP from Teradata Studio Express 15.10

我一直在尝试通过 Knox 从 Teradata Studio Express 15.10 连接我的 HDP 集群 (2.1),但未能成功。我提供的所有配置,即 JDBC 主机名、端口、user/password、WebHCat 主机、端口都是正确的。如果我从直线 shell.

测试它,JDBC 连接工作正常
beeline> !connect jdbc:hive2://xx.xx.xxx.xxx:10000
scan complete in 11ms
Connecting to jdbc:hive2://xx.xx.xxx.xxx:10000
Enter username for jdbc:hive2://xx.xx.xxx.xxx:10000: hive
Enter password for jdbc:hive2://xx.xx.xxx.xxx:10000: ****
Connected to: Apache Hive (version 0.13.0.2.1.2.2-516)
Driver: Hive JDBC (version 0.13.0.2.1.2.2-516)
Transaction isolation: TRANSACTION_REPEATABLE_READ

但是我对它所询问的 WebHCat 用户名没有信心。不确定 HDP 的默认值是什么或如何定义新的。自定义 webhcat-site.xml 属性 "webhcat.proxyuser.hue.groups" & "webhcat.proxyuser.hue.hosts" 对我没有帮助。

当我尝试从 Teradata Studio Express GUI 进行连接时,出现以下错误:

java.lang.Exception: Could not establish connection to jdbc:hive2://xx.xx.xxx.xxx:10000/default?hive.server2.transport.mode=http;hive.server2.thrift.http.path=cliservice: org.apache.http.conn.HttpHostConnectException: Connection to http://xx.xx.xxx.xxx:10000 refused
    at com.teradata.datatools.hadoop.hive.connectivity.HiveConnection.openJdbcConnection(HiveConnection.java:286)
    at com.teradata.datatools.hadoop.hive.connectivity.HiveConnection.createConnection(HiveConnection.java:199)
    at org.eclipse.datatools.connectivity.DriverConnectionBase.internalCreateConnection(DriverConnectionBase.java:105)
    at org.eclipse.datatools.connectivity.DriverConnectionBase.open(DriverConnectionBase.java:54)
    at com.teradata.datatools.hadoop.hive.connectivity.HiveConnection.open(HiveConnection.java:144)
    at com.teradata.datatools.hadoop.hive.connectivity.HivePingFactory.createJdbcConnection(HivePingFactory.java:44)
    at com.teradata.datatools.hadoop.hive.connectivity.PingJdbcJob.createTestConnection(PingJdbcJob.java:30)
    at com.teradata.datatools.hadoop.hive.connectivity.PingJob.run(PingJob.java:42)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

有人知道这里发生了什么吗?任何指针将不胜感激。

已解决此问题。

TD Studio Express 15.10 中需要处理几个配置:

对于JDBC:

Hostname, Port Number (10000 or 10001 or any other on which the hive service is listening), JDBC User Name, JDBC Password & uncheck "HTTP Transport Mode" from the options list in the tool.

对于 WebHCat:

WebHCat Hostname, Port Number(50111 or the one on which HCat is listening) & WebHCat User Name (hue)

最后,防火墙配置应该不会阻塞 HCat 端口。