zhugw opened a new issue #18698:
URL: https://github.com/apache/superset/issues/18698
Version: 1.4.1
Want to connect to hive, python connect hive code as below
```
from pyhive import hive
host_name = "192.168.0.38"
port = 10000
user = "admin"
password = "password"
database="test_db"
def hiveconnection(host_name, port, user,password, database):
conn = hive.Connection(host=host_name, port=port, username=user,
password=password,
database=database, auth='CUSTOM')
cur = conn.cursor()
cur.execute('select item_sk,reason_sk, account_credit from returns limit
5')
result = cur.fetchall()
return result
```
but how to set hive `SQLALCHEMY URI` with username and password?
```
hive://hive@{hostname}:{port}/{database}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]