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-26592][SS] Throw exception when kafka delegation token tried to obtain with proxy user #23511

Closed
wants to merge 4 commits into from

Conversation

gaborgsomogyi
Copy link
Contributor

What changes were proposed in this pull request?

Kafka is not yet support to obtain delegation token with proxy user. It has to be turned off until https://issues.apache.org/jira/browse/KAFKA-6945 implemented.

In this PR an exception will be thrown when this situation happens.

How was this patch tested?

Additional unit test.

@gaborgsomogyi
Copy link
Contributor Author

cc @HeartSaVioR @vanzin

@SparkQA
Copy link

SparkQA commented Jan 10, 2019

Test build #101033 has finished for PR 23511 at commit 33f7829.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@gaborgsomogyi
Copy link
Contributor Author

retest this please

@SparkQA
Copy link

SparkQA commented Jan 11, 2019

Test build #101042 has finished for PR 23511 at commit 33f7829.

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

@dongjoon-hyun
Copy link
Member

Hi, @gaborgsomogyi . Mostly, looks correct. Only one minor comment.

@gaborgsomogyi
Copy link
Contributor Author

@dongjoon-hyun thanks for the review, addressed.

@SparkQA
Copy link

SparkQA commented Jan 11, 2019

Test build #101078 has finished for PR 23511 at commit 0ef689c.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@gaborgsomogyi
Copy link
Contributor Author

retest this please

@SparkQA
Copy link

SparkQA commented Jan 11, 2019

Test build #101088 has finished for PR 23511 at commit 0ef689c.

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

Copy link
Contributor

@HeartSaVioR HeartSaVioR left a comment

Choose a reason for hiding this comment

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

LGTM except @vanzin commented.

@SparkQA
Copy link

SparkQA commented Jan 13, 2019

Test build #101141 has finished for PR 23511 at commit 9fffe64.

  • This patch fails Scala style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Jan 13, 2019

Test build #101143 has finished for PR 23511 at commit 3613499.

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

@@ -78,6 +80,21 @@ class KafkaTokenUtilSuite extends SparkFunSuite with BeforeAndAfterEach {
Configuration.setConfiguration(null)
}

test("checkProxyUser with proxy current user should throw exception") {
val realUser = UserGroupInformation.createUserForTesting("realUser", Array())
Copy link
Member

Choose a reason for hiding this comment

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

not a big deal but Array() -> Array.empty[String]. Ignore this if everything in this PR is ready

Copy link
Contributor

@HeartSaVioR HeartSaVioR left a comment

Choose a reason for hiding this comment

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

LGTM

@vanzin
Copy link
Contributor

vanzin commented Jan 15, 2019

Merging to master.

@asfgit asfgit closed this in 5ca45e8 Jan 15, 2019
jackylee-ch pushed a commit to jackylee-ch/spark that referenced this pull request Feb 18, 2019
…o obtain with proxy user

## What changes were proposed in this pull request?

Kafka is not yet support to obtain delegation token with proxy user. It has to be turned off until https://issues.apache.org/jira/browse/KAFKA-6945 implemented.

In this PR an exception will be thrown when this situation happens.

## How was this patch tested?

Additional unit test.

Closes apache#23511 from gaborgsomogyi/SPARK-26592.

Authored-by: Gabor Somogyi <gabor.g.somogyi@gmail.com>
Signed-off-by: Marcelo Vanzin <vanzin@cloudera.com>
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.

6 participants