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

Fix Assertion in ExecDriver.execute when assertions are enabled in HADOOP_OPTS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.5.0
    • 0.6.0
    • Query Processor
    • None
    • Reviewed

    Description

      I noticed that when running hive CLI, assertions are not enabled, which was causing me some confusion when debugging an issue.

      So, I added the following to my environment:

      export HADOOP_OPTS="-ea -esa"

      This worked, and allowed me to see assertion failures when executing via CLI.

      But then I tried to run a test, and got an assertion failure from the following code in ExecDriver.execute:

      // Turn on speculative execution for reducers
      HiveConf.setVar(job, HiveConf.ConfVars.HADOOPSPECULATIVEEXECREDUCERS,
      HiveConf.getVar(job, HiveConf.ConfVars.HIVESPECULATIVEEXECREDUCERS));

      The assertion says it should be using getBoolVar/setBoolVar instead.

      Attachments

        1. HIVE-1129.1.patch
          0.9 kB
          John Sichi

        Activity

          People

            jvs John Sichi
            jvs John Sichi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: