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

Unable to connect to Azure HDinsight Hive DB using PyHive python #446

Open
Vikrant1020 opened this issue Mar 6, 2023 · 0 comments
Open

Comments

@Vikrant1020
Copy link

Hello

I am new to Hive and bigdata.
I am trying to connect to Azure Hdinsight Hive DB using PyHive from last 2 days but unable to connect.
Code :-

from pyhive import hive
import pyodbc

host = 'XXXXXXX.azurehdinsight.net'
port = 10000
database = 'testing'
username = 'XXXX'
password = 'XXXXXXX'
driver = '{ODBC Driver 17 for SQL Server}'
conn = hive.connect(host=host, port=443, username=username, password=password, database=database, auth='CUSTOM', configuration={'ssl': 'true', 'transportMode': 'http'})
print("connected")

response:-
image

if any one have any idea how to connect to it please share. ASAP.

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

1 participant