我在Jupyter笔记本中运行以下Python命令块,将我的标签为df的数据帧上传到Impala:
import hdfs
from hdfs.ext.kerberos import KerberosClient
import pandas as pd
import ibis
hdfs = KerberosClient('< URL address >')
client = ibis.impala.connect(host="impala.sys.cigna.com", port=25003, timeout=3600, auth_mechanism="GSSAPI", hdfs_client=hdfs)
db=client.database("< database >")
db.create_table("pythonIBISTest", df)。。。但是我收到了错误消息AttributeError: module 'ibis' has no attribute 'impala'。
注意:我已经在Jupyter终端中安装了hdfs、ibis、ibis-frameworkKerberos和impyla模块。
我做错了什么?
发布于 2019-09-07 04:09:23
您可能需要使用pip install ibis-framework[impala]来获取ibis的impala部分
https://stackoverflow.com/questions/55155216
复制相似问题