spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <>
Subject [jira] [Commented] (SPARK-22319) SparkSubmit calls getFileStatus before calling loginUserFromKeytab
Date Fri, 20 Oct 2017 04:54:00 GMT


Apache Spark commented on SPARK-22319:

User 'sjrand' has created a pull request for this issue:

> SparkSubmit calls getFileStatus before calling loginUserFromKeytab
> ------------------------------------------------------------------
>                 Key: SPARK-22319
>                 URL:
>             Project: Spark
>          Issue Type: Bug
>          Components: Deploy, Spark Core
>    Affects Versions: 2.3.0
>            Reporter: Steven Rand
> In the SparkSubmit code, we call {{resolveGlobPaths}}, which eventually calls {{getFileStatus}},
which for HDFS is an RPC call to the NameNode:
> We do this before we call {{loginUserFromKeytab}}, which is further down in the same
> The result is that the call to {{resolveGlobPaths}} fails in secure clusters with:
> {code}
> GSS initiate failed [Caused by GSSException: No valid
credentials provided (Mechanism level: Failed to find any Kerberos tgt)]
> {code}
> A workaround is to {{kinit}} on the host before using spark-submit. However, it's better
if this workaround isn't necessary. A simple fix is to call loginUserFromKeytab before attempting
to interact with HDFS.
> At least for cluster mode, this would appear to be a regression caused by SPARK-21012.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message