[ 
https://issues.apache.org/jira/browse/OOZIE-2613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15551869#comment-15551869
 ] 

Abhishek Bafna commented on OOZIE-2613:
---------------------------------------

The directory structure for the partitions are created in the 
{{MiniHCatServer#createPartitionDir}} method. I replaced the code with below 
but it is still giving the same error.

{code}
    public String createPartitionDir(String db, String table, String 
partitionSpec, String dbLocation) throws Exception {
        FileSystem.get(hadoopConf).mkdirs(new Path(dbLocation), 
FsPermission.valueOf("-rwxrwxrwx"));
        FileSystem.get(hadoopConf).setOwner(new Path(dbLocation), "test", 
"test");
        String dir = getPartitionDir(db, table, partitionSpec, dbLocation);
        FileSystem.get(hadoopConf).mkdirs(new Path(dir), 
FsPermission.valueOf("-rwxrwxrwx"));
        FileSystem.get(hadoopConf).setOwner(new Path(dir), "test", "test");
        return dir;
    }
{code}

> Upgrade hive version from 0.13.1 to 1.2.0
> -----------------------------------------
>
>                 Key: OOZIE-2613
>                 URL: https://issues.apache.org/jira/browse/OOZIE-2613
>             Project: Oozie
>          Issue Type: Bug
>          Components: core
>            Reporter: Abhishek Bafna
>            Assignee: Abhishek Bafna
>            Priority: Blocker
>             Fix For: 4.3.0
>
>         Attachments: OOZIE-2613-00.patch, OOZIE-2613-01.patch, 
> OOZIE-2613-02.patch, OOZIE-2613-03.patch, OOZIE-2613-05.patch, 
> OOZIE-2613-06.patch, OOZIE-2613-07.patch, OOZIE-2613-08.patch, 
> OOZIE-2613-09.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to