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

Mohit Sabharwal commented on HIVE-14614:
----------------------------------------

Nit: I'd just define a new HADOOP_LOCAL_FS_SCHEME and do
{code}
+        isLocal = path.toUri().getScheme().equals(HADOOP_LOCAL_FS_SCHEME);
{code}
for readability.

Otherwise LGTM pending tests. [~spena] should take a look since he worked on 
HIVE-14270. 

> Insert overwrite local directory fails with IllegalStateException
> -----------------------------------------------------------------
>
>                 Key: HIVE-14614
>                 URL: https://issues.apache.org/jira/browse/HIVE-14614
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Vihang Karajgaonkar
>            Assignee: Vihang Karajgaonkar
>            Priority: Minor
>         Attachments: HIVE-14614.2.patch
>
>
> insert overwrite local directory .... select * from table; fails with 
> "java.lang.IllegalStateException: Cannot create staging directory" when the 
> path sent to the getTempDirForPath(Path path)  is a local fs path.
> This is a regression caused by the fix for HIVE-14270



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

Reply via email to