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

HCatalogStore can't scan several hive databases.

    Details

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

      Description

      When I scaned hive tables which stored on another database except for default database, TajoMaster made a error as follows:

      2014-01-15 02:00:58,681 ERROR master.GlobalEngine (GlobalEngine.java:executeQuery(177)) - 
      Stack Trace:
      java.lang.IllegalStateException: Not all targets are evaluated
      	at com.google.common.base.Preconditions.checkState(Preconditions.java:150)
      	at org.apache.tajo.engine.planner.rewrite.ProjectionPushDownRule.pushDownProjectablePost(ProjectionPushDownRule.java:368)
      	at org.apache.tajo.engine.planner.rewrite.ProjectionPushDownRule.visitScan(ProjectionPushDownRule.java:306)
      	at org.apache.tajo.engine.planner.rewrite.ProjectionPushDownRule.visitScan(ProjectionPushDownRule.java:37)
      	at org.apache.tajo.engine.planner.BasicLogicalPlanVisitor.visit(BasicLogicalPlanVisitor.java:93)
      	at org.apache.tajo.engine.planner.rewrite.ProjectionPushDownRule.visitProjection(ProjectionPushDownRule.java:132)
      	at org.apache.tajo.engine.planner.rewrite.ProjectionPushDownRule.visitProjection(ProjectionPushDownRule.java:37)
      	at org.apache.tajo.engine.planner.BasicLogicalPlanVisitor.visit(BasicLogicalPlanVisitor.java:63)
      	at org.apache.tajo.engine.planner.rewrite.ProjectionPushDownRule.pushDownCommonPost(ProjectionPushDownRule.java:319)
      	at org.apache.tajo.engine.planner.rewrite.ProjectionPushDownRule.visitRoot(ProjectionPushDownRule.java:105)
      	at org.apache.tajo.engine.planner.rewrite.ProjectionPushDownRule.visitRoot(ProjectionPushDownRule.java:37)
      	at org.apache.tajo.engine.planner.BasicLogicalPlanVisitor.visit(BasicLogicalPlanVisitor.java:58)
      	at org.apache.tajo.engine.planner.rewrite.ProjectionPushDownRule.rewrite(ProjectionPushDownRule.java:83)
      	at org.apache.tajo.engine.planner.rewrite.BasicQueryRewriteEngine.rewrite(BasicQueryRewriteEngine.java:63)
      	at org.apache.tajo.engine.planner.LogicalOptimizer.optimize(LogicalOptimizer.java:73)
      	at org.apache.tajo.master.GlobalEngine.createLogicalPlan(GlobalEngine.java:226)
      	at org.apache.tajo.master.GlobalEngine.executeQuery(GlobalEngine.java:138)
      	at org.apache.tajo.master.TajoMasterClientService$TajoMasterClientProtocolServiceHandler.submitQuery(TajoMasterClientService.java:135)
      	at org.apache.tajo.ipc.TajoMasterClientProtocol$TajoMasterClientProtocolService$2.callBlockingMethod(TajoMasterClientProtocol.java:257)
      	at org.apache.tajo.rpc.BlockingRpcServer$ServerHandler.messageReceived(BlockingRpcServer.java:91)
      	at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
      
      1. TAJO-503.patch
        2 kB
        Jaehwa Jung

        Activity

        Hide
        hudson Hudson added a comment -

        SUCCESS: Integrated in Tajo-master-build #12 (See https://builds.apache.org/job/Tajo-master-build/12/)
        TAJO-503: HCatalogStore can't scan several hive databases. (jaehwa) (jhjung: https://git-wip-us.apache.org/repos/asf?p=incubator-tajo.git&a=commit&h=3c6fdf38eaff47c253ed9dda7074407ad58cd3b4)

        • CHANGES.txt
        • tajo-catalog/tajo-catalog-drivers/tajo-hcatalog/src/main/java/org/apache/tajo/catalog/store/HCatalogStore.java
        • tajo-catalog/tajo-catalog-drivers/tajo-hcatalog/src/test/java/org/apache/tajo/catalog/store/TestHCatalogStore.java
        Show
        hudson Hudson added a comment - SUCCESS: Integrated in Tajo-master-build #12 (See https://builds.apache.org/job/Tajo-master-build/12/ ) TAJO-503 : HCatalogStore can't scan several hive databases. (jaehwa) (jhjung: https://git-wip-us.apache.org/repos/asf?p=incubator-tajo.git&a=commit&h=3c6fdf38eaff47c253ed9dda7074407ad58cd3b4 ) CHANGES.txt tajo-catalog/tajo-catalog-drivers/tajo-hcatalog/src/main/java/org/apache/tajo/catalog/store/HCatalogStore.java tajo-catalog/tajo-catalog-drivers/tajo-hcatalog/src/test/java/org/apache/tajo/catalog/store/TestHCatalogStore.java
        Hide
        blrunner Jaehwa Jung added a comment -

        I've just committed it.

        Show
        blrunner Jaehwa Jung added a comment - I've just committed it.
        Hide
        tajoqa Tajo QA added a comment -

        -1 overall. Here are the results of testing the latest attachment
        http://issues.apache.org/jira/secure/attachment/12623076/TAJO-503.patch
        against master revision b1ff37c.

        +1 @author. The patch does not contain any @author tags.

        +1 tests included. The patch appears to include 1 new or modified test files.

        +1 javac. The applied patch does not increase the total number of javac compiler warnings.

        +1 javadoc. The applied patch does not increase the total number of javadoc warnings.

        +1 checkstyle. The patch generated 0 code style errors.

        -1 findbugs. The patch appears to introduce 11 new Findbugs (version 1.3.9) warnings.

        +1 release audit. The applied patch does not increase the total number of release audit warnings.

        +1 core tests. The patch passed unit tests in tajo-catalog/tajo-catalog-drivers/tajo-hcatalog.

        Test results: https://builds.apache.org/job/PreCommit-TAJO-Build/40//testReport/
        Findbugs warnings: https://builds.apache.org/job/PreCommit-TAJO-Build/40//artifact/incubator-tajo/patchprocess/newPatchFindbugsWarningstajo-hcatalog.html
        Console output: https://builds.apache.org/job/PreCommit-TAJO-Build/40//console

        This message is automatically generated.

        Show
        tajoqa Tajo QA added a comment - -1 overall. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12623076/TAJO-503.patch against master revision b1ff37c. +1 @author. The patch does not contain any @author tags. +1 tests included. The patch appears to include 1 new or modified test files. +1 javac. The applied patch does not increase the total number of javac compiler warnings. +1 javadoc. The applied patch does not increase the total number of javadoc warnings. +1 checkstyle. The patch generated 0 code style errors. -1 findbugs. The patch appears to introduce 11 new Findbugs (version 1.3.9) warnings. +1 release audit. The applied patch does not increase the total number of release audit warnings. +1 core tests. The patch passed unit tests in tajo-catalog/tajo-catalog-drivers/tajo-hcatalog. Test results: https://builds.apache.org/job/PreCommit-TAJO-Build/40//testReport/ Findbugs warnings: https://builds.apache.org/job/PreCommit-TAJO-Build/40//artifact/incubator-tajo/patchprocess/newPatchFindbugsWarningstajo-hcatalog.html Console output: https://builds.apache.org/job/PreCommit-TAJO-Build/40//console This message is automatically generated.
        Hide
        hyunsik Hyunsik Choi added a comment -

        Jinho and I are testing precommit build test. The above comment was added by jenkins job.

        Show
        hyunsik Hyunsik Choi added a comment - Jinho and I are testing precommit build test. The above comment was added by jenkins job.
        Hide
        tajoqa Tajo QA added a comment -

        -1 overall. Here are the results of testing the latest attachment
        http://issues.apache.org/jira/secure/attachment/12623076/TAJO-503.patch
        against master revision b1ff37c.

        +1 @author. The patch does not contain any @author tags.

        +1 tests included. The patch appears to include 1 new or modified test files.

        +1 javac. The applied patch does not increase the total number of javac compiler warnings.

        +1 javadoc. The applied patch does not increase the total number of javadoc warnings.

        +1 checkstyle. The patch generated 0 code style errors.

        -1 findbugs. The patch appears to cause Findbugs (version 1.3.9) to fail.

        +1 release audit. The applied patch does not increase the total number of release audit warnings.

        +1 core tests. The patch passed unit tests in tajo-catalog/tajo-catalog-drivers/tajo-hcatalog.

        Test results: https://builds.apache.org/job/PreCommit-TAJO-Build/39//testReport/
        Findbugs results: https://builds.apache.org/job/PreCommit-TAJO-Build/39//findbugsResult
        Console output: https://builds.apache.org/job/PreCommit-TAJO-Build/39//console

        This message is automatically generated.

        Show
        tajoqa Tajo QA added a comment - -1 overall. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12623076/TAJO-503.patch against master revision b1ff37c. +1 @author. The patch does not contain any @author tags. +1 tests included. The patch appears to include 1 new or modified test files. +1 javac. The applied patch does not increase the total number of javac compiler warnings. +1 javadoc. The applied patch does not increase the total number of javadoc warnings. +1 checkstyle. The patch generated 0 code style errors. -1 findbugs. The patch appears to cause Findbugs (version 1.3.9) to fail. +1 release audit. The applied patch does not increase the total number of release audit warnings. +1 core tests. The patch passed unit tests in tajo-catalog/tajo-catalog-drivers/tajo-hcatalog. Test results: https://builds.apache.org/job/PreCommit-TAJO-Build/39//testReport/ Findbugs results: https://builds.apache.org/job/PreCommit-TAJO-Build/39//findbugsResult Console output: https://builds.apache.org/job/PreCommit-TAJO-Build/39//console This message is automatically generated.
        Hide
        blrunner Jaehwa Jung added a comment - - edited

        I uploaded the patch, and I created a new review request which located on https://reviews.apache.org/r/16901.

        This bug was happened by HCatalogStore. Because when I made HCatalogStore, I didn't assign db name to TableDesc.

        I already verified the patch on my local cluster.
        After review it, I'll commit to tajo-cdh which located on https://github.com/gruter/tajo-cdh.

        Show
        blrunner Jaehwa Jung added a comment - - edited I uploaded the patch, and I created a new review request which located on https://reviews.apache.org/r/16901 . This bug was happened by HCatalogStore. Because when I made HCatalogStore, I didn't assign db name to TableDesc. I already verified the patch on my local cluster. After review it, I'll commit to tajo-cdh which located on https://github.com/gruter/tajo-cdh .

          People

          • Assignee:
            blrunner Jaehwa Jung
            Reporter:
            blrunner Jaehwa Jung
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development