python读取 hive数据

import pandas as pd
import re
from impala.dbapi import connect
from impala.util import as_pandas
from impala.dbapi import connect
import json,sys
from datetime import datetime

conn=connect(host='127.0.0.1', port=21050, database='ods',timeout = 30)
cursor=conn.cursor()
cursor.execute("show tables")
data=as_pandas(cursor)
print(data)
上一篇:Python将mysql数据库相关内容进行封装


下一篇:WPF 精修篇 路径动画