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

when set hive.server2.authentication=CUSTOM,Hue can't connect the Hiveserver2 #480

Closed
JasonBian opened this issue Feb 22, 2017 · 7 comments

Comments

@JasonBian
Copy link

JasonBian commented Feb 22, 2017

<property>
  <name>hive.server2.authentication</name>
  <value>CUSTOM</value>
</property>
<property>
  <name>hive.server2.custom.authentication.class</name>
  <value>com.mycompany.hive_app.CustomHiveServer2Auth</value>
</property>

As I set the hive.server2.authentication=CUSTOM, I just want who use jdbc method to connect the HiveServer2,it must need valid username and password.But when I set up the custom hive server2 authentication, the hue can't connect the hive server2

@JasonBian
Copy link
Author

my Hue version is 3.7.0,and I found that
HS2_MECHANISMS = {'KERBEROS': 'GSSAPI', 'NONE': 'PLAIN', 'NOSASL': 'NOSASL'}
there was no CUSTOME selection

@romainr
Copy link
Contributor

romainr commented Feb 27, 2017

If you add a 'CUSTOM': 'PLAIN' or 'CUSTOM': 'NOSASL' does it work?

@JasonBian
Copy link
Author

@romainr it works ok

@romainr
Copy link
Contributor

romainr commented Mar 3, 2017

Good!

and I suppose you added ''CUSTOM': 'PLAIN''?

@romainr
Copy link
Contributor

romainr commented Mar 24, 2017

@JasonBian, which one did you use?

@JasonBian
Copy link
Author

JasonBian commented Mar 26, 2017 via email

@romainr
Copy link
Contributor

romainr commented Mar 27, 2017

Thanks, will add to the project: https://issues.cloudera.org/browse/HUE-6128

romainr added a commit that referenced this issue Mar 27, 2017
…iling

Would not 500 and work in most the cases.
#480
cloudera-hudson pushed a commit that referenced this issue Jul 12, 2017
…iling

Would not 500 and work in most the cases.
#480

(cherry picked from commit ff7c2f9)
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

No branches or pull requests

2 participants