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

Remove direct reference of Hadoop23Shims inQTestUtil

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 0.14.0
    • Tests
    • 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.

      Attachments

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

        Activity

          People

            navis Navis Ryu
            navis Navis Ryu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: