Brian Gilreath created PHOENIX-1513:
---------------------------------------

             Summary: Could not find or load main class sqlline.SqlLine: Bad 
phoenix_utils.phoenix_client_jar path
                 Key: PHOENIX-1513
                 URL: https://issues.apache.org/jira/browse/PHOENIX-1513
             Project: Phoenix
          Issue Type: Bug
    Affects Versions: 3.2
         Environment: local machine, hbase-0.94.24, phoenix-3.2.0-bin
            Reporter: Brian Gilreath
            Priority: Minor


When executing sqlline.py for hadoop1, I receive this error:
{{Error: Could not find or load main class sqlline.SqlLine}}

My set up is simply:
{{export HBASE_HOME=~/hbase-0.94.24}}
{{$HBASE_HOME/bin/start-hbase.sh}}
{{export HBASE_CONF_PATH=~/$HBASE_HOME/conf}}
{{~/phoenix-3.2.0-bin/hadoop1/bin/sqlline.py localhost}}

It works when I run with:
{{~/phoenix-3.1.0-bin/hadoop1/bin/sqlline.py localhost}}

After digging into it a little bit, it appears that it can't find the client 
jar for execution ( phoenix_utils.phoenix_client_jar returns an empty string )

Temporarily, I remedied it by manually executing the corrected java command:
{{java -cp 
"/User/youruser/hbase-0.94.24/conf/:/User/youruser/phoenix-3.2.0-bin/hadoop1/bin/../phoenix-3.2.0-client-hadoop1.jar"
 
-Dlog4j.configuration=file:/Users/youruser/phoenix-3.2.0-bin/hadoop1/bin/log4j.properties
 sqlline.SqlLine -d org.apache.phoenix.jdbc.PhoenixDriver -u 
jdbc:phoenix:localhost -n none -p none --color=true --fastConnect=false 
--verbose=true --isolation=TRANSACTION_READ_COMMITTED}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to