You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Suhas Satish (JIRA)" <ji...@apache.org> on 2014/01/17 00:31:20 UTC
[jira] [Created] (PIG-3672) pig should not hardcode "hdfs://" path
in code, should be configurable to other file system implementations
Suhas Satish created PIG-3672:
---------------------------------
Summary: pig should not hardcode "hdfs://" path in code, should be configurable to other file system implementations
Key: PIG-3672
URL: https://issues.apache.org/jira/browse/PIG-3672
Project: Pig
Issue Type: Bug
Components: data, parser
Affects Versions: 0.11.1, 0.12.0, 0.10.0
Reporter: Suhas Satish
Assignee: Suhas Satish
QueryParserUtils.java has the code -
result.add("hdfs://"+thisHost+":"+uri.getPort());
I propose to make it generic like -
result.add(uri.getScheme() + "://"+thisHost+":"+uri.getPort());
Similarly jobControlCompiler.java has -
if (!outputPathString.contains("://") || outputPathString.startsWith("hdfs://")) {
I have a patch version which I ran passing unit tests on. Will be uploading it shortly.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)