You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Dave Hacker (JIRA)" <ji...@apache.org> on 2015/01/26 23:22:34 UTC

[jira] [Commented] (PHOENIX-1513) Could not find or load main class sqlline.SqlLine: Bad phoenix_utils.phoenix_client_jar path

    [ https://issues.apache.org/jira/browse/PHOENIX-1513?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14292516#comment-14292516 ] 

Dave Hacker commented on PHOENIX-1513:
--------------------------------------

[~mujtaba] - I verified that this works the other day when trying to confirm the steps in the FAQ and the Phoenix website.  The change in the client jar pattern fixes the problem.

> 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)