Hive does not support password auth
See original GitHub issueIssue 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
- add hive connector that requires password, observe password field is unavailable
- 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:
- Created 6 years ago
- Comments:5
Top GitHub Comments
done
Actually it is my fault. I forgot to restart celery workers. All is good now.