[ https://issues.apache.org/jira/browse/HIVE-5486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13796373#comment-13796373 ]
Prasad Mujumdar commented on HIVE-5486: --------------------------------------- [~thiruvel] IMO The sticky bit is not necessary for the top level directory. Each session will create its own sub directory under it. The permissions of session specific directory is controlled by hive.scratch.dir.permission. > 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)