Looking at the post date I can only assume you've got your answer.
since I just encountered your post while trying to do the same thing I
decided it's worth answering for other people. In order to get the executor
ID you can use: SparkEnv.get().executorId()
I hope this helps anyone
--
View this message in context:
http://apache-spark-user-list.1001560.n3.nabble.com/How-do-I-get-the-executor-ID-from-running-Java-code-tp19092p25258.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: user-unsubscr...@spark.apache.org
For additional commands, e-mail: user-h...@spark.apache.org