我试图在不同的端口上运行Spark thrift服务器,例如12000.我引用了Spark sql文档和其他URL但是不能在不同的端口上运行Spark thrift服务器。它不能在端口上运行因为Hive正在使用10000 我还提到https://github.com/abhibasu/sparksql/wiki/SparkSQL-Configuration-in-CDH-5.3并进行了修改。 试图从Spark_home / sbin>开始Spark thrift export HIVE_SERVER2_THRIFT_PORT = 12000 Spark_home / sbin目录> ./start-thriftserver.sh
日志文件显示以下错误。 错误thrift.ThriftCLIService:错误: org.apache.thrift.transport.TTransportException:无法在地址0.0.0.0/0.0.0.0:12000上创建ServerSocket。
环境:CDH5.3.3,SPark 1.2.0,Hive 0.13.1
谢谢,
ABHI
答案 0 :(得分:2)
试试这个:
./start-thriftserver.sh --hiveconf hive.server2.thrift.port=9999
如果你在Yarn上运行:
./start-thriftserver.sh --master yarn --conf spark.ui.port=4049 --executor-memory 500M --num-executors 5 --driver-memory 1024M --hiveconf hive.server2.thrift.port=9999
您可以使用--hiveconf
将hive conf作为属性键值提供