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

Joydeep Sen Sarma commented on HIVE-1852:
-----------------------------------------

regarding wildcards - load data inpath /x/*.txt - does that work? the copy task 
should not happen if the source and destination file systems are the same (in 
the load command). i think u may have observed the copy command kick in because 
in the hive unit test environment - the default file system is pfile:// and 
local file system is not same as pfile:// (from a java class standpoint). so 
copytask kicks in. you might want to try a load command without the 'local' 
keyword.

also - regarding the question about filesystem.delete versus fsshell - testing 
should be easy because we have two working file systems in our test environment 
(file:// and pfile://). we can create a partition pointing to one filesystem 
and then try to change it's location to the other filesystem and make sure 
things work.  

> Reduce unnecessary DFSClient.rename() calls
> -------------------------------------------
>
>                 Key: HIVE-1852
>                 URL: https://issues.apache.org/jira/browse/HIVE-1852
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Ning Zhang
>            Assignee: Ning Zhang
>         Attachments: HIVE-1852.2.patch, HIVE-1852.3.patch, HIVE-1852.patch
>
>
> In Hive client side (MoveTask etc), DFSCleint.rename() is called for every 
> file inside a directory. It is very expensive for a large directory in a busy 
> DFS namenode. We should replace it with a single rename() call on the whole 
> directory. 

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

Reply via email to