warriersruthi opened a new pull request, #3909:
URL: https://github.com/apache/hive/pull/3909

   ###What changes were proposed in this pull request?
   moveAcidFiles() method in Hive.java is modified to cater to the case where 
the src FS and dest FS are different. Instead of rename() operation, in the 
above case, we need to do copy().
   
   ###Why are the changes needed?
   With the Jira: HIVE-26815, we can change the hive staging directory to be 
the same as that of scratchdir. In that case, staging files will be in HDFS 
while the target location would be blob or some other FS. In such scenarios, 
while creating and updating ACID tables, the final rename operation was not 
working fine (throws Wrong FS error) since the src and dest FS are different. 
This is fixed in this patch by changing the rename() operation to copy() if FS 
are in different encryption zones.
   
   ###Does this PR introduce any user-facing change?
   Nope.
   
   ###How was this patch tested?
   Tested with patch on hive 3.1.2


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org
For additional commands, e-mail: gitbox-h...@hive.apache.org

Reply via email to