[
https://issues.apache.org/jira/browse/HADOOP-10723?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
jay vyas updated HADOOP-10723:
------------------------------
Description:
In the {{FileSystem.java}} class we've found that if we have an alternative
filesystem (i.e. xyz://) and we enter it without slashes, we get an hdfs
specific error message:
1) This is a conceptual bug because the hadoop-common FileSystem interface
shouldn't have explicit knowledge/dependencies on any particular implementation
and
2) This results in a specific error
{{hadoop fs -fs xyz: -mkdir -p /foo/bar}}
Yields an error message which suggests an hdfs URI.
{noformat}
# hadoop fs -fs xyzfs: -mkdir -p /foo/bar
14/06/12 17:57:24 WARN fs.FileSystem: "xyz:" is a deprecated filesystem name.
Use "hdfs://xyz:/" instead.
{noformat}
Would be better if the error message threw an Exception (as suggested in the
comments) and was something that didnt hardcode the hdfs uri to the beggining,
as its very confusing when running on any alternative filesystem.
was:
We've found that if we have an alternative filesystem (i.e. xyz://) and we
enter it without slashes, we get an hdfs specific error message:
{{hadoop fs -fs xyz: -mkdir -p /foo/bar}}
Yields an error message which suggests an hdfs URI.
{noformat}
# hadoop fs -fs xyzfs: -mkdir -p /foo/bar
14/06/12 17:57:24 WARN fs.FileSystem: "xyz:" is a deprecated filesystem name.
Use "hdfs://xyz:/" instead.
{noformat}
Would be better if the error message threw an Exception (as suggested in the
comments) and was something that didnt hardcode the hdfs uri to the beggining,
as its very confusing when running on any alternative filesystem.
> FileSystem deprecated filesystem name warning : Make error message HCFS
> compliant
> ---------------------------------------------------------------------------------
>
> Key: HADOOP-10723
> URL: https://issues.apache.org/jira/browse/HADOOP-10723
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs
> Reporter: jay vyas
>
> In the {{FileSystem.java}} class we've found that if we have an alternative
> filesystem (i.e. xyz://) and we enter it without slashes, we get an hdfs
> specific error message:
> 1) This is a conceptual bug because the hadoop-common FileSystem interface
> shouldn't have explicit knowledge/dependencies on any particular
> implementation and
> 2) This results in a specific error
> {{hadoop fs -fs xyz: -mkdir -p /foo/bar}}
> Yields an error message which suggests an hdfs URI.
> {noformat}
> # hadoop fs -fs xyzfs: -mkdir -p /foo/bar
> 14/06/12 17:57:24 WARN fs.FileSystem: "xyz:" is a deprecated filesystem name.
> Use "hdfs://xyz:/" instead.
> {noformat}
> Would be better if the error message threw an Exception (as suggested in the
> comments) and was something that didnt hardcode the hdfs uri to the
> beggining, as its very confusing when running on any alternative filesystem.
--
This message was sent by Atlassian JIRA
(v6.2#6252)