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

Hive custom SerDe cannot load DLL added by "ADD FILE" command

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.14.0
    • Component/s: None
    • Labels:
      None

      Description

      When custom SerDe need to load a DLL file added using "ADD FILE" command in HIVE, the loading fail with exception like "java.lang.UnsatisfiedLinkError:C:\tmp\admin2_6996@headnode0_201401100431_resources\hello.dll: Access is denied".
      The reason is when FileSystem creating local copy of the file, the permission of local file is set to default as "666". DLL file need "execute" permission to be loaded successfully.
      Similar scenario also happens when Hadoop localize files in distributed cache. The solution in Hadoop is to add "execute" permission to the file after localizationl.

        Attachments

        1. HIVE-6200.1.patch
          1 kB
          Shuaishuai Nie
        2. HIVE-6200.2.patch
          0.9 kB
          Shuaishuai Nie
        3. HIVE-6200.3.patch
          1 kB
          Shuaishuai Nie

          Activity

            People

            • Assignee:
              shuainie Shuaishuai Nie
              Reporter:
              shuainie Shuaishuai Nie
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: