<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: hdfs has two folder with same names in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/hdfs-has-two-folder-with-same-names/m-p/324381#M229348</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/91790"&gt;@clouderaskme&lt;/a&gt;&amp;nbsp;Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.&amp;nbsp; If you are still experiencing the issue, can you provide the information @xxx has requested?&lt;/P&gt;</description>
    <pubDate>Wed, 15 Sep 2021 09:05:00 GMT</pubDate>
    <dc:creator>VidyaSargur</dc:creator>
    <dc:date>2021-09-15T09:05:00Z</dc:date>
    <item>
      <title>hdfs has two folder with same names</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hdfs-has-two-folder-with-same-names/m-p/323941#M229246</link>
      <description>&lt;P&gt;I have two folders in hdfs with same name under the same directory. I want to get rid of one of them, but how do i do that?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 17:18:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hdfs-has-two-folder-with-same-names/m-p/323941#M229246</guid>
      <dc:creator>clouderaskme</dc:creator>
      <dc:date>2021-09-08T17:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: hdfs has two folder with same names</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hdfs-has-two-folder-with-same-names/m-p/324176#M229295</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/91790"&gt;@clouderaskme&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Creating same folder name in same directory is not allowed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Test:&lt;/P&gt;&lt;P&gt;# sudo -u hdfs hdfs dfs -mkdir /folder1&lt;BR /&gt;# sudo -u hdfs hdfs dfs -mkdir /folder1/subfolder1&lt;BR /&gt;# sudo -u hdfs hdfs dfs -mkdir /folder1/subfolder1&lt;BR /&gt;mkdir: `/folder1/subfolder1': File exists&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if you see two subfolder under folder1 with same name, it may due to contain special characters in name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you log into the terminal and execute hdfs commands to check and also show us the output?&lt;/P&gt;&lt;P&gt;hdfs dfs -ls /folder1 | cat -A&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Will&lt;/P&gt;</description>
      <pubDate>Sat, 11 Sep 2021 05:30:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hdfs-has-two-folder-with-same-names/m-p/324176#M229295</guid>
      <dc:creator>willx</dc:creator>
      <dc:date>2021-09-11T05:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: hdfs has two folder with same names</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hdfs-has-two-folder-with-same-names/m-p/324381#M229348</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/91790"&gt;@clouderaskme&lt;/a&gt;&amp;nbsp;Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.&amp;nbsp; If you are still experiencing the issue, can you provide the information @xxx has requested?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 09:05:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hdfs-has-two-folder-with-same-names/m-p/324381#M229348</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2021-09-15T09:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: hdfs has two folder with same names</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hdfs-has-two-folder-with-same-names/m-p/324393#M229352</link>
      <description>&lt;P&gt;Often this happens as there is a "hidden" character at the end of the file or folder name. For example a line break (\n, \r, etc).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you list the files you can get a clue that is the case as usually the output will look strange with an extra line or something there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can try running a few commands like the following to see if it matches a file:&lt;BR /&gt;&lt;BR /&gt;hdfs dfs -ls $'/path/to/folder\r'&lt;BR /&gt;hdfs dfs -ls $'/path/to/folder\n'&lt;BR /&gt;hdfs dfs -ls $'/path/to/folder\r\n'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If any of those match, then you can delete the incorrect one with a similar command.&lt;BR /&gt;&lt;BR /&gt;If you get no luck with that, then pipe the ls output into "od -c" and it will show the special characters&lt;BR /&gt;&lt;BR /&gt;hdfs dfs -ls /path/to/folder | od -c&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 10:40:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hdfs-has-two-folder-with-same-names/m-p/324393#M229352</guid>
      <dc:creator>sodonnell</dc:creator>
      <dc:date>2021-09-15T10:40:28Z</dc:date>
    </item>
  </channel>
</rss>

