Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-1513

Could not find or load main class sqlline.SqlLine: Bad phoenix_utils.phoenix_client_jar path

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.2.0
    • 3.2.0
    • None
    • None
    • local machine, hbase-0.94.24, phoenix-3.2.0-bin

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            bgilreath Brian Gilreath
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: