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

Passing an non-existent jar in HIVE_AUX_JARS_PATH produces incorrect error message

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Tez
    • Labels:
      None

      Description

      I had configured HS2 with HIVE_AUX_JARS_PATH pointing to a non-existent postgres jar. This resulted in queries failing with the following error:

       tez.DagUtils: Localizing resource because it does not exist: file:/data/1/todd/impala/fe/target/dependency/postgresql-42.2.5.jar to dest:
         hdfs://localhost:20500/tmp/hive/todd/_tez_session_dir/9de357d5-59bf-4faa-8973-5212a08bc41a-resources/postgresql-42.2.5.jar
       tez.DagUtils: Looks like another thread or process is writing the same file
       tez.DagUtils: Waiting for the file hdfs://localhost:20500/tmp/hive/todd/_tez_session_dir/9de357d5-59bf-4faa-8973-5212a08bc41a-resources/postgresql-42.2.5.jar (5 attempts, with 5000ms interval)
       tez.DagUtils: Could not find the jar that was being uploaded
      

      This incorrect logging sent me on a wild goose chase looking for concurrency issues, HDFS issues, etc, before I realized that the jar in fact didn't exist on the local FS. This is due to some sketchy code which presumes that any IOException is due to a writing conflict.

        Attachments

          Activity

            People

            • Assignee:
              NavyaS Navya Sruthi Sunkarapalli
              Reporter:
              tlipcon Todd Lipcon
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: