EnricoMi commented on code in PR #45464: URL: https://github.com/apache/spark/pull/45464#discussion_r1520050341
########## resource-managers/kubernetes/core/src/main/scala/org/apache/spark/scheduler/cluster/k8s/KubernetesExecutorBackend.scala: ########## @@ -28,6 +28,46 @@ import org.apache.spark.rpc._ import org.apache.spark.scheduler.cluster.CoarseGrainedClusterMessages._ import org.apache.spark.util.Utils +/** + * Custom implementation of CoarseGrainedExecutorBackend for Kubernetes resource manager. + * This class provides kubernetes executor attributes. + */ +private[spark] class KubernetesExecutorBackend( + rpcEnv: RpcEnv, + appId: String, + driverUrl: String, + executorId: String, + bindAddress: String, + hostname: String, + podName: String, + cores: Int, + env: SparkEnv, + resourcesFile: Option[String], + resourceProfile: ResourceProfile) + extends CoarseGrainedExecutorBackend( + rpcEnv, + driverUrl, + executorId, + bindAddress, + hostname, + cores, + env, + resourcesFile, + resourceProfile) with Logging { + + override def extractAttributes: Map[String, String] = { + super.extractAttributes ++ + Map( + "LOG_FILES" -> "log", + "APP_ID" -> appId, + "EXECUTOR_ID" -> executorId, + "HOSTNAME" -> hostname, + "POD_NAME" -> podName Review Comment: I have added the namespace. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org