question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hive does not support password auth

See original GitHub issue

Issue Summary

Password field is not available for Hive connector.

Adding the field ‘password’ to ./query_runner/hive_ds.py directly adds it to the form appropriately, but pyHive library does not support password auth except via LDAP.

Hive actually has V1 and V2 setups. V2 allows plain password auth. The library pyhs2 does support other auth mechanisms. Usage is similar:

connection = pyhs2.connect(**config)

Note that pyhs2 uses ‘user’ as a config key, not ‘username’ which is the convention for other data sources. Also note that the key ‘authMechanism’ must be supplied to the config. Valid options are: ['NOSASL', 'PLAIN', 'KERBEROS', 'LDAP']

In this case, ‘PLAIN’ works w/ username, password. But these should probably be exposed to front end config.

Steps to Reproduce

  1. add hive connector that requires password, observe password field is unavailable
  2. add password field, test connection - observe error requiring LDAP auth mechanism

Any other info e.g. Why do you consider this to be a bug? What did you expect to happen instead?

Technical details:

  • Redash Version: redash.3.0.0.b3134
  • Browser/OS: Chrome, Ubuntu
  • How did you install Redash: ami

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

3reactions
noahrowlandcommented, Jan 18, 2018

done

0reactions
vnnwcommented, May 9, 2019

Actually it is my fault. I forgot to restart celery workers. All is good now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: HIVE metastore failed to start (password authentic...
I've installed cloudera manager with Hive but when I'm trying to start the role, it gives me: PSQLException: FATAL: password authentication failed for...
Read more >
Hive password authorization - hadoop - Stack Overflow
I need to use password base authorization in hive. Now i need to create user with RO access to databases. The <description> field...
Read more >
Hive metastore fails to start due to authentication issue.
Hive metastore fails to start from cloudera manager due to authentication issue. The error below is seen in Hive metastore log file. org.postgresql.util....
Read more >
Hive connector security configuration - Trino
See SQL standard based authorization for details. allow-all. No authorization checks are enforced. SQL standard ...
Read more >
Hive Authentication - HPE Ezmeral Data Fabric Documentation
NOTE: Connections to HiveServer2 using ODBC do not support MapR-SASL. WebHCat Authentication Support. The following table describes the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found