Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-15407

add distcp to classpath by default, because hive depends on it.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.3.0
    • Component/s: Beeline, CLI
    • Labels:
      None
    • Target Version/s:

      Description

      when i run hive queries, i get errors as follow
      java.lang.NoClassDefFoundError: org/apache/hadoop/tools/DistCpOptions
      ...

      I dig into code, and find that hive depends on distcp ,but distcp is not in classpath by default.

      I think if adding distcp to hadoop classpath by default in hadoop project, but hadoop committers will not do that. discussions in HADOOP-13865 . They propose that Resolving this problem on HIVE

      So i add distcp to classpath on HIVE

        Attachments

        1. HIVE-15407.2.patch
          0.5 kB
          Fei Hui
        2. HIVE-15407.1.patch
          2 kB
          Fei Hui

          Activity

            People

            • Assignee:
              ferhui Fei Hui
              Reporter:
              ferhui Fei Hui
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: