spark 开启Thrift Server

Last updated on November 22, 2024 pm

🧙 Questions

开启单节点spark的Thrift Server服务

☄️ Ideas

前提

拷贝配置文件
cp /opt/hive/conf/hive-site.xml /opt/spark/conf/
查看日志
tail -f /opt/spark/logs/spark-ispong-org.apache.spark.sql.hive.thriftserver.HiveThriftServer2-1-isxcode.out
启动服务
cd /opt/spark/sbin
bash start-thriftserver.sh 
  --hiveconf hive.server2.thrift.port=1000 \
  --hiveconf hive.server2.thrift.bind.host=isxcode
访问
cd /opt/spark/bin
bash beeline -u jdbc:hive2://localhost:10000 -n ispong -p ispong123 
# !connect jdbc:hive2://localhost:10000

spark 开启Thrift Server
https://ispong.isxcode.com/hadoop/spark/spark 开启Thrift Server/
Author
ispong
Posted on
June 15, 2023
Licensed under