Install cloudera impala shell on mac os x and connect to the impala clan

We have an impala server on prod, and I need to connect to it using the impala shell from my local macbook w / mac os x (10.8).

I downloaded Impala-cdh5.1.0-release.tar.gz , unpacked it, tried buildall.sh , which failed: .../bin/impala-config.sh: line 123: nproc: command not found

The impala-shell attempt directly also fails:

 $ shell/impala-shell ls: /Users/.../Impala-cdh5.1.0-release/shell/ext-py/*.egg: No such file or directory Traceback (most recent call last): File "/Users/.../Impala-cdh5.1.0-release/shell/impala_shell.py", line 20, in <module> import prettytable ImportError: No module named prettytable 

I have jdk installed and JAVA_HOME installed. Cloudera manager doesn't seem to support mac os, does it?

+5
source share
1 answer

Based on your limited error message:

 .../bin/impala-config.sh: line 123: nproc: command not found 

I would say no, this package from cloudera does not support OSX. nproc is a linux command, and anything that references it will not work on OSX.

If you could provide additional information - for example, where did you download it or what is it for those of us who are not cloudera customers, we could work out workarounds.

Or contact cloudera support and complain about the lack of OSX support?

The second error message looks like python, not java - and you are not creating a context around it.

+1
source

All Articles