Reputation: 599
I am facing an issue as below. My input folder contains a file named : /xyz/pqr/job_ip/output_upto_Thu_Apr_23_14:53:05_2015.log
When I am starting my hadoop job my job is not able to read the input
If i change the name of the file say
mv /xyz/pqr/job_ip/output_upto_Thu_Apr_23_14:53:05_2015.log /xyz/pqr/job_ip/output_upto_Thu_Apr_23_145305_2015.log
Then my job runs fine...
The exception I am getting when I am keeping my file name as output_upto_Thu_Apr_23_14:53:05_2015.log is :
Caused by: java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: output_upto_Thu_Apr_23_14:53:05_2015.log
at org.apache.hadoop.fs.Path.initialize(Path.java:148)
at org.apache.hadoop.fs.Path.<init>(Path.java:126)
at org.apache.hadoop.fs.Path.<init>(Path.java:50)
at org.apache.hadoop.fs.RawLocalFileSystem.listStatus(RawLocalFileSystem.java:329)
...
..
Caused by: java.net.URISyntaxException: Relative path in absolute URI:output_upto_Thu_Apr_23_14:53:05_2015.log
at java.net.URI.checkPath(URI.java:1804)
at java.net.URI.<init>(URI.java:752)
at org.apache.hadoop.fs.Path.initialize(Path.java:145)
....
..
.
Can some one address as to what is the issue with the file name..
Upvotes: 0
Views: 244
Reputation: 361
As the error explicitly tells you, your path is invalid since it contains the symbol :
, used to separate individual file paths in a list of file paths.
Upvotes: 1