dcos集群上的spark提交失败,原因是“只有通过rest提交api才支持mesos集群模式”

ogq8wdun  于 2021-06-26  发布在  Mesos
关注(0)|答案(1)|浏览(415)

我在试着运行一个 spark-submit 在本地,让ssh隧道到我的mesos主机:

ssh -L 7077:spark-dispatcher.marathon.l4lb.thisdcos.directory:7077 pkara@dcos-master01.mydomain.com

然而,我得到以下错误

./spark-submit --deploy-mode cluster --master mesos://localhost:7077 --conf spark.mesos.driverEnv.MYSQL_HOSTNAME= ...

2018-11-14 11:14:18 WARN  NativeCodeLoader:62 - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Exception in thread "main" java.lang.AssertionError: assertion failed: Mesos cluster mode is only supported through the REST submission API
    at scala.Predef$.assert(Predef.scala:170)
    at org.apache.spark.deploy.SparkSubmit.prepareSubmitEnvironment(SparkSubmit.scala:673)
    at org.apache.spark.deploy.SparkSubmit.submit(SparkSubmit.scala:143)
    at org.apache.spark.deploy.SparkSubmit.doSubmit(SparkSubmit.scala:86)
    at org.apache.spark.deploy.SparkSubmit$$anon$2.doSubmit(SparkSubmit.scala:924)
    at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:933)
    at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
7dl7o3gd

7dl7o3gd1#

由于某种原因,当我加上

--conf spark.master.rest.enabled=true

相关问题