I'm running the following block of Python commands in a Jupyter notebook to upload my dataframe, labeled df
, to 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)
. . . but am getting the error message AttributeError: module 'ibis' has no attribute 'impala'
.
Note: I've already installed the hdfs, ibis, ibis-framework[Kerberos], and impyla modules in the Jupyter terminal.
What am I doing wrong?