Skip to content

Conversation

@yaooqinn
Copy link
Member

@yaooqinn yaooqinn commented Feb 16, 2017

What changes were proposed in this pull request?

In #14065, we introduced a configurable credential manager for Spark running on YARN. Also two configs spark.yarn.credentials.renewalTime and spark.yarn.credentials.updateTime were added, one is for the credential renewer and the other updater. But now we just query spark.yarn.credentials.renewalTime by mistake during CREDENTIALS UPDATING, where should be actually spark.yarn.credentials.updateTime .

This PR fixes this mistake.

How was this patch tested?

existing test

cc @jerryshao @vanzin

Copy link
Contributor

@jerryshao jerryshao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix, only one comment about the changes.

credentialUpdater.schedule(credentialUpdaterRunnable, remainingTime, TimeUnit.MILLISECONDS)
}
val startTime = sparkConf.get(CREDENTIALS_UPDATE_TIME)
val remainingTime = Math.max(1, startTime - System.currentTimeMillis())
Copy link
Contributor

@jerryshao jerryshao Feb 16, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logic looks different compared to the original code, also 1 is minute not millisecond.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, let me change it back

@yaooqinn
Copy link
Member Author

cc again @jerryshao

@srowen
Copy link
Member

srowen commented Feb 16, 2017

There's no detail in the JIRA or PR. I can't tell whether you are solving the problem you set out to solve. Are you saying this is the entire problem, that the wrong config is being queried?

@jerryshao
Copy link
Contributor

Agreed with @srowen , please describe the problem and fix both here in PR and in JIRA, also changing the title to be more meaningful. It would be better for others without the context to understand the issue fast.

@yaooqinn yaooqinn changed the title [SPARK-19626]update cred using spark.yarn.credentials.updateTime [SPARK-19626][YARN]Using the correct config to set credentials update time Feb 16, 2017
@yaooqinn
Copy link
Member Author

@srowen @jerryshao Thanks for your comments. I have added some descriptions both in the JIRA and here, please check whether OK or not.

@yaooqinn
Copy link
Member Author

ping @srowen, would you plz verify this patch again? thanks.

@srowen
Copy link
Member

srowen commented Feb 17, 2017

(I don't know enough about this to review)

@vanzin
Copy link
Contributor

vanzin commented Feb 17, 2017

ok to test

@SparkQA
Copy link

SparkQA commented Feb 17, 2017

Test build #73068 has finished for PR 16955 at commit 211bbd3.

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

@yaooqinn
Copy link
Member Author

@vanzin Thanks, all tests passed

@vanzin
Copy link
Contributor

vanzin commented Feb 21, 2017

Merging to master / 2.1.

asfgit pushed a commit that referenced this pull request Feb 21, 2017
…e time

## What changes were proposed in this pull request?

In #14065, we introduced a configurable credential manager for Spark running on YARN. Also two configs `spark.yarn.credentials.renewalTime` and `spark.yarn.credentials.updateTime` were added, one is for the credential renewer and the other updater. But now we just query `spark.yarn.credentials.renewalTime` by mistake during CREDENTIALS UPDATING, where should be actually `spark.yarn.credentials.updateTime` .

This PR fixes this mistake.

## How was this patch tested?

existing test

cc jerryshao vanzin

Author: Kent Yao <[email protected]>

Closes #16955 from yaooqinn/cred_update.

(cherry picked from commit 7363dde)
Signed-off-by: Marcelo Vanzin <[email protected]>
@asfgit asfgit closed this in 7363dde Feb 21, 2017
Yunni pushed a commit to Yunni/spark that referenced this pull request Feb 27, 2017
…e time

## What changes were proposed in this pull request?

In apache#14065, we introduced a configurable credential manager for Spark running on YARN. Also two configs `spark.yarn.credentials.renewalTime` and `spark.yarn.credentials.updateTime` were added, one is for the credential renewer and the other updater. But now we just query `spark.yarn.credentials.renewalTime` by mistake during CREDENTIALS UPDATING, where should be actually `spark.yarn.credentials.updateTime` .

This PR fixes this mistake.

## How was this patch tested?

existing test

cc jerryshao vanzin

Author: Kent Yao <[email protected]>

Closes apache#16955 from yaooqinn/cred_update.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants