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
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

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

    apache.org | 1 year 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

    [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
  6. 0

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

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

  1. rsprangemeijer 1 times, last 5 days ago
  2. iferca 4 times, last 3 weeks ago
  3. raytest 1 times, last 2 months ago
  4. Hronom 2 times, last 2 months ago
  5. richard77 4 times, last 3 months ago
2 more registered users
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