Reply
Highlighted
New Contributor
Posts: 5
Registered: ‎06-19-2018
Accepted Solution

impala-shell -b: no such option

Hello,

 

I've just upgraded our environment to CDH and Cloudera Manager 5.15.0.

 

Reviewing the changelog of the version, I saw that this feature is implemented in Impala v2.12:

 

impala -b option.png

 

When I tried this command, Impala-shell gives this output:


[root@clouderapre-mgr lib]# impala-shell -i clouderapre-node1 -k -b clouderapre-mgr
Usage: impala_shell.py [options]

impala_shell.py: error: no such option: -b

 

The version is the correct one:

 

[root@clouderapre-mgr lib]# impala-shell --version
Impala Shell v2.12.0-cdh5.15.0 (23f5745) built on Thu May 24 04:07:31 PDT 2018

 

Any ideas of this problem?

 

 

New Contributor
Posts: 5
Registered: ‎06-19-2018

Re: impala-shell -b: no such option

[ Edited ]

Reviewing the Github repo of Apache Impala, I noticed that the code to the Impala Shell differs of the code in /opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/lib/impala-shell/impala-_shell.py.

 

In Github (https://github.com/apache/impala/blob/master/shell/impala_shell.py) the parameter kerberos_host_fqdn is defined as follows:

 

self.impalad = None
self.kerberos_host_fqdn = options.kerberos_host_fqdn
self.use_kerberos = options.use_kerberos
self.kerberos_service_name = options.kerberos_service_name
self.use_ssl = options.ssl
self.ca_cert = options.ca_cert
self.user = options.user
self.ldap_password = options.ldap_password
self.ldap_password_cmd = options.ldap_password_cmd
self.use_ldap = options.use_ldap

 

def _new_impala_client(self):
return ImpalaClient(self.impalad, self.kerberos_host_fqdn, self.use_kerberos,
self.kerberos_service_name, self.use_ssl,
self.ca_cert, self.user, self.ldap_password,self.use_ldap)

 

 

But in /opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/lib/impala-shell/impala-_shell.py only appears this parameters:

 

def __init__(self, options, query_options):
cmd.Cmd.__init__(self)
self.is_alive = True

self.impalad = None
self.use_kerberos = options.use_kerberos
self.kerberos_service_name = options.kerberos_service_name
self.use_ssl = options.ssl
self.ca_cert = options.ca_cert
self.user = options.user
self.ldap_password = options.ldap_password
self.use_ldap = options.use_ldap

 

self.verbose = options.verbose
self.prompt = ImpalaShell.DISCONNECTED_PROMPT
self.server_version = ImpalaShell.UNKNOWN_SERVER_VERSION
self.webserver_address = ImpalaShell.UNKNOWN_WEBSERVER

 

 

 

This is a bug

 

 

 

 

 

 

 

Cloudera Employee
Posts: 353
Registered: ‎07-29-2015

Re: impala-shell -b: no such option

@rlopezwe sometimes decide to include features in the CDH release that aren't in the base Apache Impala release or vice-versa. In this case the feature wasn't quite ready so we didn't include it.

 

It looks like we need to fix the docs.

New Contributor
Posts: 5
Registered: ‎06-19-2018

Re: impala-shell -b: no such option

Hello @Tim,
 
So this feature will be included in the next Cloudera 5.15.x version? It's so interesting
Cloudera Employee
Posts: 1
Registered: ‎02-28-2017

Re: impala-shell -b: no such option

Hi @rlopez,

 

Thank you for reporting this. The 5.15.x documentations have been corrected:

https://www.cloudera.com/documentation/enterprise/5-15-x/topics/impala_shell_options.html#shell_opti...

 

Please continue checking back on the release notes below for when this will drop:

https://www.cloudera.com/documentation/enterprise/release-notes/topics/cdh_rn_new_features.html

 

 

Cheers,

Vincent.

Announcements