[
https://issues.apache.org/jira/browse/HIVE-5486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13797650#comment-13797650
]
Prasad Mujumdar commented on HIVE-5486:
---------------------------------------
[~thejas] If /tmp/scratchdir exists with permissions for all users, the things
work fine.
Otherwise the first session will create /tmp/scratchdir and its own sessions
specific sub-directory under that. In this case the /tmp/scratchdir itself is
owned by the first user and created with default permissions (typically 755).
Then the subsequent sessions can't write to /tmp/scratchdir
> HiveServer2 should create base scratch directories at startup
> -------------------------------------------------------------
>
> Key: HIVE-5486
> URL: https://issues.apache.org/jira/browse/HIVE-5486
> Project: Hive
> Issue Type: Bug
> Components: HiveServer2
> Affects Versions: 0.11.0, 0.12.0
> Reporter: Prasad Mujumdar
> Assignee: Prasad Mujumdar
> Attachments: HIVE-5486.2.patch, HIVE-5486.3.patch
>
>
> With impersonation enabled, the same base directory is used by all
> sessions/queries. For a new deployment, this directory gets created on first
> invocation by the user running that session. This would cause directory
> permission conflict for other users.
> HiveServer2 should create the base scratch dirs if it doesn't exist.
--
This message was sent by Atlassian JIRA
(v6.1#6144)