java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: testfile-2007-09-24-03:00:00.gz

hadoop-hdfs-dev | Harsh J (Resolved) (JIRA) | 5 years ago
  1. 0

    [HDFS-13] filenames with ':' colon throws java.lang.IllegalArgumentException - ASF JIRA

    apache.org | 11 months ago
    java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: testfile-2007-09-24-03:00:00.gz
  2. 0

    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.

    Apache's JIRA Issue Tracker | 9 years ago | Lohit Vijayarenu
    java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: testfile-2007-09-24-03:00:00.gz
  3. 0

    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.

    Apache's JIRA Issue Tracker | 9 years ago | Lohit Vijayarenu
    java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: testfile-2007-09-24-03:00:00.gz
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [HDFS-13] filenames with ':' colon throws java.lang.IllegalArgumentException - ASF JIRA

    apache.org | 3 months ago
    java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: testfile-2007-09-24-03:00:00.gz
  6. 0

    [jira] [Resolved] (HDFS-13) filenames with ':' colon throws java.lang.IllegalArgumentException

    hadoop-hdfs-dev | 5 years ago | Harsh J (Resolved) (JIRA)
    java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: testfile-2007-09-24-03:00:00.gz

  1. tfr 1 times, last 6 months ago
  2. muffinmannen 1 times, last 8 months ago
36 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.URISyntaxException

    Relative path in absolute URI: testfile-2007-09-24-03:00:00.gz

    at java.net.URI.checkPath()
  2. Java RT
    URI.<init>
    1. java.net.URI.checkPath(URI.java:1787)
    2. java.net.URI.<init>(URI.java:735)
    2 frames
  3. Hadoop
    FsShell.main
    1. org.apache.hadoop.fs.Path.initialize(Path.java:137)
    2. org.apache.hadoop.fs.Path.<init>(Path.java:126)
    3. org.apache.hadoop.fs.Path.<init>(Path.java:50)
    4. org.apache.hadoop.fs.FileUtil.checkDest(FileUtil.java:273)
    5. org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:117)
    6. org.apache.hadoop.fs.FileSystem.copyFromLocalFile(FileSystem.java:776)
    7. org.apache.hadoop.fs.FileSystem.copyFromLocalFile(FileSystem.java:757)
    8. org.apache.hadoop.fs.FsShell.copyFromLocal(FsShell.java:116)
    9. org.apache.hadoop.fs.FsShell.run(FsShell.java:1229)
    10. org.apache.hadoop.util.ToolBase.doMain(ToolBase.java:187)
    11. org.apache.hadoop.fs.FsShell.main(FsShell.java:1342)
    11 frames