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

Brian Gilreath commented on PHOENIX-1513:
-----------------------------------------

I've got a fix for this, but I don't have time offhand to test it. This patch 
fixes hadoop1 and hadoop2, here it is:

--- /tmp/tmp.50715.55   2014-12-09 20:21:52.000000000 +0000
+++ phoenix-3.2.0-bin/hadoop1/bin/phoenix_utils.py       2014-12-09 
20:21:48.000000000 +0000
@@ -49,7 +49,7 @@
     return ""
 
 def setPath():
- PHOENIX_CLIENT_JAR_PATTERN = "phoenix-*-client.jar"
+ PHOENIX_CLIENT_JAR_PATTERN = "phoenix-*-client*.jar"
  PHOENIX_TESTS_JAR_PATTERN = "phoenix-*-tests*.jar"
  global current_dir
  current_dir = os.path.dirname(os.path.abspath(__file__))

--- /tmp/tmp.50691.91   2014-12-09 20:20:42.000000000 +0000
+++ phoenix-3.2.0-bin/hadoop2/bin/phoenix_utils.py       2014-12-09 
20:20:23.000000000 +0000
@@ -49,7 +49,7 @@
     return ""
 
 def setPath():
- PHOENIX_CLIENT_JAR_PATTERN = "phoenix-*-client.jar"
+ PHOENIX_CLIENT_JAR_PATTERN = "phoenix-*-client*.jar"
  PHOENIX_TESTS_JAR_PATTERN = "phoenix-*-tests*.jar"
  global current_dir
  current_dir = os.path.dirname(os.path.abspath(__file__))

> 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