Uploaded image for project: 'Bigtop'
  1. Bigtop
  2. BIGTOP-2162

phoenix-core-*-tests.jar should be located at $PHOENIX_HOME

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.1.0
    • Component/s: None
    • Labels:
      None

      Description

      Got an error like this while I'm trying to run performance.py:

      $ /usr/lib/phoenix/bin/performance.py zk 1000
      Phoenix Performance Evaluation Script 1.0
      -----------------------------------------
      
      Creating performance table...
      15/12/03 10:19:18 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
      no rows upserted
      Time: 4.543 sec(s)
      
      Query # 1 - Count - SELECT COUNT(1) FROM PERFORMANCE_1000;
      Query # 2 - Group By First PK - SELECT HOST FROM PERFORMANCE_1000 GROUP BY HOST;
      Query # 3 - Group By Second PK - SELECT DOMAIN FROM PERFORMANCE_1000 GROUP BY DOMAIN;
      Query # 4 - Truncate + Group By - SELECT TRUNC(DATE,'DAY') DAY FROM PERFORMANCE_1000 GROUP BY TRUNC(DATE,'DAY');
      Query # 5 - Filter + Count - SELECT COUNT(1) FROM PERFORMANCE_1000 WHERE CORE<10;
      
      Generating and upserting data...
      Error: Invalid or corrupt jarfile /tmp/data_DPPI2L.csv
      

      Phoenix's performance.py requires phoenix-core-*-tests.jar at $PHOENIX_HOME (/usr/lib/phoenix)

        Issue Links

          Activity

          Hide
          githubbot ASF GitHub Bot added a comment -

          Github user youngwookim closed the pull request at:

          https://github.com/apache/bigtop/pull/60

          Show
          githubbot ASF GitHub Bot added a comment - Github user youngwookim closed the pull request at: https://github.com/apache/bigtop/pull/60
          Hide
          warwithin YoungWoo Kim added a comment -

          Thanks Evans Ye! Will commit a series of patches.

          Show
          warwithin YoungWoo Kim added a comment - Thanks Evans Ye ! Will commit a series of patches.
          Hide
          evans_ye Evans Ye added a comment -

          Also looks good. I expect you need to follow some applying order for these pheonix patches to avoid conflict.
          I'll let you handle it.

          Show
          evans_ye Evans Ye added a comment - Also looks good. I expect you need to follow some applying order for these pheonix patches to avoid conflict. I'll let you handle it.
          Hide
          warwithin YoungWoo Kim added a comment - - edited

          Phoenix's jar files used by $PHOENIX_HOME/bin/.py should be located $PHOENIX_HOME/bin/../ or $PHOENIX_HOME/bin/../lib So, I moved All phoenix- jar files into $PHOENIX_HOME/

          If some phoenix-* jar files located in $PHOENIX_HOME/lib, some vars from phoenix_utils.py are incorrect:

          $ ./phoenix_utils.py 
          phoenix_class_path: 
          hbase_conf_dir: /home/hadoop/servers/hbase/conf
          hbase_conf_path: /home/hadoop/servers/hbase/conf
          current_dir: /usr/lib/phoenix/bin
          phoenix_jar_path: /usr/lib/phoenix/bin/../phoenix-assembly/target/*
          phoenix_client_jar: /usr/lib/phoenix/bin/../phoenix-4.6.0-HBase-1.1-client.jar
          phoenix_test_jar_path: /usr/lib/phoenix/bin/../phoenix-core/target/*
          hadoop_common_jar_path: /usr/lib/phoenix/bin/../phoenix-assembly/target/*
          hadoop_common_jar: 
          hadoop_hdfs_jar_path: /usr/lib/phoenix/bin/../phoenix-assembly/target/*
          hadoop_hdfs_jar: 
          testjar: 
          phoenix_queryserver_jar: /usr/lib/phoenix/bin/../lib/phoenix-server-4.6.0-HBase-1.1-runnable.jar
          phoenix_thin_client_jar: /usr/lib/phoenix/bin/../phoenix-4.6.0-HBase-1.1-thin-client.jar
          

          After applying this patch:

          # ./phoenix_utils.py 
          phoenix_class_path: 
          hbase_conf_dir: /etc/hbase/conf
          hbase_conf_path: /etc/hbase/conf
          current_dir: /usr/lib/phoenix/bin
          phoenix_jar_path: /usr/lib/phoenix/bin/../phoenix-assembly/target/*
          phoenix_client_jar: /usr/lib/phoenix/bin/../phoenix-4.6.0-HBase-1.1-client.jar
          phoenix_test_jar_path: /usr/lib/phoenix/bin/../phoenix-core/target/*
          hadoop_common_jar_path: /usr/lib/phoenix/bin/../phoenix-assembly/target/*
          hadoop_common_jar: 
          hadoop_hdfs_jar_path: /usr/lib/phoenix/bin/../phoenix-assembly/target/*
          hadoop_hdfs_jar: 
          testjar: /usr/lib/phoenix/bin/../phoenix-core-4.6.0-HBase-1.1-tests.jar
          phoenix_queryserver_jar: /usr/lib/phoenix/bin/../phoenix-server-4.6.0-HBase-1.1-runnable.jar
          phoenix_thin_client_jar: /usr/lib/phoenix/bin/../phoenix-4.6.0-HBase-1.1-thin-client.jar
          
          Show
          warwithin YoungWoo Kim added a comment - - edited Phoenix's jar files used by $PHOENIX_HOME/bin/ .py should be located $PHOENIX_HOME/bin/../ or $PHOENIX_HOME/bin/../lib So, I moved All phoenix- jar files into $PHOENIX_HOME/ If some phoenix-* jar files located in $PHOENIX_HOME/lib, some vars from phoenix_utils.py are incorrect: $ ./phoenix_utils.py phoenix_class_path: hbase_conf_dir: /home/hadoop/servers/hbase/conf hbase_conf_path: /home/hadoop/servers/hbase/conf current_dir: /usr/lib/phoenix/bin phoenix_jar_path: /usr/lib/phoenix/bin/../phoenix-assembly/target/* phoenix_client_jar: /usr/lib/phoenix/bin/../phoenix-4.6.0-HBase-1.1-client.jar phoenix_test_jar_path: /usr/lib/phoenix/bin/../phoenix-core/target/* hadoop_common_jar_path: /usr/lib/phoenix/bin/../phoenix-assembly/target/* hadoop_common_jar: hadoop_hdfs_jar_path: /usr/lib/phoenix/bin/../phoenix-assembly/target/* hadoop_hdfs_jar: testjar: phoenix_queryserver_jar: /usr/lib/phoenix/bin/../lib/phoenix-server-4.6.0-HBase-1.1-runnable.jar phoenix_thin_client_jar: /usr/lib/phoenix/bin/../phoenix-4.6.0-HBase-1.1-thin-client.jar After applying this patch: # ./phoenix_utils.py phoenix_class_path: hbase_conf_dir: /etc/hbase/conf hbase_conf_path: /etc/hbase/conf current_dir: /usr/lib/phoenix/bin phoenix_jar_path: /usr/lib/phoenix/bin/../phoenix-assembly/target/* phoenix_client_jar: /usr/lib/phoenix/bin/../phoenix-4.6.0-HBase-1.1-client.jar phoenix_test_jar_path: /usr/lib/phoenix/bin/../phoenix-core/target/* hadoop_common_jar_path: /usr/lib/phoenix/bin/../phoenix-assembly/target/* hadoop_common_jar: hadoop_hdfs_jar_path: /usr/lib/phoenix/bin/../phoenix-assembly/target/* hadoop_hdfs_jar: testjar: /usr/lib/phoenix/bin/../phoenix-core-4.6.0-HBase-1.1-tests.jar phoenix_queryserver_jar: /usr/lib/phoenix/bin/../phoenix-server-4.6.0-HBase-1.1-runnable.jar phoenix_thin_client_jar: /usr/lib/phoenix/bin/../phoenix-4.6.0-HBase-1.1-thin-client.jar
          Hide
          githubbot ASF GitHub Bot added a comment -

          GitHub user youngwookim opened a pull request:

          https://github.com/apache/bigtop/pull/60

          BIGTOP-2162. phoenix-core-*-tests.jar should be located at $PHOENIX_HOME

          You can merge this pull request into a Git repository by running:

          $ git pull https://github.com/youngwookim/bigtop BIGTOP-2162

          Alternatively you can review and apply these changes as the patch at:

          https://github.com/apache/bigtop/pull/60.patch

          To close this pull request, make a commit to your master/trunk branch
          with (at least) the following in the commit message:

          This closes #60


          commit 632ecc6dcf75e73148c18bdc4fab7f9302cf557d
          Author: Youngwoo Kim <ywkim@apache.org>
          Date: 2015-12-03T02:09:16Z

          BIGTOP-2162. phoenix-core-*-tests.jar should be located at $PHOENIX_HOME


          Show
          githubbot ASF GitHub Bot added a comment - GitHub user youngwookim opened a pull request: https://github.com/apache/bigtop/pull/60 BIGTOP-2162 . phoenix-core-*-tests.jar should be located at $PHOENIX_HOME You can merge this pull request into a Git repository by running: $ git pull https://github.com/youngwookim/bigtop BIGTOP-2162 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/bigtop/pull/60.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #60 commit 632ecc6dcf75e73148c18bdc4fab7f9302cf557d Author: Youngwoo Kim <ywkim@apache.org> Date: 2015-12-03T02:09:16Z BIGTOP-2162 . phoenix-core-*-tests.jar should be located at $PHOENIX_HOME

            People

            • Assignee:
              warwithin YoungWoo Kim
              Reporter:
              warwithin YoungWoo Kim
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development