You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Zikun (Jira)" <ji...@apache.org> on 2021/08/12 10:10:00 UTC
[jira] [Created] (SPARK-36493) SparkFiles.get is not needed for the
JDBC keytab provided by the "--files" option
Zikun created SPARK-36493:
-----------------------------
Summary: SparkFiles.get is not needed for the JDBC keytab provided by the "--files" option
Key: SPARK-36493
URL: https://issues.apache.org/jira/browse/SPARK-36493
Project: Spark
Issue Type: Bug
Components: Spark Core
Affects Versions: 3.1.2, 3.1.0
Reporter: Zikun
Fix For: 3.1.3
Currently we have the logic to deal with the JDBC keytab provided by the "--files" option
if (keytabParam != null && FilenameUtils.getPath(keytabParam).isEmpty) {
val result = SparkFiles.get(keytabParam)
logDebug(s"Keytab path not found, assuming --files, file name used on executor: $result")
result
} else {
Spark has already created the soft link for any file submitted by the "--files" option. So there is no need to call the SparkFiles.get to absolute path of the keytab file. We can directly use the variable `keytabParam` as the keytab file path.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org