Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-7110] [CORE] when use saveAsNewAPIHadoopFile, sometimes it throws "Delegation Token can be issued only with kerberos or web authentication" #6052

Closed
wants to merge 1 commit into from

Conversation

srowen
Copy link
Member

@srowen srowen commented May 11, 2015

Call addCredentials in saveAsNewAPIHadoopDataset too to propagate credential for new-API calls.

@tgravescs -- to your comment, new NewAPIHadoopJob(hadoopConf) does merge the credentials but I don't see they were set in hadoopConf before? or did I miss your point entirely?

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@SparkQA
Copy link

SparkQA commented May 11, 2015

Test build #32384 has started for PR 6052 at commit 0c6e680.

@SparkQA
Copy link

SparkQA commented May 11, 2015

Test build #32384 has finished for PR 6052 at commit 0c6e680.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@AmplabJenkins
Copy link

Merged build finished. Test PASSed.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/32384/
Test PASSed.

@tgravescs
Copy link
Contributor

See the constructors:

=> first calls this one:
public Job(Configuration conf) throws IOException {
this(new JobConf(conf));
} => calls below constructor

Job(JobConf conf) throws IOException {
super(conf, null);
// propagate existing user credentials to job
this.credentials.mergeAll(this.ugi.getCredentials());
this.cluster = null;
}

It merges what is in the current ugi credentials into the Job. The Job this.credentials is just pointing to the confs credentials ( this.credentials = this.conf.getCredentials();) so when we call the job.getConfiguration it should return the conf populated with the credentials.

This should be exactly the same as what you have coded up. Well except for its doing the merge twice now.

I would really like this person to respond with the exact conditions this happened and stack trace. Have you reproduced it?

@srowen
Copy link
Member Author

srowen commented May 11, 2015

Got it, I will probably close this shortly, but let's see if we can finish that conversation.

@srowen srowen closed this May 11, 2015
@srowen srowen deleted the SPARK-7110 branch May 12, 2015 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants