经验证,下面这种yarn-cluster提交方式是正确的,可以正常运行:
spark-submit --master yarn \
--deploy-mode cluster \
--files app_sf30.conf \
--conf spark.driver.extraClassPath=./ \
--conf spark.executor.extraClassPath=./ \
--class com.vesoft.nebula.exchange.Exchange \
nebula-exchange-2.6.3.jar \
-c app_sf30.conf