Hive
  1. Hive
  2. HIVE-6241

Remove direct reference of Hadoop23Shims inQTestUtil

    Details

    • Type: Wish Wish
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.14.0
    • Component/s: Tests
    • Labels:
      None

      Description

      if (clusterType == MiniClusterType.tez) {
        if (!(shims instanceof Hadoop23Shims)) {
          throw new Exception("Cannot run tez on hadoop-1, Version: "+this.hadoopVer);
        }
        mr = ((Hadoop23Shims)shims).getMiniTezCluster(conf, 4, getHdfsUriString(fs.getUri().toString()), 1);
      } else {
        mr = shims.getMiniMrCluster(conf, 4, getHdfsUriString(fs.getUri().toString()), 1);
      }
      

      Not important but a little annoying when the shims is not in classpath. And I think hadoop24shims or later might support tez.

      1. HIVE-6241.1.patch.txt
        5 kB
        Navis
      2. HIVE-6241.2.patch.txt
        4 kB
        Navis

        Activity

          People

          • Assignee:
            Navis
            Reporter:
            Navis
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development