HIVE-3702 Renaming table changes table location scheme/authority

Applying patch from
https://issues.apache.org/jira/secure/attachment/12555416/HIVE-3702.2.patch.txt