PIG-4860: Loading data using OrcStorage() accepts only default FileSystem path (beriaanirudh via rohini)

git-svn-id: https://svn.apache.org/repos/asf/pig/branches/branch-0.15@1739794 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/CHANGES.txt b/CHANGES.txt
index 57c4f66..b602e26 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -28,6 +28,8 @@
 
 BUG FIXES
 
+PIG-4860: Loading data using OrcStorage() accepts only default FileSystem path (beriaanirudh via rohini)
+
 PIG-4867: -stop_on_failure does not work with Tez (rohini)
 
 PIG-4851: Null not padded when input has less fields than declared schema for some loader (rohini)
diff --git a/src/org/apache/pig/builtin/OrcStorage.java b/src/org/apache/pig/builtin/OrcStorage.java
index d3ac553..a303056 100644
--- a/src/org/apache/pig/builtin/OrcStorage.java
+++ b/src/org/apache/pig/builtin/OrcStorage.java
@@ -455,7 +455,7 @@
     }
 
     private TypeInfo getTypeInfoFromLocation(String location, Job job) throws IOException {
-        FileSystem fs = FileSystem.get(job.getConfiguration());
+        FileSystem fs = FileSystem.get(new Path(location).toUri(), job.getConfiguration());
         Path path = getFirstFile(location, fs);
         if (path == null) {
             log.info("Cannot find any ORC files from " + location +