在使用Spark on YARN的环境中,可以通过设置spark.driver.host或spark.executor.extraJavaOptions来绑定executor主机。
具体做法如下:
- 通过spark.driver.host来设置:
spark-submit--conf spark.driver.host=<executor-host-name> ...
在使用Spark on YARN的环境中,可以通过设置spark.driver.host或spark.executor.extraJavaOptions来绑定executor主机。
具体做法如下:
spark-submit--conf spark.driver.host=<executor-host-name> ...