Authentication methods
- Dominant language
- Python
- Stars
- 1.7k
- Forks
- 545
- PR merge metrics
- No merged PRs in 30d
Description
I am trying to use PyHive on a cluster I have.
I have `ip1` as the machine I am logged into. I have hiveserver2 service running in a machine with `ip2`
If I open 'hive' on ip1 it works perfectly fine and I can use it.
If I open a python session and run:
```python
from pyhive import hive
cursor = hive.connect('localhost').cursor()
cursor.execute('SELECT * FROM my_awesome_data LIMIT 10', async=True)
```
it gives me the error:
`Could not connect to any of [('127.0.0.1', 10000)]`
If I run:
```python
from pyhive import hive
cursor = hive.connect('').cursor()
cursor.execute('SELECT * FROM my_awesome_data LIMIT 10', async=True)
```
it gives me the error:
`TTransportException: Bad status: 3 (b'Error validating the login')`
My hiveserver2 has been setup with:
```xml
hive.server2.authentication
PAM
```
What are my options to connect to hive using pyhive ?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.