[
https://issues.apache.org/jira/browse/PIG-4860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15245236#comment-15245236
]
Anirudh Beria commented on PIG-4860:
------------------------------------
Thanks for the suggestion Rohini. Changed to {{FileSystem fs =
FileSystem.get(new Path(location).toUri(), job.getConfiguration());}} taking
clue from
https://github.com/apache/pig/blob/trunk/src/org/apache/pig/builtin/JsonMetadata.java#L295
. This has reduced the patch to a minimum. Attached it.
Did the same test as commented above, and got same correct results.
> Loading data using OrcStorage() accepts only default FileSystem path
> --------------------------------------------------------------------
>
> Key: PIG-4860
> URL: https://issues.apache.org/jira/browse/PIG-4860
> Project: Pig
> Issue Type: Bug
> Reporter: Anirudh Beria
> Assignee: Anirudh Beria
> Attachments: PIG-4860.patch, PIG-4860_2.patch
>
>
> If the default file system is HDFS, but one wants to load data from S3 (or
> some other storage) using OrcStorage(), the query fails since the path
> expected is of format `hdfs://` but gets `s3://`
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)