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

Hive swallows NPE if no delegation token found

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 3.1.1
    • 4.0.0-alpha-1
    • JDBC
    • Reviewed

    Description

      In case if there is no delegation token put into token file, this line will cause a NullPointerException which is not handled and the user is not notified in any way.

      To cause NPE the use case is to have an Oozie Sqoop import to Hive in a kerberized cluster. Oozie puts the delegation token into the token file with id: HIVE_DELEGATION_TOKEN_hiveserver2ClientToken. So with id hive it is not working. However, fallback code uses the key which Oozie provides this way.

      I suggest to have warning message to user that key with id hive cannot be used and falling back to get delegation token from the session.

      I am creating the patch.

      Attachments

        1. HIVE-21507.003.patch
          6 kB
          Dénes Bodó
        2. HIVE-21507.002.patch
          6 kB
          Dénes Bodó
        3. HIVE-21507.001.patch
          5 kB
          Dénes Bodó

        Issue Links

          Activity

            People

              dionusos Dénes Bodó
              dionusos Dénes Bodó
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: