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

LIVY-273. Add Spnego support for Java/scala and Python Job API client #265

Merged
merged 4 commits into from Jan 11, 2017

Conversation

jerryshao
Copy link
Contributor

No description provided.

Change-Id: I8cce80d75a549e573da70be9ef1aeb94457829a4
@codecov-io
Copy link

codecov-io commented Dec 27, 2016

Current coverage is 70.61% (diff: 33.33%)

Merging #265 into master will decrease coverage by 0.47%

@@             master       #265   diff @@
==========================================
  Files            92         92          
  Lines          4749       4768    +19   
  Methods           0          0          
  Messages          0          0          
  Branches        822        828     +6   
==========================================
- Hits           3376       3367     -9   
- Misses          899        907     +8   
- Partials        474        494    +20   

Powered by Codecov. Last update 6077628...d3b4291

Change-Id: I022b3c14a439321deda3ae5e0cacbc2b18ef9830
@jerryshao jerryshao changed the title LIVY-273. Add Spnego support for Java/scala Job API client LIVY-273. Add Spnego support for Java/scala and Python Job API client Dec 28, 2016
Change-Id: I9e9f00dde93c471c6fa1fd5f71842945f527c73b
@jerryshao jerryshao closed this Dec 28, 2016
@jerryshao jerryshao reopened this Dec 28, 2016
@alex-the-man alex-the-man added this to the 0.3 milestone Jan 3, 2017
@alex-the-man
Copy link
Contributor

I don't know much about Spnego. @zjffdu Mind if you take a look?

@jerryshao jerryshao closed this Jan 6, 2017
@jerryshao jerryshao reopened this Jan 6, 2017
@jerryshao
Copy link
Contributor Author

@zjffdu , would you please help to review this PR?

}

boolean shouldEnableSpnego() {
Copy link
Contributor

Choose a reason for hiding this comment

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

rename it to isSpnegoEnabled ?

Copy link
Contributor

Choose a reason for hiding this comment

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

any update ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will update soon.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@@ -24,6 +24,7 @@ cache:

before_install:
- sudo apt-get -y install python3-pip python-dev
- sudo apt-get -y install libkrb5-dev
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this needed for compilation ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is required for installing requests-kerberos package.

// This is needed to get Kerberos credentials from the environment, instead of
// requiring the application to manually obtain the credentials.
System.setProperty("javax.security.auth.useSubjectCredsOnly", "false");

Copy link
Contributor

Choose a reason for hiding this comment

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

Now javax.security.auth.useSubjectCredsOnly is only set when spnego is enabled. While previously we set it in any case. Would this affect the non-secure mode ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think so, this will only be honored in kerberos environment.

Change-Id: I4994122e8e28276efe4f00fc7ff8e02e0a7a6c60
@zjffdu
Copy link
Contributor

zjffdu commented Jan 10, 2017

LGTM

@zjffdu zjffdu merged commit b75bc11 into cloudera:master Jan 11, 2017
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