hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashutosh Chauhan (JIRA)" <>
Subject [jira] [Updated] (HIVE-6200) Hive custom SerDe cannot load DLL added by "ADD FILE" command
Date Mon, 24 Mar 2014 21:22:43 GMT


Ashutosh Chauhan updated HIVE-6200:

    Status: Open  (was: Patch Available)

Changing of permissions should be moved in downloadResource() method, such that we change
permissions only when files are downloaded. Because, int that case we are guaranteed to successfully
complete chmod operation. Otherwise, we may try to change permissions of local files (which
may not be allowed since we may not own them).

Also, patch needs a rebase.

> Hive custom SerDe cannot load DLL added by "ADD FILE" command
> -------------------------------------------------------------
>                 Key: HIVE-6200
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Shuaishuai Nie
>            Assignee: Shuaishuai Nie
>         Attachments: HIVE-6200.1.patch
> 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.

This message was sent by Atlassian JIRA

View raw message