FAQ
If local file included a '%' character in a file name, we can't copy to dfs becuase RawLocalFileSystem.getPath() returns urlencoded '%25'
-----------------------------------------------------------------------------------------------------------------------------------------

Key: HADOOP-2635
URL: https://issues.apache.org/jira/browse/HADOOP-2635
Project: Hadoop
Issue Type: Bug
Components: fs
Affects Versions: 0.16.0
Reporter: Edward Yoon
Assignee: Edward Yoon
Fix For: 0.16.0


{code}
FileStatus fileStatus = new RawLocalFileStatus(new File("udanax/Ageha100%.html"), getDefaultBlockSize());
LOG.info(fileStatus.getPath());
{code}

Log :
file:/root/workspace/hadoop/udanax/Ageha100%25.html

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Search Discussions

  • Edward Yoon (JIRA) at Jan 17, 2008 at 7:04 am
    [ https://issues.apache.org/jira/browse/HADOOP-2635?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12559837#action_12559837 ]

    Edward Yoon commented on HADOOP-2635:
    -------------------------------------

    toURI() method was used for running different operating systems (i'm not sure) at RawLocalFileStatus.
    But, toString() method was used.

    Therefore,
    I'll change the f.toURI().toString() to "file:" + f.getPath().

    If you have other idea, please let me know.




    If local file included a '%' character in a file name, we can't copy to dfs becuase RawLocalFileSystem.getPath() returns urlencoded '%25'
    -----------------------------------------------------------------------------------------------------------------------------------------

    Key: HADOOP-2635
    URL: https://issues.apache.org/jira/browse/HADOOP-2635
    Project: Hadoop
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.16.0
    Reporter: Edward Yoon
    Assignee: Edward Yoon
    Fix For: 0.16.0


    {code}
    FileStatus fileStatus = new RawLocalFileStatus(new File("udanax/Ageha100%.html"), getDefaultBlockSize());
    LOG.info(fileStatus.getPath());
    {code}
    Log :
    file:/root/workspace/hadoop/udanax/Ageha100%25.html
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Edward Yoon (JIRA) at Jan 17, 2008 at 7:28 am
    [ https://issues.apache.org/jira/browse/HADOOP-2635?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Edward Yoon updated HADOOP-2635:
    --------------------------------

    Attachment: 2635.patch

    Here's a patch.
    If local file included a '%' character in a file name, we can't copy to dfs becuase RawLocalFileSystem.getPath() returns urlencoded '%25'
    -----------------------------------------------------------------------------------------------------------------------------------------

    Key: HADOOP-2635
    URL: https://issues.apache.org/jira/browse/HADOOP-2635
    Project: Hadoop
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.16.0
    Reporter: Edward Yoon
    Assignee: Edward Yoon
    Fix For: 0.16.0

    Attachments: 2635.patch


    {code}
    FileStatus fileStatus = new RawLocalFileStatus(new File("udanax/Ageha100%.html"), getDefaultBlockSize());
    LOG.info(fileStatus.getPath());
    {code}
    Log :
    file:/root/workspace/hadoop/udanax/Ageha100%25.html
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Edward Yoon (JIRA) at Jan 17, 2008 at 7:32 am
    [ https://issues.apache.org/jira/browse/HADOOP-2635?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Edward Yoon updated HADOOP-2635:
    --------------------------------

    Status: Patch Available (was: Open)

    Submitting.
    If local file included a '%' character in a file name, we can't copy to dfs becuase RawLocalFileSystem.getPath() returns urlencoded '%25'
    -----------------------------------------------------------------------------------------------------------------------------------------

    Key: HADOOP-2635
    URL: https://issues.apache.org/jira/browse/HADOOP-2635
    Project: Hadoop
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.16.0
    Reporter: Edward Yoon
    Assignee: Edward Yoon
    Fix For: 0.16.0

    Attachments: 2635.patch


    {code}
    FileStatus fileStatus = new RawLocalFileStatus(new File("udanax/Ageha100%.html"), getDefaultBlockSize());
    LOG.info(fileStatus.getPath());
    {code}
    Log :
    file:/root/workspace/hadoop/udanax/Ageha100%25.html
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Edward Yoon (JIRA) at Jan 17, 2008 at 10:08 am
    [ https://issues.apache.org/jira/browse/HADOOP-2635?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Edward Yoon updated HADOOP-2635:
    --------------------------------

    Status: Open (was: Patch Available)

    Oh. It's a duplicated issue with HADOOP-2626

    If local file included a '%' character in a file name, we can't copy to dfs becuase RawLocalFileSystem.getPath() returns urlencoded '%25'
    -----------------------------------------------------------------------------------------------------------------------------------------

    Key: HADOOP-2635
    URL: https://issues.apache.org/jira/browse/HADOOP-2635
    Project: Hadoop
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.16.0
    Reporter: Edward Yoon
    Assignee: Edward Yoon
    Fix For: 0.16.0

    Attachments: 2635.patch


    {code}
    FileStatus fileStatus = new RawLocalFileStatus(new File("udanax/Ageha100%.html"), getDefaultBlockSize());
    LOG.info(fileStatus.getPath());
    {code}
    Log :
    file:/root/workspace/hadoop/udanax/Ageha100%25.html
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Edward Yoon (JIRA) at Jan 17, 2008 at 10:21 am
    [ https://issues.apache.org/jira/browse/HADOOP-2635?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Edward Yoon resolved HADOOP-2635.
    ---------------------------------

    Resolution: Duplicate

    Resolving becuase it's a duplicated issu.
    If local file included a '%' character in a file name, we can't copy to dfs becuase RawLocalFileSystem.getPath() returns urlencoded '%25'
    -----------------------------------------------------------------------------------------------------------------------------------------

    Key: HADOOP-2635
    URL: https://issues.apache.org/jira/browse/HADOOP-2635
    Project: Hadoop
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.16.0
    Reporter: Edward Yoon
    Assignee: Edward Yoon
    Fix For: 0.16.0

    Attachments: 2635.patch


    {code}
    FileStatus fileStatus = new RawLocalFileStatus(new File("udanax/Ageha100%.html"), getDefaultBlockSize());
    LOG.info(fileStatus.getPath());
    {code}
    Log :
    file:/root/workspace/hadoop/udanax/Ageha100%25.html
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommon-dev @
categorieshadoop
postedJan 17, '08 at 5:10a
activeJan 17, '08 at 10:21a
posts6
users1
websitehadoop.apache.org...
irc#hadoop

1 user in discussion

Edward Yoon (JIRA): 6 posts

People

Translate

site design / logo © 2022 Grokbase