<?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: Unable to view/see the filename correctly when storing Filename with chinese characters in HDFS in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-view-see-the-filename-correctly-when-storing/m-p/236421#M85072</link>
    <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/12150/reddy-gayathri.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Gayathri Reddy G&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As such we didn't need any specific header other than content-type and charset which you already mentioned in your above command. I tried to replicate same command but i can able to write file in hdfs using curl via webhdfs&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="93346-hdfs-min.png" style="width: 2972px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14398iAFE25DD105BF9372/image-size/medium?v=v2&amp;amp;px=400" role="button" title="93346-hdfs-min.png" alt="93346-hdfs-min.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Seems like you have some space in the path. Please can you verify your command again ?&lt;/P&gt;&lt;P&gt;Reference: &lt;A href="https://hadoop.apache.org/docs/r1.0.4/webhdfs.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://hadoop.apache.org/docs/r1.0.4/webhdfs.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 17 Aug 2019 23:34:00 GMT</pubDate>
    <dc:creator>jagadeesan</dc:creator>
    <dc:date>2019-08-17T23:34:00Z</dc:date>
    <item>
      <title>Unable to view/see the filename correctly when storing Filename with chinese characters in HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-view-see-the-filename-correctly-when-storing/m-p/236418#M85069</link>
      <description>&lt;P&gt;I am trying to put a file in hadoop with the filename in chinese characters.&lt;/P&gt;&lt;P&gt;file: 余宗阳视频审核稿-1024.docx&lt;/P&gt;&lt;P&gt;but the file name is looking vaguely in hadoop as Óà×ÚÑôÊÓÆµÉóºË¸å-1024.docx&lt;/P&gt;&lt;P&gt;Any hints to solve this issue?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 17:00:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-view-see-the-filename-correctly-when-storing/m-p/236418#M85069</guid>
      <dc:creator>reddy_gayathri</dc:creator>
      <dc:date>2018-11-20T17:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to view/see the filename correctly when storing Filename with chinese characters in HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-view-see-the-filename-correctly-when-storing/m-p/236419#M85070</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/12150/reddy-gayathri.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Gayathri Reddy G&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Check your locale on your terminal, if on Linux check "echo $LANG", does it end in UTF-8? You can store in HDFS any data, it only depends how are you going to interpret it for display. HDFS by default supports UTF-8, but can read other encodings as well. Most of Hadoop ecosystem uses UTF-8. Below I tried to replicate this issue but I can see filename in Chinese characters.&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="93323-file.png" style="width: 1530px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14399iA248CB4A86DEB934/image-size/medium?v=v2&amp;amp;px=400" role="button" title="93323-file.png" alt="93323-file.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2019 23:34:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-view-see-the-filename-correctly-when-storing/m-p/236419#M85070</guid>
      <dc:creator>jagadeesan</dc:creator>
      <dc:date>2019-08-17T23:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to view/see the filename correctly when storing Filename with chinese characters in HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-view-see-the-filename-correctly-when-storing/m-p/236420#M85071</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/97811/jagadeesanas.html" nodeid="97811"&gt;@Jagadeesan A S&lt;/A&gt;&lt;/P&gt;&lt;P&gt;That's working thanks!&lt;/P&gt;&lt;P&gt;I am trying to put the same file to hdfs using Curl via webhdfs and getting error "&amp;gt;HTTP Status 500 - Illegal character in path at index "&lt;/P&gt;&lt;P&gt;curl -i -H 'content-type:application/octet-stream' -H 'charset:UTF-8' -X PUT -T '余宗阳视频审核稿-1024.docx' 'http://hostname:14000/webhdfs/v1/user/username/余宗阳视频审核稿-1024.docx?op=CREATE&amp;amp;data=true&amp;amp;user.name=username&amp;amp;overwrite=true'&lt;/P&gt;&lt;P&gt;Any other header to be passed to recognize the chinese character here?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 17:54:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-view-see-the-filename-correctly-when-storing/m-p/236420#M85071</guid>
      <dc:creator>reddy_gayathri</dc:creator>
      <dc:date>2018-11-21T17:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to view/see the filename correctly when storing Filename with chinese characters in HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-view-see-the-filename-correctly-when-storing/m-p/236421#M85072</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/12150/reddy-gayathri.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Gayathri Reddy G&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As such we didn't need any specific header other than content-type and charset which you already mentioned in your above command. I tried to replicate same command but i can able to write file in hdfs using curl via webhdfs&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="93346-hdfs-min.png" style="width: 2972px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14398iAFE25DD105BF9372/image-size/medium?v=v2&amp;amp;px=400" role="button" title="93346-hdfs-min.png" alt="93346-hdfs-min.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Seems like you have some space in the path. Please can you verify your command again ?&lt;/P&gt;&lt;P&gt;Reference: &lt;A href="https://hadoop.apache.org/docs/r1.0.4/webhdfs.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://hadoop.apache.org/docs/r1.0.4/webhdfs.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2019 23:34:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-view-see-the-filename-correctly-when-storing/m-p/236421#M85072</guid>
      <dc:creator>jagadeesan</dc:creator>
      <dc:date>2019-08-17T23:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to view/see the filename correctly when storing Filename with chinese characters in HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-view-see-the-filename-correctly-when-storing/m-p/236422#M85073</link>
      <description>&lt;P&gt;After encoding it is working for me. But the first command, it's still throwing the error "illegal character found at index 62". 62 is where the filename will start in the destination path.&lt;/P&gt;&lt;P&gt;i checked the $LANG, and it is UTF-8.&lt;/P&gt;&lt;P&gt;What was the exact output for you when executed the first curl without encoding?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 20:50:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-view-see-the-filename-correctly-when-storing/m-p/236422#M85073</guid>
      <dc:creator>reddy_gayathri</dc:creator>
      <dc:date>2018-11-21T20:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to view/see the filename correctly when storing Filename with chinese characters in HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-view-see-the-filename-correctly-when-storing/m-p/236423#M85074</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/12150/reddy-gayathri.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Gayathri Reddy G&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 1:&lt;/STRONG&gt; We need to submit first HTTP PUT request, that will give path for &lt;EM&gt;TEMPORARY_LOCATION&lt;/EM&gt; to some random datanode path location where that data will going to write.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="93347-webhdfs-first.png" style="width: 2972px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14396iDADE23B4F6540B1D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="93347-webhdfs-first.png" alt="93347-webhdfs-first.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;STRONG&gt;Step 2:&lt;/STRONG&gt; Again submit another HTTP PUT request using the URL in the &lt;I&gt;TEMPORARY_LOCATION &lt;/I&gt;header with the file data to be written.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="93348-webhdfs-second.png" style="width: 2972px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14397i83445C1AB6BA656D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="93348-webhdfs-second.png" alt="93348-webhdfs-second.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The client receives a 201 Created response with zero content length and the WebHDFS URI of the file in the Location header.&lt;/P&gt;&lt;P&gt;Please accept the answer you found most useful&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2019 23:33:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-view-see-the-filename-correctly-when-storing/m-p/236423#M85074</guid>
      <dc:creator>jagadeesan</dc:creator>
      <dc:date>2019-08-17T23:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to view/see the filename correctly when storing Filename with chinese characters in HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-view-see-the-filename-correctly-when-storing/m-p/236424#M85075</link>
      <description>&lt;P&gt;I found the root cause of the issue. Should use namenode with 50070 port. I was using edge node and hence the failure.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2018 18:47:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-view-see-the-filename-correctly-when-storing/m-p/236424#M85075</guid>
      <dc:creator>reddy_gayathri</dc:creator>
      <dc:date>2018-11-22T18:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to view/see the filename correctly when storing Filename with chinese characters in HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-view-see-the-filename-correctly-when-storing/m-p/236425#M85076</link>
      <description>&lt;P&gt;using PUT command, need to submit the curl twice. There is "negotiate" curl command which does the same in single submission.&lt;/P&gt;&lt;P&gt;curl --negotiate -u : -L "http://namenode:50070/webhdfs/v1/user/username/余宗阳视频审核稿-1024.docx?op=CREATE&amp;amp;user.name=username" -T 余宗阳视频审核稿-1024.docx&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2018 18:52:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-view-see-the-filename-correctly-when-storing/m-p/236425#M85076</guid>
      <dc:creator>reddy_gayathri</dc:creator>
      <dc:date>2018-11-22T18:52:13Z</dc:date>
    </item>
  </channel>
</rss>

