Github user Sherry302 commented on a diff in the pull request: https://github.com/apache/spark/pull/14312#discussion_r72536143 --- Diff: yarn/src/main/scala/org/apache/spark/deploy/yarn/Client.scala --- @@ -66,6 +66,9 @@ private[spark] class Client( import Client._ import YarnSparkHadoopUtil._ + val context: String = s"${sparkConf.get("spark.app.name")} running on Spark" + Utils.setCallerContext(context) --- End diff -- If spark applications are in Yarn cluster mode, the record with that caller context below will be in HDFS log: 2016-07-21 14:32:33,404 INFO FSNamesystem.audit: allowed=true ugi=wyang (auth:SIMPLE) ip=/127.0.0.1 cmd=getfileinfo src=/spark-history dst=null perm=null proto=rpc callerContext=org.apache.spark.examples.SparkKMeans running on Spark
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org