Spark 1.5.0 spark.app.id warning

谁说我不能喝 提交于 2020-01-16 01:52:07

问题


I had updated my CDH cluster to use spark 1.5.0. When I submit spark application, the system show warning about spark.app.id

Using default name DAGScheduler for source because spark.app.id is not set.

I have searched about spark.app.id but not document about it. I read this link and I think It is used for RestAPI call.

I don't see this warning in spark 1.4. Could someone explain it to me and show how to set it?


回答1:


It's not necessarily used for the REST API, but rather for monitoring purpose e. g when you want to check yarn logs per example:

yarn logs <spark.app.id>

It's true that this specific issue is still not documented yet. I think it's been added to standardize the application deployment within the Hadoop ecosystem.

I suggest that you set the 'spark.app.id' in your app.

conf.set("spark.app.id", <app-id>) // considering that you already have a SparkConf defined of course

Nevertheless, this remains a warning which won't effect the application itself.



来源:https://stackoverflow.com/questions/32793276/spark-1-5-0-spark-app-id-warning

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!