Created on 03-02-2020 08:25 AM - last edited on 03-02-2020 08:33 AM by VidyaSargur
Hello community,
I'm writing a Python script, and connect through the 64-bit odbc driver to Hive and Impala. I'm interested in creating an external table using the Hive connection, and then run some faster-than-hive queries using an Impala connection. After table creation, I am able to see and query the external tables in both hive and impala editors in HUE. However, these newly created tables are not visible nor available through the Impala connection.
Tried the
invalidate metadata <table_name>
but it's not working either.
Any pointers would be greatly appreciated.
Luis
Created 03-02-2020 08:35 AM
Hi Luis,
There are a couple of suggestions I can make to help narrow down what the cause may be.
As always you should also check the logs to see if there are any clues as to why it is not working. Check to ensure that the version of the ODBC driver is compatible with the version of Impala you are using.
Kind regards,
Jim
Created 03-02-2020 08:35 AM
Hi Luis,
There are a couple of suggestions I can make to help narrow down what the cause may be.
As always you should also check the logs to see if there are any clues as to why it is not working. Check to ensure that the version of the ODBC driver is compatible with the version of Impala you are using.
Kind regards,
Jim
Created 03-02-2020 08:44 AM
Hi Jim,
Thank you for the quick response.
Created 03-02-2020 08:53 AM
This is the message that I get:
ProgrammingError: ('42000', "[42000] [Cloudera][ImpalaODBC] (360) Syntax error occurred during query execution: [HY000] : AnalysisException: Could not resolve table reference: 'rpm_usawt.repl_ionprogress_patient_assignment'\n (360) (SQLExecDirectW)")
Created 03-02-2020 02:25 PM
Hi Luis,
If you run SHOW TABLES in the Impala ODBC session do you see the list of tables? Are only the external tables missing? Can you try running SHOW CURRENT ROLES to see if the lost of Sentry roles matches what you expect. I would also recommend checking the Impala logs, these will shed some more light on whether the table is not visible or if you are being denied access.
Kind regards,
Jim
Created on 03-02-2020 03:14 PM - edited 03-02-2020 03:15 PM
Yes, only the recently created tables are missing. When I run SHOW CURRENT ROLES I get:
s_cfyu_aim_admin
Which should have all credentials in place.
This is what I get in the Logs:
I0302 17:10:54.746717 45191 webserver.cc:361] Webserver: error reading: Resource temporarily unavailable
I0302 17:10:54.994223 9563 thrift-util.cc:123] TAcceptQueueServer: Caught TException: No more data to read.
They are not very telling to me...
Thank you.
Created 03-19-2020 01:28 PM
Sorry for the late response. After giving up for a few days, I realized my mistake was that in the .odbc.ini file where I have my Hive and Impala DSNs, Hive host was pointing to dev and Impala host to prod.
Silly me.
Thank you for the quick response community.