<?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: duplicate directories in hdfs location in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/duplicate-directories-in-hdfs-location/m-p/84209#M85237</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/23257"&gt;@RajeshMadurai&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for posting your update here&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you see any other Special characters (other than $) at the end of filenames in your command's output ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#hadoop fs -ls &amp;lt;path&amp;gt; &amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;/tmp/hdfslist&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#cat -e /tmp/hdfslist&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;or&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#cat -v&amp;nbsp;/tmp/hdfslist&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, you can refer the below communty thread&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.cloudera.com/t5/Storage-Random-Access-HDFS/Duplicate-Directories-in-HDFS/m-p/37319" target="_self"&gt;http://community.cloudera.com/t5/Storage-Random-Access-HDFS/Duplicate-Directories-in-HDFS/m-p/37319&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;</description>
    <pubDate>Fri, 21 Dec 2018 13:33:06 GMT</pubDate>
    <dc:creator>satz</dc:creator>
    <dc:date>2018-12-21T13:33:06Z</dc:date>
    <item>
      <title>duplicate directories in hdfs location</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/duplicate-directories-in-hdfs-location/m-p/82964#M85234</link>
      <description>&lt;P&gt;#1. Below hdfs location having duplicate directories:&lt;BR /&gt;======================================================&lt;/P&gt;&lt;P&gt;hdfs dfs -ls /rajesh/int_datalake/Retirement/&lt;/P&gt;&lt;P&gt;drwxrwxr-x+ - root supergroup 0 2018-10-29 03:24 /rajesh/int_datalake/Retirement/RS_Access&lt;BR /&gt;drwxrwxr-x+ - root supergroup 0 2018-10-29 03:17 /rajesh/int_datalake/Retirement/RS_Access&lt;BR /&gt;drwxrwxr-x+ - root supergroup 0 2018-10-29 03:17 /rajesh/int_datalake/Retirement/RS_Raw&lt;BR /&gt;drwxrwxr-x+ - root supergroup 0 2018-11-27 01:35 /rajesh/int_datalake/Retirement/RS_Raw1&lt;BR /&gt;drwxrwxrwx+ - root supergroup 0 2018-11-27 01:39 /rajesh/int_datalake/Retirement/RS_Raw_bk&lt;BR /&gt;drwxrwxr-x+ - root supergroup 0 2018-10-29 03:24 /rajesh/int_datalake/Retirement/RS_Repos&lt;BR /&gt;drwxrwxr-x+ - root supergroup 0 2018-10-29 03:17 /rajesh/int_datalake/Retirement/RS_Repos&lt;BR /&gt;drwxrwxr-x+ - root supergroup 0 2018-10-29 03:24 /rajesh/int_datalake/Retirement/RS_Stage&lt;BR /&gt;drwxrwxr-x+ - root supergroup 0 2018-10-29 03:17 /rajesh/int_datalake/Retirement/RS_Stage&lt;BR /&gt;drwxrwxr-x+ - root supergroup 0 2018-10-29 03:24 /rajesh/int_datalake/Retirement/RS_Work&lt;BR /&gt;drwxrwxr-x+ - root supergroup 0 2018-10-29 03:17 /rajesh/int_datalake/Retirement/RS_Work&lt;/P&gt;&lt;P&gt;First we moved the file to bk name and tired to remove but not worked&lt;BR /&gt;[root@ ]#&lt;BR /&gt;[root@ ]# hdfs dfs -mv /rajesh/int_rajeshlake/Retirement/RS_Raw /rajesh/int_rajeshlake/Retirement/RS_Raw_bk&lt;BR /&gt;[root@ ]#&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;hdfs dfs -rm -r /rajesh/int_datalake/Retirement/RS_Raw&lt;BR /&gt;rm: `/rajesh/int_datalake/Retirement/RS_Raw': No such file or directory&lt;/P&gt;&lt;P&gt;hdfs dfs -mv /rajesh/int_datalake/Retirement/RS_Raw /rajesh/int_datalake/Retirement/RS_Raw123&lt;BR /&gt;mv: `/rajesh/int_datalake/Retirement/RS_Raw': No such file or directory&lt;/P&gt;&lt;P&gt;#2. Finally removed directory rmdir below command and recreated the directory:&lt;BR /&gt;================================================================================&lt;BR /&gt;hdfs dfs -rmdir /rajesh/int_rajeshlake/Retirement/RS_Wor*&lt;BR /&gt;hdfs dfs -ls /rajesh/int_rajeshlake/Retirement/&lt;BR /&gt;Found 9 items&lt;BR /&gt;drwxrwxr-x+ - root supergroup 0 2018-10-29 03:24 /rajesh/int_rajeshlake/Retirement/RS_Access&lt;BR /&gt;drwxrwxr-x+ - root supergroup 0 2018-10-29 03:17 /rajesh/int_rajeshlake/Retirement/RS_Access&lt;BR /&gt;drwxrwxrwx+ - root supergroup 0 2018-11-27 01:39 /rajesh/int_rajeshlake/Retirement/RS_Raw&lt;BR /&gt;drwxrwxr-x+ - root supergroup 0 2018-10-29 03:17 /rajesh/int_rajeshlake/Retirement/RS_Raw&lt;BR /&gt;drwxrwxr-x+ - root supergroup 0 2018-11-27 01:35 /rajesh/int_rajeshlake/Retirement/RS_Raw1&lt;BR /&gt;drwxrwxr-x+ - root supergroup 0 2018-10-29 03:24 /rajesh/int_rajeshlake/Retirement/RS_Repos&lt;BR /&gt;drwxrwxr-x+ - root supergroup 0 2018-10-29 03:17 /rajesh/int_rajeshlake/Retirement/RS_Repos&lt;BR /&gt;drwxrwxr-x+ - root supergroup 0 2018-10-29 03:24 /rajesh/int_rajeshlake/Retirement/RS_Stage&lt;BR /&gt;drwxrwxr-x+ - root supergroup 0 2018-10-29 03:17 /rajesh/int_rajeshlake/Retirement/RS_Stage&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#3. Tried mkdir duplicat manually, Command executed not error directory already exists. But not no duplication created:&lt;BR /&gt;=======================================================================================================================&lt;BR /&gt;hdfs dfs -ls /rajesh/data/Corporate&lt;BR /&gt;drwxrwxr-x - root supergroup 0 2018-11-27 04:23 /rajesh/data/Corporate/Corp_Access&lt;BR /&gt;drwxrwxr-x - root supergroup 0 2018-11-27 04:24 /rajesh/data/Corporate/Corp_Raw&lt;BR /&gt;drwxrwxr-x - root supergroup 0 2018-11-27 04:25 /rajesh/data/Corporate/Corp_Repos&lt;BR /&gt;drwxrwxr-x - root supergroup 0 2018-11-27 04:25 /rajesh/data/Corporate/Corp_Stage&lt;BR /&gt;drwxrwxr-x - root supergroup 0 2018-11-27 04:26 /rajesh/data/Corporate/Corp_Work&lt;/P&gt;&lt;P&gt;hdfs dfs -mkdir -p /rajesh/data/Corporate/Corp_Work&lt;BR /&gt;hdfs dfs -ls /rajesh/data/Corporate&lt;BR /&gt;drwxrwxr-x - root supergroup 0 2018-11-27 04:23 /rajesh/data/Corporate/Corp_Access&lt;BR /&gt;drwxrwxr-x - root supergroup 0 2018-11-27 04:24 /rajesh/data/Corporate/Corp_Raw&lt;BR /&gt;drwxrwxr-x - root supergroup 0 2018-11-27 04:25 /rajesh/data/Corporate/Corp_Repos&lt;BR /&gt;drwxrwxr-x - root supergroup 0 2018-11-27 04:25 /rajesh/data/Corporate/Corp_Stage&lt;BR /&gt;drwxrwxr-x - root supergroup 0 2018-11-27 04:26 /rajesh/data/Corporate/Corp_Work&lt;/P&gt;&lt;P&gt;Please confirm how the duplicate directories created?&lt;BR /&gt;Directores are in empty file so we remove and recreated the file. If any table or data available what steps have to follow?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 10:47:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/duplicate-directories-in-hdfs-location/m-p/82964#M85234</guid>
      <dc:creator>RajeshMadurai</dc:creator>
      <dc:date>2018-11-28T10:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: duplicate directories in hdfs location</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/duplicate-directories-in-hdfs-location/m-p/83920#M85235</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/23257"&gt;@RajeshMadurai&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suspect&amp;nbsp;this might be because of any non-printable characters present in the file names.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How the directories are created ? Is it by some script / code ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, could you please route the output to a file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#hadoop fs -ls &amp;lt;path&amp;gt; &amp;gt;&lt;SPAN&gt;/tmp/hdfslist&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#cat -e&amp;nbsp;&lt;SPAN&gt;/tmp/hdfslist&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;you could see the end of each file name, also you can see any other chars if present other than $ sign&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 17:17:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/duplicate-directories-in-hdfs-location/m-p/83920#M85235</guid>
      <dc:creator>satz</dc:creator>
      <dc:date>2018-12-14T17:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: duplicate directories in hdfs location</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/duplicate-directories-in-hdfs-location/m-p/84207#M85236</link>
      <description>How the directories are created ? Is it by some script / code ?&lt;BR /&gt;Yes through the shell script executed two mins(1st time given hive prompt wrongly). But any second time it should exists file already available.&lt;BR /&gt;#cat -e /tmp/hdfslist -you could see the end of each file name, also you can see any other chars if present other than $ sign&lt;BR /&gt;After taking the output from above command. Have to remove the duplicate files hdfs dfs -rm rajesh/int_rajeshlake/Retirement/RS_Raw$&lt;BR /&gt;Please confirm</description>
      <pubDate>Fri, 21 Dec 2018 13:13:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/duplicate-directories-in-hdfs-location/m-p/84207#M85236</guid>
      <dc:creator>RajeshMadurai</dc:creator>
      <dc:date>2018-12-21T13:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: duplicate directories in hdfs location</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/duplicate-directories-in-hdfs-location/m-p/84209#M85237</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/23257"&gt;@RajeshMadurai&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for posting your update here&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you see any other Special characters (other than $) at the end of filenames in your command's output ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#hadoop fs -ls &amp;lt;path&amp;gt; &amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;/tmp/hdfslist&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#cat -e /tmp/hdfslist&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;or&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#cat -v&amp;nbsp;/tmp/hdfslist&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, you can refer the below communty thread&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.cloudera.com/t5/Storage-Random-Access-HDFS/Duplicate-Directories-in-HDFS/m-p/37319" target="_self"&gt;http://community.cloudera.com/t5/Storage-Random-Access-HDFS/Duplicate-Directories-in-HDFS/m-p/37319&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Fri, 21 Dec 2018 13:33:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/duplicate-directories-in-hdfs-location/m-p/84209#M85237</guid>
      <dc:creator>satz</dc:creator>
      <dc:date>2018-12-21T13:33:06Z</dc:date>
    </item>
  </channel>
</rss>

