Reply
Contributor
Posts: 32
Registered: ‎09-25-2016
Accepted Solution

impala-shell on mac

Has anyone successfully run/installed impala-shell on mac ?

I've copied impala-shell from /usr/bin and impala-shell directory from /usr/lib to my home directory. When I'm trying to launch impala-shell I get this error. I tried pip install sasl but it didn't solve the problem. I'm running python 2.7.11 in my machine.

 

macofsunil:bin sparmar$ ./impala-shell
Traceback (most recent call last):
  File "/Users/sparmar/bin/../lib/impala-shell/impala_shell.py", line 34, in <module>
    from impala_client import (ImpalaClient, DisconnectedException, QueryStateException,
  File "/Users/sparmar/lib/impala-shell/lib/impala_client.py", line 16, in <module>
    import sasl
  File "/Users/sparmar/lib/impala-shell/ext-py/sasl-0.1.1-py2.6-linux-x86_64.egg/sasl/__init__.py", line 1, in <module>

  File "/Users/sparmar/lib/impala-shell/ext-py/sasl-0.1.1-py2.6-linux-x86_64.egg/sasl/saslwrapper.py", line 7, in <module>
  File "/Users/sparmar/lib/impala-shell/ext-py/sasl-0.1.1-py2.6-linux-x86_64.egg/_saslwrapper.py", line 7, in <module>
  File "/Users/sparmar/lib/impala-shell/ext-py/sasl-0.1.1-py2.6-linux-x86_64.egg/_saslwrapper.py", line 6, in __bootstrap__
ImportError: dlopen(/Users/sparmar/.python-eggs/sasl-0.1.1-py2.6-linux-x86_64.egg-tmp/_saslwrapper.so, 2): no suitable image found.  Did find:
    /Users/sparmar/.python-eggs/sasl-0.1.1-py2.6-linux-x86_64.egg-tmp/_saslwrapper.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
    /Users/sparmar/.python-eggs/sasl-0.1.1-py2.6-linux-x86_64.egg-tmp/_saslwrapper.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
macof

Highlighted
Cloudera Employee
Posts: 2
Registered: ‎07-12-2016

Re: impala-shell on mac

You can pip install impala-shell from github:

$ pip install git+git://github.com/dknupp/impala-shell.git

afterwards you can run impala-shell to connect to your cluster:

 

$ impala-shell -i my_impalad.foo.cloudera.com

 

For more information go to: https://github.com/dknupp/impala-shell