Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
Impala 2.12.0, Impala 3.1.0
-
None
-
ghx-label-6
Description
[root@kiwi-2 ~]# cat ~/.impalarc
[impala]
keyval=foo=customers
[root@kiwi-2 ~]# impala-shell --ssl -q 'set'
Starting Impala Shell without Kerberos authentication
SSL is enabled. Impala server certificates will NOT be verified (set --ca_cert to change)
for keyval in keyvals:
Tokenized keyval: "f"
keyvals: "foo=customers"
Error: Could not parse key-value "f". It must follow the pattern "KEY=VALUE".
Usage: impala_shell.py [options]
It's apparent that the "KEY=VAL" string passed in is tokenized by characters here:
https://github.com/apache/impala/blob/969dea84f41cfccf863b14904958a5d2be91983f/shell/impala_shell.py#L1512
An immediate fix might be to cast options.keyval to an array ([options.keyval]):
https://github.com/apache/impala/blob/969dea84f41cfccf863b14904958a5d2be91983f/shell/impala_shell.py#L1719
Attachments
Issue Links
- breaks
-
IMPALA-8337 Dataload fails due to ImportError: cannot import name OrderedDict from impala-shell
- Resolved
- causes
-
IMPALA-8330 Impala shell --config_file should use flag names and not dest variable names
- Resolved