You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Min Zhou (JIRA)" <ji...@apache.org> on 2009/03/04 13:17:58 UTC

[jira] Created: (HIVE-324) AccessControlException when load data into table

AccessControlException when load data into table
------------------------------------------------

                 Key: HIVE-324
                 URL: https://issues.apache.org/jira/browse/HIVE-324
             Project: Hadoop Hive
          Issue Type: Bug
          Components: Metastore
    Affects Versions: 0.3.0
            Reporter: Min Zhou
            Priority: Critical


when loading data in non-supergroup user of hadoop,  hadoop will throw a AccessControlException bacuase Hive try to do write operation at  /tmp directory.
This is obviously not allowed.

see line 752 in Hive.java

Path tmppath = new Path("/tmp/"+randGen.nextInt());
      try {
          fs.mkdirs(tmppath);
      ...
    }

those lines will cause that exception. 


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-324) AccessControlException when load data into table

Posted by "Johan Oskarsson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696143#action_12696143 ] 

Johan Oskarsson commented on HIVE-324:
--------------------------------------

Is this issue considered a blocker for 0.3.0? Perhaps it can go into 0.3.1?

> AccessControlException when load data into table
> ------------------------------------------------
>
>                 Key: HIVE-324
>                 URL: https://issues.apache.org/jira/browse/HIVE-324
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.3.0
>            Reporter: Min Zhou
>            Assignee: Min Zhou
>            Priority: Blocker
>             Fix For: 0.3.0
>
>         Attachments: hive.patch
>
>
> when loading data in non-supergroup user of hadoop,  hadoop will throw a AccessControlException bacuase Hive try to do write operation at  /tmp directory.
> This is obviously not allowed.
> see line 752 in Hive.java
> Path tmppath = new Path("/tmp/"+randGen.nextInt());
>       try {
>           fs.mkdirs(tmppath);
>       ...
>     }
> those lines will cause that exception. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-324) AccessControlException when load data into table

Posted by "Ashish Thusoo (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ashish Thusoo updated HIVE-324:
-------------------------------

    Attachment: patch-324_2.txt

Fixed issues raised by Zheng.


> AccessControlException when load data into table
> ------------------------------------------------
>
>                 Key: HIVE-324
>                 URL: https://issues.apache.org/jira/browse/HIVE-324
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.3.0
>            Reporter: Min Zhou
>            Assignee: Min Zhou
>            Priority: Blocker
>             Fix For: 0.3.0
>
>         Attachments: hive.patch, patch-324.txt, patch-324_2.txt
>
>
> when loading data in non-supergroup user of hadoop,  hadoop will throw a AccessControlException bacuase Hive try to do write operation at  /tmp directory.
> This is obviously not allowed.
> see line 752 in Hive.java
> Path tmppath = new Path("/tmp/"+randGen.nextInt());
>       try {
>           fs.mkdirs(tmppath);
>       ...
>     }
> those lines will cause that exception. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-324) AccessControlException when load data into table

Posted by "Zheng Shao (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zheng Shao updated HIVE-324:
----------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 0.3.0)
                   0.4.0
                   0.3.1
     Release Note: HIVE-324. Fix AccessControlException when loading data. (Ashish Thusoo via zshao)
     Hadoop Flags: [Reviewed]
           Status: Resolved  (was: Patch Available)

Thanks Ashish!

> AccessControlException when load data into table
> ------------------------------------------------
>
>                 Key: HIVE-324
>                 URL: https://issues.apache.org/jira/browse/HIVE-324
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.3.0
>            Reporter: Min Zhou
>            Assignee: Min Zhou
>            Priority: Blocker
>             Fix For: 0.3.1, 0.4.0
>
>         Attachments: hive.patch, patch-324.txt, patch-324_2.txt
>
>
> when loading data in non-supergroup user of hadoop,  hadoop will throw a AccessControlException bacuase Hive try to do write operation at  /tmp directory.
> This is obviously not allowed.
> see line 752 in Hive.java
> Path tmppath = new Path("/tmp/"+randGen.nextInt());
>       try {
>           fs.mkdirs(tmppath);
>       ...
>     }
> those lines will cause that exception. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (HIVE-324) AccessControlException when load data into table

Posted by "Ashish Thusoo (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ashish Thusoo reassigned HIVE-324:
----------------------------------

    Assignee: Min Zhou

Assigning.

> AccessControlException when load data into table
> ------------------------------------------------
>
>                 Key: HIVE-324
>                 URL: https://issues.apache.org/jira/browse/HIVE-324
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.3.0
>            Reporter: Min Zhou
>            Assignee: Min Zhou
>            Priority: Critical
>             Fix For: 0.3.0
>
>         Attachments: hive.patch
>
>
> when loading data in non-supergroup user of hadoop,  hadoop will throw a AccessControlException bacuase Hive try to do write operation at  /tmp directory.
> This is obviously not allowed.
> see line 752 in Hive.java
> Path tmppath = new Path("/tmp/"+randGen.nextInt());
>       try {
>           fs.mkdirs(tmppath);
>       ...
>     }
> those lines will cause that exception. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-324) AccessControlException when load data into table

Posted by "Min Zhou (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Min Zhou updated HIVE-324:
--------------------------

    Attachment: hive.patch

Since it's a temporary path will remove  in the end of that function, we can use a relatively path.  

> AccessControlException when load data into table
> ------------------------------------------------
>
>                 Key: HIVE-324
>                 URL: https://issues.apache.org/jira/browse/HIVE-324
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.3.0
>            Reporter: Min Zhou
>            Priority: Critical
>         Attachments: hive.patch
>
>
> when loading data in non-supergroup user of hadoop,  hadoop will throw a AccessControlException bacuase Hive try to do write operation at  /tmp directory.
> This is obviously not allowed.
> see line 752 in Hive.java
> Path tmppath = new Path("/tmp/"+randGen.nextInt());
>       try {
>           fs.mkdirs(tmppath);
>       ...
>     }
> those lines will cause that exception. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-324) AccessControlException when load data into table

Posted by "Zheng Shao (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12702611#action_12702611 ] 

Zheng Shao commented on HIVE-324:
---------------------------------

My bad. Fortunately the conflicts are all in test xml results. I am merging and testing right now, and will commit it once passed.

> AccessControlException when load data into table
> ------------------------------------------------
>
>                 Key: HIVE-324
>                 URL: https://issues.apache.org/jira/browse/HIVE-324
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.3.0
>            Reporter: Min Zhou
>            Assignee: Min Zhou
>            Priority: Blocker
>             Fix For: 0.3.0, 0.4.0
>
>         Attachments: hive.patch, patch-324.txt, patch-324_2.txt
>
>
> when loading data in non-supergroup user of hadoop,  hadoop will throw a AccessControlException bacuase Hive try to do write operation at  /tmp directory.
> This is obviously not allowed.
> see line 752 in Hive.java
> Path tmppath = new Path("/tmp/"+randGen.nextInt());
>       try {
>           fs.mkdirs(tmppath);
>       ...
>     }
> those lines will cause that exception. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-324) AccessControlException when load data into table

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12688873#action_12688873 ] 

Namit Jain commented on HIVE-324:
---------------------------------

look at the function getTmpFileName() in BaseSemanticAnalyzer.java - it creates a dummy file, which is automatically cleared at the end of the query
You should use the same function to generate tmp files

> AccessControlException when load data into table
> ------------------------------------------------
>
>                 Key: HIVE-324
>                 URL: https://issues.apache.org/jira/browse/HIVE-324
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.3.0
>            Reporter: Min Zhou
>            Assignee: Min Zhou
>            Priority: Critical
>             Fix For: 0.3.0
>
>         Attachments: hive.patch
>
>
> when loading data in non-supergroup user of hadoop,  hadoop will throw a AccessControlException bacuase Hive try to do write operation at  /tmp directory.
> This is obviously not allowed.
> see line 752 in Hive.java
> Path tmppath = new Path("/tmp/"+randGen.nextInt());
>       try {
>           fs.mkdirs(tmppath);
>       ...
>     }
> those lines will cause that exception. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-324) AccessControlException when load data into table

Posted by "Ashish Thusoo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696755#action_12696755 ] 

Ashish Thusoo commented on HIVE-324:
------------------------------------

Actually, they are a part of the patch. The plan files have changed as I have pushed the information of the temporary directory into the loadTableDesc. This is used in the move task. We had been hardcoding this in path to /tmp in the code previously.


> AccessControlException when load data into table
> ------------------------------------------------
>
>                 Key: HIVE-324
>                 URL: https://issues.apache.org/jira/browse/HIVE-324
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.3.0
>            Reporter: Min Zhou
>            Assignee: Min Zhou
>            Priority: Blocker
>             Fix For: 0.3.0
>
>         Attachments: hive.patch, patch-324.txt
>
>
> when loading data in non-supergroup user of hadoop,  hadoop will throw a AccessControlException bacuase Hive try to do write operation at  /tmp directory.
> This is obviously not allowed.
> see line 752 in Hive.java
> Path tmppath = new Path("/tmp/"+randGen.nextInt());
>       try {
>           fs.mkdirs(tmppath);
>       ...
>     }
> those lines will cause that exception. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-324) AccessControlException when load data into table

Posted by "Ashish Thusoo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12683214#action_12683214 ] 

Ashish Thusoo commented on HIVE-324:
------------------------------------

I think this should go into the tmp file that is created for the query as that gets automatically cleaned up once the query is done its execution. The correct way would be to augment moveWork to include a tmp directory and then pass it from SemanticAnalyzer by first generating the name there using the getTmpFile() call. You can look at the SemanticAnalyzer.java to see how this happens.

Thanks,
Ashish


> AccessControlException when load data into table
> ------------------------------------------------
>
>                 Key: HIVE-324
>                 URL: https://issues.apache.org/jira/browse/HIVE-324
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.3.0
>            Reporter: Min Zhou
>            Assignee: Min Zhou
>            Priority: Critical
>             Fix For: 0.3.0
>
>         Attachments: hive.patch
>
>
> when loading data in non-supergroup user of hadoop,  hadoop will throw a AccessControlException bacuase Hive try to do write operation at  /tmp directory.
> This is obviously not allowed.
> see line 752 in Hive.java
> Path tmppath = new Path("/tmp/"+randGen.nextInt());
>       try {
>           fs.mkdirs(tmppath);
>       ...
>     }
> those lines will cause that exception. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-324) AccessControlException when load data into table

Posted by "Ashish Thusoo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696217#action_12696217 ] 

Ashish Thusoo commented on HIVE-324:
------------------------------------

Actually I have a fox for this almost ready. If I get it in the next few hours  I think we can get it in before we start the vote.


> AccessControlException when load data into table
> ------------------------------------------------
>
>                 Key: HIVE-324
>                 URL: https://issues.apache.org/jira/browse/HIVE-324
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.3.0
>            Reporter: Min Zhou
>            Assignee: Min Zhou
>            Priority: Blocker
>             Fix For: 0.3.0
>
>         Attachments: hive.patch
>
>
> when loading data in non-supergroup user of hadoop,  hadoop will throw a AccessControlException bacuase Hive try to do write operation at  /tmp directory.
> This is obviously not allowed.
> see line 752 in Hive.java
> Path tmppath = new Path("/tmp/"+randGen.nextInt());
>       try {
>           fs.mkdirs(tmppath);
>       ...
>     }
> those lines will cause that exception. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-324) AccessControlException when load data into table

Posted by "Zheng Shao (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zheng Shao updated HIVE-324:
----------------------------

    Fix Version/s: 0.3.0
           Status: Patch Available  (was: Open)

> AccessControlException when load data into table
> ------------------------------------------------
>
>                 Key: HIVE-324
>                 URL: https://issues.apache.org/jira/browse/HIVE-324
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.3.0
>            Reporter: Min Zhou
>            Priority: Critical
>             Fix For: 0.3.0
>
>         Attachments: hive.patch
>
>
> when loading data in non-supergroup user of hadoop,  hadoop will throw a AccessControlException bacuase Hive try to do write operation at  /tmp directory.
> This is obviously not allowed.
> see line 752 in Hive.java
> Path tmppath = new Path("/tmp/"+randGen.nextInt());
>       try {
>           fs.mkdirs(tmppath);
>       ...
>     }
> those lines will cause that exception. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-324) AccessControlException when load data into table

Posted by "Johan Oskarsson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Johan Oskarsson updated HIVE-324:
---------------------------------

    Priority: Blocker  (was: Critical)

> AccessControlException when load data into table
> ------------------------------------------------
>
>                 Key: HIVE-324
>                 URL: https://issues.apache.org/jira/browse/HIVE-324
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.3.0
>            Reporter: Min Zhou
>            Assignee: Min Zhou
>            Priority: Blocker
>             Fix For: 0.3.0
>
>         Attachments: hive.patch
>
>
> when loading data in non-supergroup user of hadoop,  hadoop will throw a AccessControlException bacuase Hive try to do write operation at  /tmp directory.
> This is obviously not allowed.
> see line 752 in Hive.java
> Path tmppath = new Path("/tmp/"+randGen.nextInt());
>       try {
>           fs.mkdirs(tmppath);
>       ...
>     }
> those lines will cause that exception. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-324) AccessControlException when load data into table

Posted by "Prasad Chakka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12702600#action_12702600 ] 

Prasad Chakka commented on HIVE-324:
------------------------------------

and it doesn't get patched to trunk cleanly...

> AccessControlException when load data into table
> ------------------------------------------------
>
>                 Key: HIVE-324
>                 URL: https://issues.apache.org/jira/browse/HIVE-324
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.3.0
>            Reporter: Min Zhou
>            Assignee: Min Zhou
>            Priority: Blocker
>             Fix For: 0.3.0, 0.4.0
>
>         Attachments: hive.patch, patch-324.txt, patch-324_2.txt
>
>
> when loading data in non-supergroup user of hadoop,  hadoop will throw a AccessControlException bacuase Hive try to do write operation at  /tmp directory.
> This is obviously not allowed.
> see line 752 in Hive.java
> Path tmppath = new Path("/tmp/"+randGen.nextInt());
>       try {
>           fs.mkdirs(tmppath);
>       ...
>     }
> those lines will cause that exception. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-324) AccessControlException when load data into table

Posted by "Johan Oskarsson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696453#action_12696453 ] 

Johan Oskarsson commented on HIVE-324:
--------------------------------------

I assume all of those xml files shouldn't be in the patch?

> AccessControlException when load data into table
> ------------------------------------------------
>
>                 Key: HIVE-324
>                 URL: https://issues.apache.org/jira/browse/HIVE-324
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.3.0
>            Reporter: Min Zhou
>            Assignee: Min Zhou
>            Priority: Blocker
>             Fix For: 0.3.0
>
>         Attachments: hive.patch, patch-324.txt
>
>
> when loading data in non-supergroup user of hadoop,  hadoop will throw a AccessControlException bacuase Hive try to do write operation at  /tmp directory.
> This is obviously not allowed.
> see line 752 in Hive.java
> Path tmppath = new Path("/tmp/"+randGen.nextInt());
>       try {
>           fs.mkdirs(tmppath);
>       ...
>     }
> those lines will cause that exception. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-324) AccessControlException when load data into table

Posted by "Prasad Chakka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12702597#action_12702597 ] 

Prasad Chakka commented on HIVE-324:
------------------------------------

hey.. this didn't get committed to trunk.q

> AccessControlException when load data into table
> ------------------------------------------------
>
>                 Key: HIVE-324
>                 URL: https://issues.apache.org/jira/browse/HIVE-324
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.3.0
>            Reporter: Min Zhou
>            Assignee: Min Zhou
>            Priority: Blocker
>             Fix For: 0.3.0, 0.4.0
>
>         Attachments: hive.patch, patch-324.txt, patch-324_2.txt
>
>
> when loading data in non-supergroup user of hadoop,  hadoop will throw a AccessControlException bacuase Hive try to do write operation at  /tmp directory.
> This is obviously not allowed.
> see line 752 in Hive.java
> Path tmppath = new Path("/tmp/"+randGen.nextInt());
>       try {
>           fs.mkdirs(tmppath);
>       ...
>     }
> those lines will cause that exception. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-324) AccessControlException when load data into table

Posted by "Ashish Thusoo (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ashish Thusoo updated HIVE-324:
-------------------------------

    Attachment: patch-324.txt

Fix that creates the temporary directory in the query scratch area.

> AccessControlException when load data into table
> ------------------------------------------------
>
>                 Key: HIVE-324
>                 URL: https://issues.apache.org/jira/browse/HIVE-324
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.3.0
>            Reporter: Min Zhou
>            Assignee: Min Zhou
>            Priority: Blocker
>             Fix For: 0.3.0
>
>         Attachments: hive.patch, patch-324.txt
>
>
> when loading data in non-supergroup user of hadoop,  hadoop will throw a AccessControlException bacuase Hive try to do write operation at  /tmp directory.
> This is obviously not allowed.
> see line 752 in Hive.java
> Path tmppath = new Path("/tmp/"+randGen.nextInt());
>       try {
>           fs.mkdirs(tmppath);
>       ...
>     }
> those lines will cause that exception. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-324) AccessControlException when load data into table

Posted by "Johan Oskarsson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Johan Oskarsson updated HIVE-324:
---------------------------------

    Fix Version/s:     (was: 0.3.1)
                   0.3.0

> AccessControlException when load data into table
> ------------------------------------------------
>
>                 Key: HIVE-324
>                 URL: https://issues.apache.org/jira/browse/HIVE-324
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.3.0
>            Reporter: Min Zhou
>            Assignee: Min Zhou
>            Priority: Blocker
>             Fix For: 0.3.0, 0.4.0
>
>         Attachments: hive.patch, patch-324.txt, patch-324_2.txt
>
>
> when loading data in non-supergroup user of hadoop,  hadoop will throw a AccessControlException bacuase Hive try to do write operation at  /tmp directory.
> This is obviously not allowed.
> see line 752 in Hive.java
> Path tmppath = new Path("/tmp/"+randGen.nextInt());
>       try {
>           fs.mkdirs(tmppath);
>       ...
>     }
> those lines will cause that exception. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-324) AccessControlException when load data into table

Posted by "Zheng Shao (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12702613#action_12702613 ] 

Zheng Shao commented on HIVE-324:
---------------------------------

Committed to trunk.

> AccessControlException when load data into table
> ------------------------------------------------
>
>                 Key: HIVE-324
>                 URL: https://issues.apache.org/jira/browse/HIVE-324
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.3.0
>            Reporter: Min Zhou
>            Assignee: Min Zhou
>            Priority: Blocker
>             Fix For: 0.3.0, 0.4.0
>
>         Attachments: hive.patch, patch-324.txt, patch-324_2.txt
>
>
> when loading data in non-supergroup user of hadoop,  hadoop will throw a AccessControlException bacuase Hive try to do write operation at  /tmp directory.
> This is obviously not allowed.
> see line 752 in Hive.java
> Path tmppath = new Path("/tmp/"+randGen.nextInt());
>       try {
>           fs.mkdirs(tmppath);
>       ...
>     }
> those lines will cause that exception. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-324) AccessControlException when load data into table

Posted by "Zheng Shao (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696820#action_12696820 ] 

Zheng Shao commented on HIVE-324:
---------------------------------

+1. Will commit soon.

> AccessControlException when load data into table
> ------------------------------------------------
>
>                 Key: HIVE-324
>                 URL: https://issues.apache.org/jira/browse/HIVE-324
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.3.0
>            Reporter: Min Zhou
>            Assignee: Min Zhou
>            Priority: Blocker
>             Fix For: 0.3.0
>
>         Attachments: hive.patch, patch-324.txt, patch-324_2.txt
>
>
> when loading data in non-supergroup user of hadoop,  hadoop will throw a AccessControlException bacuase Hive try to do write operation at  /tmp directory.
> This is obviously not allowed.
> see line 752 in Hive.java
> Path tmppath = new Path("/tmp/"+randGen.nextInt());
>       try {
>           fs.mkdirs(tmppath);
>       ...
>     }
> those lines will cause that exception. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-324) AccessControlException when load data into table

Posted by "Zheng Shao (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696762#action_12696762 ] 

Zheng Shao commented on HIVE-324:
---------------------------------

QTestUtils.java: nitpick: Do you want to extract the repetitive code for loading a table and checking the results into a method?
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java: Please remove: Random randGen = new Random();


> AccessControlException when load data into table
> ------------------------------------------------
>
>                 Key: HIVE-324
>                 URL: https://issues.apache.org/jira/browse/HIVE-324
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.3.0
>            Reporter: Min Zhou
>            Assignee: Min Zhou
>            Priority: Blocker
>             Fix For: 0.3.0
>
>         Attachments: hive.patch, patch-324.txt
>
>
> when loading data in non-supergroup user of hadoop,  hadoop will throw a AccessControlException bacuase Hive try to do write operation at  /tmp directory.
> This is obviously not allowed.
> see line 752 in Hive.java
> Path tmppath = new Path("/tmp/"+randGen.nextInt());
>       try {
>           fs.mkdirs(tmppath);
>       ...
>     }
> those lines will cause that exception. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.