spark thriftserver in cluster mo

2020-04-02  本文已影响0人  frank3

使用过spark的盆友都知道spark官方的thriftserver不知道cluster模式,鉴于工作需要,对STS使用cluster模式进行调研测试,测试结果如下:

  1. 修改源码支持cluster提交

    core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala 1

sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/HiveThriftServer2.scala

1
2
  1. 替换对应jar文件
    spark-hive-thriftserver_2.11-2.4.5.jar
    spark-core_2.11-2.4.5.jar

  2. 启动thriftserver

bin/spark-submit --master yarn --deploy-mode cluster --driver-memory 3g --executor-memory 2g --class org.apache.spark.sql.hive.thriftserver.HiveThriftServer2 jars/spark-hive-thriftserver_2.11-2.4.5.jar --hiveconf --hiveconf hive.server2.thrift.port=10000
  1. 找到dirver对应到地址,使用beeline进行测试
上一篇 下一篇

猜你喜欢

热点阅读