HyukjinKwon commented on a change in pull request #31877:
URL: https://github.com/apache/spark/pull/31877#discussion_r597335360
##########
File path:
resource-managers/kubernetes/core/src/main/scala/org/apache/spark/deploy/k8s/KubernetesUtils.scala
##########
@@ -81,9 +82,13 @@ private[spark] object KubernetesUtils extends Logging {
def loadPodFromTemplate(
kubernetesClient: KubernetesClient,
- templateFile: File,
- containerName: Option[String]): SparkPod = {
+ templateFileName: String,
+ containerName: Option[String],
+ conf: SparkConf): SparkPod = {
try {
+ val hadoopConf = SparkHadoopUtil.get.newConfiguration(conf)
+ val localFile = downloadFile(templateFileName, Utils.createTempDir(),
conf, hadoopConf)
+ val templateFile = new
File(localFile.stripPrefix("file:").stripPrefix("local:"))
Review comment:
Oh
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]