Answer the question
In order to leave comments, you need to log in
Is it possible to run sqlline.py without installing Hbase on the machine?
Good afternoon!
There is a server with installed HBase and Phoenix. It is necessary to install sqlline on a local Ubuntu PC to work with the HBase server through Phoenix.
I downloaded and unpacked apache-phoenix-4.14.2-HBase-1.4-bin.tar.gz on a local PC, when I try to run ./sqlline.py an error appears:
Traceback (most recent call last):
File "./sqlline.py", line 25, in <module>
import phoenix_utils
File "/root/apache-phoenix-4.14.2-HBase-1.4-bin/bin/phoenix_utils.py", line 208
print "phoenix_class_path:", phoenix_class_path
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("phoenix_class_path:", phoenix_class_path)?
Answer the question
In order to leave comments, you need to log in
The error is typical for running python 2.x scripts in python 3.x environment
Run in version 2 of python.
Thanks for the answer!
indeed, the problem is in the compatibility of python 2 and python 3 - I figured out the problem by slightly tweaking the sqlline.py script
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question