Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

impala-shell -b: no such option

avatar
Explorer

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?

 

 

1 ACCEPTED SOLUTION

avatar
Contributor

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.

View solution in original post

4 REPLIES 4

avatar
Explorer

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

 

 

 

 

 

 

 

avatar

@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.

avatar
Explorer
Hello @Tim,
 
So this feature will be included in the next Cloudera 5.15.x version? It's so interesting

avatar
Contributor

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.