pyspark.SparkContext.applicationId¶
-
property
SparkContext.
applicationId
¶ A unique identifier for the Spark application. Its format depends on the scheduler implementation.
in case of local spark app something like ‘local-1433865536131’
in case of YARN something like ‘application_1433865536131_34483’
New in version 1.5.0.
Examples
>>> sc.applicationId 'local-...'