Ganesha Shreedhara created HADOOP-19577:
-------------------------------------------
Summary: Improve error message when the path contains double slash
without a preceding authority or bucket name
Key: HADOOP-19577
URL: https://issues.apache.org/jira/browse/HADOOP-19577
Project: Hadoop Common
Issue Type: Bug
Reporter: Ganesha Shreedhara
Currently, we display the following error message when a path contains a double
slash without a preceding authority or bucket name.
{code:java}
java.lang.IllegalArgumentException: Wrong FS: s3://test_file.json.gz, expected:
s3://test_bucket/ at
org.apache.hadoop.fs.FileSystem.checkPath(FileSystem.java:824) at
org.apache.hadoop.fs.FileSystem.makeQualified(FileSystem.java:683){code}
The path used in the above case is s3://test_bucket{*}//{*}test_file.json.gz.
It is expected that Hadoop will treat the path name preceding the double slash
(//) as a bucket or authority because, according to HADOOP-8087, a relative
reference that begins with two slash characters is termed a network-path
reference.
Created this Jira to evaluate printing the full path in the error message or to
revise the error message when the path contains a double slash without a
preceding authority or bucket name for easier debugging.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]