Aihua Xu created HIVE-24742:
-------------------------------

             Summary: Support router path or view fs path in Hive table location
                 Key: HIVE-24742
                 URL: https://issues.apache.org/jira/browse/HIVE-24742
             Project: Hive
          Issue Type: Improvement
          Components: Hive
    Affects Versions: 3.1.2
            Reporter: Aihua Xu
            Assignee: Aihua Xu


In 
[FileUtils.java|https://github.com/apache/hive/blob/master/common/src/java/org/apache/hadoop/hive/common/FileUtils.java#L747],
 equalsFileSystem function checks the base URL to determine if source and 
destination are on the same cluster and decides copy or move the data. That 
will not work for viewfs or router base file system since viewfs://ns-default/a 
and viewfs://ns-default/b may be on different physical clusters.

FileSystem in HDFS supports resolvePath() function to resolve to the physical 
path. We can support viewfs and router through such function.





--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to