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

Remove hadoop dependency in DatumFactory

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.11.0
    • Component/s: Java Client, JDBC Driver
    • Labels:
      None

      Description

      See the title

      Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/io/RawComparator
      at org.apache.tajo.datum.DatumFactory.createFromBytes(DatumFactory.java:124)
      at org.apache.tajo.catalog.statistics.ColumnStats.<init>(ColumnStats.java:59)
      at org.apache.tajo.catalog.statistics.TableStats.<init>(TableStats.java:91)
      at org.apache.tajo.catalog.TableDesc.<init>(TableDesc.java:73)
      at org.apache.tajo.catalog.CatalogUtil.newTableDesc(CatalogUtil.java:338)
      at org.apache.tajo.jdbc.WaitingResultSet.waitOnResult(WaitingResultSet.java:65)
      at org.apache.tajo.jdbc.WaitingResultSet.getSchema(WaitingResultSet.java:52)
      at org.apache.tajo.jdbc.TajoStatement.executeSQL(TajoStatement.java:167)
      at org.apache.tajo.jdbc.TajoPreparedStatement.executeImmediate(TajoPreparedStatement.java:92)
      at org.apache.tajo.jdbc.TajoPreparedStatement.executeQuery(TajoPreparedStatement.java:76)
      at org.apache.tajo.jdbc.TestJdbc.main(TestJdbc.java:31)
      Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.io.RawComparator
      at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      

        Issue Links

          Activity

          Hide
          githubbot ASF GitHub Bot added a comment -

          GitHub user jinossy opened a pull request:

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

          TAJO-1742: Remove hadoop dependency in DatumFactory

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

          $ git pull https://github.com/jinossy/tajo TAJO-1742

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

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


          commit b54460a27dab17af1ac8674d4ef7c58107158e0d
          Author: Jinho Kim <jhkim@apache.org>
          Date: 2015-08-05T02:20:18Z

          TAJO-1742: Remove hadoop dependency in DatumFactory


          Show
          githubbot ASF GitHub Bot added a comment - GitHub user jinossy opened a pull request: https://github.com/apache/tajo/pull/676 TAJO-1742 : Remove hadoop dependency in DatumFactory You can merge this pull request into a Git repository by running: $ git pull https://github.com/jinossy/tajo TAJO-1742 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/tajo/pull/676.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 #676 commit b54460a27dab17af1ac8674d4ef7c58107158e0d Author: Jinho Kim <jhkim@apache.org> Date: 2015-08-05T02:20:18Z TAJO-1742 : Remove hadoop dependency in DatumFactory
          Hide
          githubbot ASF GitHub Bot added a comment -

          Github user hyunsik commented on the pull request:

          https://github.com/apache/tajo/pull/676#issuecomment-127897651

          +1
          The patch looks straightforward.

          Show
          githubbot ASF GitHub Bot added a comment - Github user hyunsik commented on the pull request: https://github.com/apache/tajo/pull/676#issuecomment-127897651 +1 The patch looks straightforward.
          Hide
          githubbot ASF GitHub Bot added a comment -

          Github user asfgit closed the pull request at:

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

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

          committed it
          Thank you for your quick review!!

          Show
          jhkim Jinho Kim added a comment - committed it Thank you for your quick review!!
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Tajo-master-CODEGEN-build #430 (See https://builds.apache.org/job/Tajo-master-CODEGEN-build/430/)
          TAJO-1742: Remove hadoop dependency in DatumFactory. (jhkim: rev 2056aaa8111cf2ef81fc4c71fd7c085a59a043bd)

          • tajo-common/src/main/java/org/apache/tajo/util/NumberUtil.java
          • tajo-common/src/main/java/org/apache/tajo/datum/DatumFactory.java
          • tajo-common/src/main/java/org/apache/tajo/util/BytesUtils.java
          • CHANGES
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Tajo-master-CODEGEN-build #430 (See https://builds.apache.org/job/Tajo-master-CODEGEN-build/430/ ) TAJO-1742 : Remove hadoop dependency in DatumFactory. (jhkim: rev 2056aaa8111cf2ef81fc4c71fd7c085a59a043bd) tajo-common/src/main/java/org/apache/tajo/util/NumberUtil.java tajo-common/src/main/java/org/apache/tajo/datum/DatumFactory.java tajo-common/src/main/java/org/apache/tajo/util/BytesUtils.java CHANGES
          Hide
          hudson Hudson added a comment -

          SUCCESS: Integrated in Tajo-master-build #792 (See https://builds.apache.org/job/Tajo-master-build/792/)
          TAJO-1742: Remove hadoop dependency in DatumFactory. (jhkim: rev 2056aaa8111cf2ef81fc4c71fd7c085a59a043bd)

          • tajo-common/src/main/java/org/apache/tajo/util/BytesUtils.java
          • tajo-common/src/main/java/org/apache/tajo/datum/DatumFactory.java
          • tajo-common/src/main/java/org/apache/tajo/util/NumberUtil.java
          • CHANGES
          Show
          hudson Hudson added a comment - SUCCESS: Integrated in Tajo-master-build #792 (See https://builds.apache.org/job/Tajo-master-build/792/ ) TAJO-1742 : Remove hadoop dependency in DatumFactory. (jhkim: rev 2056aaa8111cf2ef81fc4c71fd7c085a59a043bd) tajo-common/src/main/java/org/apache/tajo/util/BytesUtils.java tajo-common/src/main/java/org/apache/tajo/datum/DatumFactory.java tajo-common/src/main/java/org/apache/tajo/util/NumberUtil.java CHANGES

            People

            • Assignee:
              jhkim Jinho Kim
              Reporter:
              jhkim Jinho Kim
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development