I'm using following code to connect to Databricks clusters. But got thrift.transport.TTransport.TTransportException: TSocket read 0 bytes
. I think there is some error of the my_url in create_engine.
from sqlalchemy.engine import create_engine
engine = create_engine(my_url)
res = engine.execute('SELECT * FROM
alex_db.sams_us_clubs_sams_member_index LIMIT 5')
for row in res:
print(res)
Because this is company's cluster, I cannot show the details of my_url
. Does anyone have experience in using pyhive sqlalchemy to connect to databricks cluster?