Uploaded image for project: 'Tajo'
  1. Tajo
  2. TAJO-2025

HBASE_LIB/metrics-core-*.jar should be included in CLASSPATH

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.11.0
    • Fix Version/s: 0.12.0, 0.11.1
    • Component/s: conf and scripts
    • Labels:
    • Environment:

      hbase-0.98.16.1-hadoop2

      Description

      When I try to connect HBase client via TAJO, TAJO cannot connect HBase with below logs.

      INFO org.apache.hadoop.hbase.client.RpcRetryingCaller: Call exception, tries=10, retries=35, retryTime=68306ms, msg=row 'lineitem,,' on table 'hbase:meta' at region=hbase:meta,,1.1588230740, hostname=<address>,60020,1450062494778, seqNum=0
      INFO org.apache.hadoop.hbase.client.RpcRetryingCaller: Call exception, tries=11, retries=35, retryTime=88389ms, msg=row 'lineitem,,' on table 'hbase:meta' at region=hbase:meta,,1.1588230740, hostname=<address>,60020,1450062494778, seqNum=0
      
      ...
      
      org.apache.hadoop.hbase.client.RpcRetryingCaller@5b5e2d4c, java.io.IOException: com.google.protobuf.ServiceException: java.lang.NoClassDefFoundError: com/yammer/metrics/core/Gauge
      

      But, I can connect HBase using TestHBaseTable.

      I found out that tsql can connect hbase client with appending HBASE_LIB/HBase-hadoop2-compat-*.jar to classpath in bin/tajo.
      But, HBase-hadoop2-compat-*.jar has lots of dependency so I try to find out necessity for TAJO in this jar.

      HBASE_LIB/metrics-core-*.jar is answer.
      I test hbase 0.98.16.1-hadoop2 version with TAJO, builded with manually-configured Hbase version.

        Activity

        Hide
        githubbot ASF GitHub Bot added a comment -

        GitHub user dkhwangbo opened a pull request:

        https://github.com/apache/tajo/pull/915

        TAJO-2025: HBASE_LIB/metrics-core-*.jar should be included in CLASSPATH

        When I try to connect HBase client via TAJO, TAJO cannot connect HBase with below logs.
        ```
        INFO org.apache.hadoop.hbase.client.RpcRetryingCaller: Call exception, tries=10, retries=35, retryTime=68306ms, msg=row 'lineitem,,' on table 'hbase:meta' at region=hbase:meta,,1.1588230740, hostname=<address>,60020,1450062494778, seqNum=0
        INFO org.apache.hadoop.hbase.client.RpcRetryingCaller: Call exception, tries=11, retries=35, retryTime=88389ms, msg=row 'lineitem,,' on table 'hbase:meta' at region=hbase:meta,,1.1588230740, hostname=<address>,60020,1450062494778, seqNum=0

        ...

        org.apache.hadoop.hbase.client.RpcRetryingCaller@5b5e2d4c, java.io.IOException: com.google.protobuf.ServiceException: java.lang.NoClassDefFoundError: com/yammer/metrics/core/Gauge
        ```
        But, I can connect HBase using ```TestHBaseTable```.

        I found out that tsql can connect hbase client with appending ```HBASE_LIB/HBase-hadoop2-compat-*.jar``` to classpath in ```bin/tajo```.
        But, ```HBase-hadoop2-compat-*.jar``` has lots of dependency so I try to find out necessity for TAJO in this jar.

        ```HBASE_LIB/metrics-core-*.jar``` is answer.
        I test hbase 0.98.16.1-hadoop2 version with TAJO, builded with manually-configured Hbase version.

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

        $ git pull https://github.com/dkhwangbo/tajo TAJO-2025

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

        https://github.com/apache/tajo/pull/915.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 #915


        commit 8a89556555814b15adcbb20df44f4e9146368d96
        Author: Dongkyu Hwangbo <hwangbodk@gmail.com>
        Date: 2015-12-17T03:29:35Z

        initial commit


        Show
        githubbot ASF GitHub Bot added a comment - GitHub user dkhwangbo opened a pull request: https://github.com/apache/tajo/pull/915 TAJO-2025 : HBASE_LIB/metrics-core-*.jar should be included in CLASSPATH When I try to connect HBase client via TAJO, TAJO cannot connect HBase with below logs. ``` INFO org.apache.hadoop.hbase.client.RpcRetryingCaller: Call exception, tries=10, retries=35, retryTime=68306ms, msg=row 'lineitem,,' on table 'hbase:meta' at region=hbase:meta,,1.1588230740, hostname=<address>,60020,1450062494778, seqNum=0 INFO org.apache.hadoop.hbase.client.RpcRetryingCaller: Call exception, tries=11, retries=35, retryTime=88389ms, msg=row 'lineitem,,' on table 'hbase:meta' at region=hbase:meta,,1.1588230740, hostname=<address>,60020,1450062494778, seqNum=0 ... org.apache.hadoop.hbase.client.RpcRetryingCaller@5b5e2d4c, java.io.IOException: com.google.protobuf.ServiceException: java.lang.NoClassDefFoundError: com/yammer/metrics/core/Gauge ``` But, I can connect HBase using ```TestHBaseTable```. I found out that tsql can connect hbase client with appending ```HBASE_LIB/HBase-hadoop2-compat-*.jar``` to classpath in ```bin/tajo```. But, ```HBase-hadoop2-compat-*.jar``` has lots of dependency so I try to find out necessity for TAJO in this jar. ```HBASE_LIB/metrics-core-*.jar``` is answer. I test hbase 0.98.16.1-hadoop2 version with TAJO, builded with manually-configured Hbase version. You can merge this pull request into a Git repository by running: $ git pull https://github.com/dkhwangbo/tajo TAJO-2025 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/tajo/pull/915.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 #915 commit 8a89556555814b15adcbb20df44f4e9146368d96 Author: Dongkyu Hwangbo <hwangbodk@gmail.com> Date: 2015-12-17T03:29:35Z initial commit
        Hide
        githubbot ASF GitHub Bot added a comment -

        Github user jinossy commented on the pull request:

        https://github.com/apache/tajo/pull/915#issuecomment-165349015

        +1 LGTM!
        Thanks for your contribution!

        Show
        githubbot ASF GitHub Bot added a comment - Github user jinossy commented on the pull request: https://github.com/apache/tajo/pull/915#issuecomment-165349015 +1 LGTM! Thanks for your contribution!
        Hide
        githubbot ASF GitHub Bot added a comment -

        Github user asfgit closed the pull request at:

        https://github.com/apache/tajo/pull/915

        Show
        githubbot ASF GitHub Bot added a comment - Github user asfgit closed the pull request at: https://github.com/apache/tajo/pull/915
        Hide
        jhkim Jinho Kim added a comment -

        committed it
        Thanks

        Show
        jhkim Jinho Kim added a comment - committed it Thanks
        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Tajo-master-CODEGEN-build #636 (See https://builds.apache.org/job/Tajo-master-CODEGEN-build/636/)
        TAJO-2025: HBASE_LIB/metrics-core-*.jar should be included in CLASSPATH. (jhkim: rev d306534e9a5605b5b6cd1c38a670ec4942c82a1a)

        • tajo-dist/src/main/bin/tajo
        • CHANGES
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Tajo-master-CODEGEN-build #636 (See https://builds.apache.org/job/Tajo-master-CODEGEN-build/636/ ) TAJO-2025 : HBASE_LIB/metrics-core-*.jar should be included in CLASSPATH. (jhkim: rev d306534e9a5605b5b6cd1c38a670ec4942c82a1a) tajo-dist/src/main/bin/tajo CHANGES
        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Tajo-master-build #1032 (See https://builds.apache.org/job/Tajo-master-build/1032/)
        TAJO-2025: HBASE_LIB/metrics-core-*.jar should be included in CLASSPATH. (jhkim: rev d306534e9a5605b5b6cd1c38a670ec4942c82a1a)

        • tajo-dist/src/main/bin/tajo
        • CHANGES
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Tajo-master-build #1032 (See https://builds.apache.org/job/Tajo-master-build/1032/ ) TAJO-2025 : HBASE_LIB/metrics-core-*.jar should be included in CLASSPATH. (jhkim: rev d306534e9a5605b5b6cd1c38a670ec4942c82a1a) tajo-dist/src/main/bin/tajo CHANGES
        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Tajo-0.11.1-build #138 (See https://builds.apache.org/job/Tajo-0.11.1-build/138/)
        TAJO-2025: HBASE_LIB/metrics-core-*.jar should be included in CLASSPATH. (jhkim: rev 1ccd0eb49f06be8f386dc7f3a91a8d28416de88e)

        • tajo-dist/src/main/bin/tajo
        • CHANGES
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Tajo-0.11.1-build #138 (See https://builds.apache.org/job/Tajo-0.11.1-build/138/ ) TAJO-2025 : HBASE_LIB/metrics-core-*.jar should be included in CLASSPATH. (jhkim: rev 1ccd0eb49f06be8f386dc7f3a91a8d28416de88e) tajo-dist/src/main/bin/tajo CHANGES

          People

          • Assignee:
            dkhwangbo Dongkyu Hwangbo
            Reporter:
            dkhwangbo Dongkyu Hwangbo
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development