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

Vihang Karajgaonkar commented on HIVE-14614:
--------------------------------------------

I looked into the implementation of Path. It is possible that the scheme can be 
null if you create a path without giving it a scheme eg new Path("/tmp/hive"). 
So I think we should have a null check for scheme as well. Updated the patch, 
adding suggestions from [~spena] and [~mohitsabharwal]. Thanks for the review.

> 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