<?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: Error in PutHDFS while adding Time to file in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-in-PutHDFS-while-adding-Time-to-file/m-p/206098#M68863</link>
    <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/14967/narasimhavarman.html" nodeid="14967"&gt;@Narasimma varman&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;if we are creating files or directories having&lt;STRONG&gt; {/,:}&lt;/STRONG&gt; characters then HDFS wont allow to do that but in local we can use colon.&lt;/P&gt;&lt;P&gt;You can refer to below similar kind of issue.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/139512/create-hdfs-folder-having-namecreate-hdfs-folder-h.html?childToView=139555#answer-139555" target="_blank"&gt;https://community.hortonworks.com/questions/139512/create-hdfs-folder-having-namecreate-hdfs-folder-h.html?childToView=139555#answer-139555&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;To resolve your issue:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Replace&lt;/STRONG&gt; all &lt;STRONG&gt;colons&lt;/STRONG&gt; with some other character and try to run again.&lt;/P&gt;&lt;PRE&gt;${filename}.${now():format("yyyy-MM-dd-HH_mm_ss.SSS'z'")}"&lt;/PRE&gt;&lt;P&gt;(or)&lt;/P&gt;&lt;PRE&gt;${filename}.${now():format("yyyy-MM-dd-HHmmss.SSS'z'")}"&lt;/PRE&gt;</description>
    <pubDate>Tue, 03 Oct 2017 19:29:52 GMT</pubDate>
    <dc:creator>Shu_ashu</dc:creator>
    <dc:date>2017-10-03T19:29:52Z</dc:date>
    <item>
      <title>Error in PutHDFS while adding Time to file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-in-PutHDFS-while-adding-Time-to-file/m-p/206097#M68862</link>
      <description>&lt;P&gt;I am using HDP 2.5. I try to add time for file which is locate in HDFS file. For that I use GetHDFS-&amp;gt;UpdateAttribute-&amp;gt;PutHDFS.&lt;BR /&gt;&lt;BR /&gt;First I get file from HDFS through GetHDFS processor and then I change format of file in UpdateAttribute by adding property "&lt;BR /&gt;&lt;BR /&gt;${filename}.${now():format("yyyy-MM-dd-HH:mm:ss.SSS'z'")}". Finally I try to put file in HDFS that time I got issue &lt;STRONG&gt;"&lt;BR /&gt;&lt;BR /&gt;Failed to write to HDFS due to java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: .test.csv.2017-10-03:03:19.814z: java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: .test.csv.2017-10-03:03:19.814z"&lt;/STRONG&gt; .&lt;/P&gt;&lt;P&gt;UpdateAttribute&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="39655-screenshot-from-2017-10-03-14-37-53.png" style="width: 991px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17058iCA5B6E4C1BCCE6B2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="39655-screenshot-from-2017-10-03-14-37-53.png" alt="39655-screenshot-from-2017-10-03-14-37-53.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;PutHDFS&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="39656-screenshot-from-2017-10-03-14-38-20.png" style="width: 807px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17059i357EF4CDC2B77A59/image-size/medium?v=v2&amp;amp;px=400" role="button" title="39656-screenshot-from-2017-10-03-14-38-20.png" alt="39656-screenshot-from-2017-10-03-14-38-20.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 04:45:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-in-PutHDFS-while-adding-Time-to-file/m-p/206097#M68862</guid>
      <dc:creator>narasimha_varma</dc:creator>
      <dc:date>2019-08-18T04:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error in PutHDFS while adding Time to file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-in-PutHDFS-while-adding-Time-to-file/m-p/206098#M68863</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/14967/narasimhavarman.html" nodeid="14967"&gt;@Narasimma varman&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;if we are creating files or directories having&lt;STRONG&gt; {/,:}&lt;/STRONG&gt; characters then HDFS wont allow to do that but in local we can use colon.&lt;/P&gt;&lt;P&gt;You can refer to below similar kind of issue.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/139512/create-hdfs-folder-having-namecreate-hdfs-folder-h.html?childToView=139555#answer-139555" target="_blank"&gt;https://community.hortonworks.com/questions/139512/create-hdfs-folder-having-namecreate-hdfs-folder-h.html?childToView=139555#answer-139555&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;To resolve your issue:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Replace&lt;/STRONG&gt; all &lt;STRONG&gt;colons&lt;/STRONG&gt; with some other character and try to run again.&lt;/P&gt;&lt;PRE&gt;${filename}.${now():format("yyyy-MM-dd-HH_mm_ss.SSS'z'")}"&lt;/PRE&gt;&lt;P&gt;(or)&lt;/P&gt;&lt;PRE&gt;${filename}.${now():format("yyyy-MM-dd-HHmmss.SSS'z'")}"&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Oct 2017 19:29:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-in-PutHDFS-while-adding-Time-to-file/m-p/206098#M68863</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2017-10-03T19:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Error in PutHDFS while adding Time to file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-in-PutHDFS-while-adding-Time-to-file/m-p/206099#M68864</link>
      <description>&lt;P&gt;Thanks Shu&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 11:58:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-in-PutHDFS-while-adding-Time-to-file/m-p/206099#M68864</guid>
      <dc:creator>narasimha_varma</dc:creator>
      <dc:date>2017-10-04T11:58:58Z</dc:date>
    </item>
  </channel>
</rss>

