- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Impala-shell: Not connected to Impala, could not execute queries.
- Labels:
-
Apache Impala
-
Cloudera Hue
-
Kerberos
Created on ‎12-10-2018 05:59 AM - edited ‎09-16-2022 06:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi.
I run Impala-shell command
impala-shell -i hdp01.***.***.ru:21051 -k -f /tmp/qql.sql
and catch such error:
Starting Impala Shell using Kerberos authentication Using service name 'impala' Error connecting: TTransportException, TSocket read 0 bytes Not connected to Impala, could not execute queries.
That's all.
No logs. No special error description. Noghing. Just "not connected to Impala".
However, Impala works fine. In Hue i can exec queries.
And "host:port" is fine. If i set other combination of it, i get:
Starting Impala Shell using Kerberos authentication
Using service name 'impala'
Error connecting: TTransportException, Could not connect to any.other.port.ru:21050
So, we can see, that server available. But Impala is not.
Why? And how to fix it?
I even can't google any solution by my error: "Error connecting: TTransportException, TSocket read 0 bytes" or "Not connected to Impala, could not execute queries."
Please, help me.
Created ‎12-10-2018 09:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Impala uses 21000 port to transmit commands and receive results by impala-shell and some ODBC drivers. And 21050 to transmit commands and receive results by applications, such as Business Intelligence tools, using JDBC
Could you try as below
impala-shell -i hdp01.***.***.ru:21000 -k -f /tmp/qql.sql
Thanks
Jerry
Created ‎12-10-2018 10:18 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
But it's not 21000, it works on 23005 port. I don't know how and why - but it is.
Created ‎12-11-2018 01:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created ‎12-11-2018 01:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If i configed impala - i'd know correct port.
