如何配置 spark sql 节俭服务器

how to configure spark sql thrift server

我正在尝试安装 apache thrift 服务器。 我安装了 spark、hadoop 和 yarn。 我配置了配置单元 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 配置单元。server2.thrift.bind.host ycsb-vanilla-master --hiveconf 配置单元。server2.thrift.port 10001 但无法连接。 我已经看到大多数示例使用端口 10000,但该端口已被 hiveserver2 占用。

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

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

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

谢谢:)

您是否尝试过将 hive-site.xml 从 hive conf 目录复制到 spark conf 目录,并更改了 thrift 端口?复制后,您需要 运行 sbin/start-thriftserver.sh 不带任何参数。

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

sbin/start-thriftserver.sh --hiveconf hive.server2.thrift.port 8088