在利用spark以cluster方式提交application时会发现这个警告:Warning: Master endpoint spark://ip:7077 was not a REST server. Falling back to legacy submission gateway instead.
提交方式:spark-submit --master spark://ip:port --deploy-mode client(cluster)
原因:端口问题,
解决方式:spark以client方式提交时,port应该设置为7077;以cluster方式提交时,port设置为6066,因为这种方式提交时,是以rest api方式提交application。
参考:
https://mail-archives.apache.org/mod_mbox/spark-user/201512.mbox/%3CD2905870.2629A%25Andy@SantaCruzIntegration.com%3E
当使用 `spark-submit` 以 cluster 模式提交 application 到 Spark 集群时,可能会遇到警告:`Master endpoint spark://ip:7077 was not a REST server. Falling back to legacy submission gateway instead.` 这是因为端口配置不正确。解决这个问题的关键在于理解不同提交模式下应该使用的端口:client 模式使用 7077,而 cluster 模式则需要设置为 6066,因为 cluster 模式下是通过 REST API 进行提交。调整端口设置即可消除警告。
3092

被折叠的 条评论
为什么被折叠?



