发布时间:2019-07-29 10:28:41编辑:auto阅读(2062)
在python3.6上访问impala数据库
from impala.dbapi import connect
from impala.util import as_pandas
conn = connect(host='10.161.20.11', port=21050)
cur = conn.cursor()
cur.execute('SHOW TABLES')
cur.execute('SELECT * FROM businfo')
data = as_pandas(cur)
print (data)
print (type(data))
http://blog.csdn.net/faith_mo_blog/article/details/46985287
https://stackoverflow.com/questions/32338006/write-pandas-table-to-impala
上一篇: Python实现"加一"的两种方法
下一篇: android 调用 python
47490
45792
36789
34321
28958
25594
24441
19608
19109
17630
5463°
6046°
5568°
5636°
6571°
5374°
5375°
5882°
5853°
7167°