[ 
https://issues.apache.org/jira/browse/HDFS-13?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14715329#comment-14715329
 ] 

Mayurkumar Patel commented on HDFS-13:
--------------------------------------

Not sure weather this is issue only with colons, because I was trying this 
command "hadoop jar hadoop-streaming.jar -file 
"/user/gpadmin/TestData/WordCountApp/WorldCountMapper.exe, 
/user/gpadmin/TestData/WordCountApp/ConsoleApplication1.exe" -input 
"/user/gpadmin/TestData/WordCountInput/action.txt" -output 
"/user/gpadmin/TestData/WordCountOutput" -mapper "WorldCountMapper.exe" 
-reducer "ConsoleApplication1.exe"" .. Path doesn't contain any colon still 
getting the same error message. 



> filenames with ':' colon throws java.lang.IllegalArgumentException
> ------------------------------------------------------------------
>
>                 Key: HDFS-13
>                 URL: https://issues.apache.org/jira/browse/HDFS-13
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Lohit Vijayarenu
>         Attachments: 2066_20071022.patch, HADOOP-2066.patch
>
>
> File names containing colon ":" throws  java.lang.IllegalArgumentException 
> while LINUX file system supports it.
> $ hadoop dfs -put ./testfile-2007-09-24-03:00:00.gz filenametest
> Exception in thread "main" java.lang.IllegalArgumentException: 
> java.net.URISyntaxException: Relative path in absolute
> URI: testfile-2007-09-24-03:00:00.gz
>       at org.apache.hadoop.fs.Path.initialize(Path.java:140)
>       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.FileUtil.checkDest(FileUtil.java:273)
>       at org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:117)
>       at 
> org.apache.hadoop.fs.FileSystem.copyFromLocalFile(FileSystem.java:776)
>       at 
> org.apache.hadoop.fs.FileSystem.copyFromLocalFile(FileSystem.java:757)
>       at org.apache.hadoop.fs.FsShell.copyFromLocal(FsShell.java:116)
>       at org.apache.hadoop.fs.FsShell.run(FsShell.java:1229)
>       at org.apache.hadoop.util.ToolBase.doMain(ToolBase.java:187)
>       at org.apache.hadoop.fs.FsShell.main(FsShell.java:1342)
> Caused by: java.net.URISyntaxException: Relative path in absolute URI: 
> testfile-2007-09-24-03:00:00.gz
>       at java.net.URI.checkPath(URI.java:1787)
>       at java.net.URI.<init>(URI.java:735)
>       at org.apache.hadoop.fs.Path.initialize(Path.java:137)
>       ... 10 more
> Path(String pathString) when given a filename which contains ':' treats it as 
> URI and selects anything before ':' as
> scheme, which in this case is clearly not a valid scheme.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to