Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here. Want to know more about what has changed? Check out the Community News blog.

impala-shell on mac

SOLVED Go to solution

impala-shell on mac

Contributor

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

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: impala-shell on mac

Cloudera Employee

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

1 REPLY 1
Highlighted

Re: impala-shell on mac

Cloudera Employee

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