[ https://issues.apache.org/jira/browse/HIVE-7116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14006790#comment-14006790 ]
Swarnim Kulkarni commented on HIVE-7116: ---------------------------------------- Should the fs.close() be in a finally so that an exception during mkdirs doesn't still cause a resource leak? We might as well use IOUtils.closeQuietly if we do unnecessarily want the fs.close() exception to propagate up the stack. > HDFS FileSystem object cache causes permission issues in creating tmp > directories > --------------------------------------------------------------------------------- > > Key: HIVE-7116 > URL: https://issues.apache.org/jira/browse/HIVE-7116 > Project: Hive > Issue Type: Bug > Components: HiveServer2, Tez > Affects Versions: 0.13.0 > Reporter: Vikram Dixit K > Assignee: Vikram Dixit K > Attachments: HIVE-7116.1.patch, HIVE-7116.2.patch > > > We change permissions of the directory creation to 777 for HiveServer 2 > operation and it turns out that because of HDFS caching, it does not reflect > once created. We need to use the non-cached version of the API to get a > FileSystem object to fix this. -- This message was sent by Atlassian JIRA (v6.2#6252)