Connect to Impala using impyla client with Kerberos auth

后端 未结 7 1316
栀梦
栀梦 2021-01-01 03:23

I\'m on a W8 machine, where I use Python (Anaconda distribution) to connect to Impala in our Hadoop cluster using the

7条回答
  •  佛祖请我去吃肉
    2021-01-01 03:54

    To connection Impala using python you can follow below steps,

    1. Install Coludera ODBC Driver for Impala.
    2. Create DSN using 64-bit ODBC driver, put your server details, below is sample screen shot for same

      1. Use below code snippet for connectivity

        import pyodbc

        with pyodbc.connect("DSN=impala_con", autocommit=True) as conn: ... df = pd.read_sql("", conn)

提交回复
热议问题