CData Python Connector for Apache Hive

Build 22.0.8479

接続

Dialect URL での接続

SQLAlchemy を使用して接続を確立するには、特定のURL 形式が使用されます。このコネクタでは、エンジンの作成時に次のURL 形式のいずれかを使用できます。

形式1


from sqlalchemy import create_engine
engine = create_engine("apachehive:///?Server=127.0.0.1;Port=10000;TransportMode=BINARY")

Format 2


from sqlalchemy import create_engine
engine = create_engine("apachehive://MyUser:MyPassword@MyServer:MyPort/MyDatabase")

Copyright (c) 2023 CData Software, Inc. - All rights reserved.
Build 22.0.8479