2

我正在尝试安装 apache thrift server 。我安装了 spark、hadoop 和 yarn。我配置了 hive metastore 并成功启动了 metastore 和 hiveserver2: nohup hive --service metastore > /var/log/hive/metastore.log & nohup hive --service hiveserver2 > /var/log/hive/hiveserver2.log &

hiveserver2 现在侦听端口 10000。

当我尝试启动 spark thrift 服务器时,我正在运行: sbin/start-thriftserver.sh --hiveconf hive.server2.thrift.bind.host ycsb-vanilla-master --hiveconf hive.server2.thrift.port 10001 但我无法连接。我已经看到大多数示例使用端口 10000,但该端口已被 hiveserver2 占用。

运行直线连接: !connect jdbc:hive2://localhost:10000

但无法连接: !connect jdbc:hive2://localhost:10001

尝试与 simba 连接检索 errornum=10061,我错过了什么?

谢谢 :)

4

2 回答 2

3

您可以通过以下方式简单地使 spark-thrift 服务器在另一个端口上运行:

sbin/start-thriftserver.sh --hiveconf hive.server2.thrift.port 8088 
于 2018-02-13T21:45:05.270 回答
1

您是否尝试从 hive conf 目录复制hive-site.xml到 spark conf 目录并更改端口以进行节俭?复制后,您将需要在sbin/start-thriftserver.sh没有任何参数的情况下运行。

于 2017-08-10T12:35:26.090 回答