摘要:
from impala.dbapi import connectfrom impala.util import as_pandas连接方式 conn1= connect(host='xxx.xxx.xxx.xxx',port=xxxx )cur = conn1.cursor()SQL写入 cur.e 阅读全文
摘要:
import impala.dbapi as ipdbconn = ipdb.connect(host='IP', port= 端口, database='数据库名', auth_mechanism='PLAIN', user='用户名')cur = conn.cursor()#关闭连接conn.c 阅读全文