<?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>topic Unable to write data from  SAS to HDFS in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-write-data-from-SAS-to-HDFS/m-p/385788#M24854</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are trying to write data from SAS to HDFS ,SAS Enterprise Guide application able to write data into HDFS and logs shows writing data into HDFS ,but some reason we are not able to see data in below hadoop cluster and its shows 0 file size &amp;nbsp;,please provide me suggestion&amp;nbsp;on this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---code -------------------------------------------&lt;/P&gt;&lt;P&gt;libname hdfslib hadoop server='abcd.com'&lt;BR /&gt;HDFS_TEMPDIR='/user/rhive/test'&lt;BR /&gt;HDFS_DATADIR='/user/rhive/lib'&lt;BR /&gt;HDFS_METADIR='/user/rhive/testabc';&lt;BR /&gt;&lt;BR /&gt;/* Copy SASHELP.CARS over to HDFS */&lt;BR /&gt;data hdfslib.carsdata7;&lt;BR /&gt;set sashelp.cars;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;libname hdfslib clear;&lt;/P&gt;&lt;P&gt;-------------------------------------------------&lt;/P&gt;&lt;P&gt;logfile deatils below :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: Writing HTML(EGHTML) Body file: EGHTML&lt;BR /&gt;21&lt;BR /&gt;22 GOPTIONS ACCESSIBLE;&lt;BR /&gt;23 libname hdfslib hadoop server='abcd.com'&lt;BR /&gt;24 HDFS_TEMPDIR='/user/rhive/test'&lt;BR /&gt;25 HDFS_DATADIR='/user/rhive/lib'&lt;BR /&gt;26 HDFS_METADIR='/user/rhive/testabc';&lt;BR /&gt;NOTE: Libref HDFSLIB was successfully assigned as follows:&lt;BR /&gt;Engine: HADOOP&lt;BR /&gt;Physical Name: /user/rhive/testabc&lt;BR /&gt;27&lt;BR /&gt;28 /* Copy SASHELP.CARS over to HDFS */&lt;BR /&gt;29 data hdfslib.carsdata7;&lt;BR /&gt;30 set sashelp.cars;&lt;BR /&gt;31 run;&lt;/P&gt;&lt;P&gt;NOTE: SAS variable labels, formats, and lengths are not written to DBMS tables.&lt;BR /&gt;NOTE: There were 428 observations read from the data set SASHELP.CARS.&lt;BR /&gt;NOTE: The data set HDFSLIB.CARSDATA7 has 428 observations and 15 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 2.68 seconds&lt;BR /&gt;user cpu time 0.03 seconds&lt;BR /&gt;system cpu time 0.02 seconds&lt;BR /&gt;memory 1916.43k&lt;BR /&gt;OS Memory 18404.00k&lt;BR /&gt;Timestamp 08/04/2017 04:47:31 PM&lt;BR /&gt;Step Count 2 Switch Count 33&lt;BR /&gt;Page Faults 0&lt;BR /&gt;Page Reclaims 1856&lt;BR /&gt;Page Swaps 0&lt;BR /&gt;Voluntary Context Switches 3732&lt;BR /&gt;Involuntary Context Switches 0&lt;BR /&gt;Block Input Operations 0&lt;BR /&gt;Block Output Operations 0&lt;/P&gt;&lt;P&gt;32&lt;BR /&gt;33 libname hdfslib clear;&lt;BR /&gt;2 The SAS System 16:46 Friday, August 4, 2017&lt;/P&gt;&lt;P&gt;NOTE: Libref HDFSLIB has been deassigned.&lt;BR /&gt;34&lt;BR /&gt;35&lt;BR /&gt;36&lt;BR /&gt;37&lt;BR /&gt;38 GOPTIONS NOACCESSIBLE;&lt;BR /&gt;39 %LET _CLIENTTASKLABEL=;&lt;BR /&gt;40 %LET _CLIENTPROJECTPATH=;&lt;BR /&gt;41 %LET _CLIENTPROJECTNAME=;&lt;BR /&gt;42 %LET _SASPROGRAMFILE=;&lt;BR /&gt;43&lt;BR /&gt;44 ;*';*";*/;quit;run;&lt;BR /&gt;45 ODS _ALL_ CLOSE;&lt;BR /&gt;46&lt;BR /&gt;47&lt;BR /&gt;48 QUIT; RUN;&lt;BR /&gt;49&lt;/P&gt;&lt;P&gt;-------------------&lt;/P&gt;&lt;P&gt;hadoop cluster data ,its showing 0 file size&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;-rw-r--r-- 3 b_sas hdmi-technology 0 2017-08-04 16:10 /user/rhive/testabc/carsdata7.sashdmd&lt;/P&gt;</description>
    <pubDate>Sat, 05 Aug 2017 00:02:14 GMT</pubDate>
    <dc:creator>a_SAS</dc:creator>
    <dc:date>2017-08-05T00:02:14Z</dc:date>
    <item>
      <title>Unable to write data from  SAS to HDFS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-write-data-from-SAS-to-HDFS/m-p/385788#M24854</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are trying to write data from SAS to HDFS ,SAS Enterprise Guide application able to write data into HDFS and logs shows writing data into HDFS ,but some reason we are not able to see data in below hadoop cluster and its shows 0 file size &amp;nbsp;,please provide me suggestion&amp;nbsp;on this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---code -------------------------------------------&lt;/P&gt;&lt;P&gt;libname hdfslib hadoop server='abcd.com'&lt;BR /&gt;HDFS_TEMPDIR='/user/rhive/test'&lt;BR /&gt;HDFS_DATADIR='/user/rhive/lib'&lt;BR /&gt;HDFS_METADIR='/user/rhive/testabc';&lt;BR /&gt;&lt;BR /&gt;/* Copy SASHELP.CARS over to HDFS */&lt;BR /&gt;data hdfslib.carsdata7;&lt;BR /&gt;set sashelp.cars;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;libname hdfslib clear;&lt;/P&gt;&lt;P&gt;-------------------------------------------------&lt;/P&gt;&lt;P&gt;logfile deatils below :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: Writing HTML(EGHTML) Body file: EGHTML&lt;BR /&gt;21&lt;BR /&gt;22 GOPTIONS ACCESSIBLE;&lt;BR /&gt;23 libname hdfslib hadoop server='abcd.com'&lt;BR /&gt;24 HDFS_TEMPDIR='/user/rhive/test'&lt;BR /&gt;25 HDFS_DATADIR='/user/rhive/lib'&lt;BR /&gt;26 HDFS_METADIR='/user/rhive/testabc';&lt;BR /&gt;NOTE: Libref HDFSLIB was successfully assigned as follows:&lt;BR /&gt;Engine: HADOOP&lt;BR /&gt;Physical Name: /user/rhive/testabc&lt;BR /&gt;27&lt;BR /&gt;28 /* Copy SASHELP.CARS over to HDFS */&lt;BR /&gt;29 data hdfslib.carsdata7;&lt;BR /&gt;30 set sashelp.cars;&lt;BR /&gt;31 run;&lt;/P&gt;&lt;P&gt;NOTE: SAS variable labels, formats, and lengths are not written to DBMS tables.&lt;BR /&gt;NOTE: There were 428 observations read from the data set SASHELP.CARS.&lt;BR /&gt;NOTE: The data set HDFSLIB.CARSDATA7 has 428 observations and 15 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 2.68 seconds&lt;BR /&gt;user cpu time 0.03 seconds&lt;BR /&gt;system cpu time 0.02 seconds&lt;BR /&gt;memory 1916.43k&lt;BR /&gt;OS Memory 18404.00k&lt;BR /&gt;Timestamp 08/04/2017 04:47:31 PM&lt;BR /&gt;Step Count 2 Switch Count 33&lt;BR /&gt;Page Faults 0&lt;BR /&gt;Page Reclaims 1856&lt;BR /&gt;Page Swaps 0&lt;BR /&gt;Voluntary Context Switches 3732&lt;BR /&gt;Involuntary Context Switches 0&lt;BR /&gt;Block Input Operations 0&lt;BR /&gt;Block Output Operations 0&lt;/P&gt;&lt;P&gt;32&lt;BR /&gt;33 libname hdfslib clear;&lt;BR /&gt;2 The SAS System 16:46 Friday, August 4, 2017&lt;/P&gt;&lt;P&gt;NOTE: Libref HDFSLIB has been deassigned.&lt;BR /&gt;34&lt;BR /&gt;35&lt;BR /&gt;36&lt;BR /&gt;37&lt;BR /&gt;38 GOPTIONS NOACCESSIBLE;&lt;BR /&gt;39 %LET _CLIENTTASKLABEL=;&lt;BR /&gt;40 %LET _CLIENTPROJECTPATH=;&lt;BR /&gt;41 %LET _CLIENTPROJECTNAME=;&lt;BR /&gt;42 %LET _SASPROGRAMFILE=;&lt;BR /&gt;43&lt;BR /&gt;44 ;*';*";*/;quit;run;&lt;BR /&gt;45 ODS _ALL_ CLOSE;&lt;BR /&gt;46&lt;BR /&gt;47&lt;BR /&gt;48 QUIT; RUN;&lt;BR /&gt;49&lt;/P&gt;&lt;P&gt;-------------------&lt;/P&gt;&lt;P&gt;hadoop cluster data ,its showing 0 file size&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;-rw-r--r-- 3 b_sas hdmi-technology 0 2017-08-04 16:10 /user/rhive/testabc/carsdata7.sashdmd&lt;/P&gt;</description>
      <pubDate>Sat, 05 Aug 2017 00:02:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-write-data-from-SAS-to-HDFS/m-p/385788#M24854</guid>
      <dc:creator>a_SAS</dc:creator>
      <dc:date>2017-08-05T00:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to write data from  SAS to HDFS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-write-data-from-SAS-to-HDFS/m-p/459039#M29570</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/157476"&gt;@a_SAS&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is most likely a configuration problem with the XML files. Current versions of SAS can be configured using the hadooptracer.py Python tool.&amp;nbsp;I have seen it quite often with the Cloudera Quickstart and Hortonworks Sandbox, too.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The configuration guides for SAS/ACCESS to Hadoop can be found here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/en/documentation/third-party-software-reference/9-4/guides-papers-for-hadoop.html" target="_self"&gt;https://support.sas.com/en/documentation/third-party-software-reference/9-4/guides-papers-for-hadoop.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This SAS Communities thread may help:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Data-Management/No-sasdata-written-to-Hadoop-only-metadata/m-p/158659/highlight/true#M2834" target="_self"&gt;https://communities.sas.com/t5/SAS-Data-Management/No-sasdata-written-to-Hadoop-only-metadata/m-p/158659/highlight/true#M2834&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best wishes,&lt;/P&gt;
&lt;P&gt;Jeff&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 May 2018 17:38:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-write-data-from-SAS-to-HDFS/m-p/459039#M29570</guid>
      <dc:creator>JBailey</dc:creator>
      <dc:date>2018-05-01T17:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to write data from  SAS to HDFS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-write-data-from-SAS-to-HDFS/m-p/459042#M29571</link>
      <description>&lt;P&gt;Thank you for reply ,finally i figure out this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just am sharing ,this is the below path removed from &lt;SPAN&gt;Yarn-site.xml file. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After removing this below line,its allow to write SAS data into HDFS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Yarn-site.xml&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;xi:include href="rmha-site.xml" xmlns:xi="&lt;/SPAN&gt;&lt;A href="http://www.w3.org/2001/XInclude" target="_blank"&gt;http://www.w3.org/2001/XInclude&lt;/A&gt;&lt;SPAN&gt;" /&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 May 2018 17:53:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-write-data-from-SAS-to-HDFS/m-p/459042#M29571</guid>
      <dc:creator>a_SAS</dc:creator>
      <dc:date>2018-05-01T17:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to write data from  SAS to HDFS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-write-data-from-SAS-to-HDFS/m-p/734891#M38575</link>
      <description>We have a problem similar to this and we are not able to evolve. We tried this posted solution but in our case we don't have that entry in the Yarn- site.xml file for the include: href = "rmha-site.xml". We have already changed the property: dfs.client.use.datanode.hostname to true in the hdfs-site.xml file to no avail. We were able to connect with a datalake with Hadoop and Kerberos through SAS Viya using the SAS libname command. All tables are visible and accessible and we were able to create new tables in Hadoop with the data that are already in the datalake. When we try to create a table with the data that is in SAS we are unable to place it in Hadoop, the table is created with the metadata but the data is not taken. The temporary file is always created with zero bytes and we receive an error reading blocks after a long time without response (about 4 minutes) BlockMissingException. We have already tried with temporary folders without stickybit using the hdfs_tempdir option in the libname declaration and it didn't work either. ==&amp;gt; We changed the test to the command below and received an ok return from SAS StudioV but the file was created with zero bytes in the hdfs: filename out hadoop '/ tmp /' recfm = v lrecl = 32167 dir; data null; file out (shoes); put 'write data to shoes file'; run; ==&amp;gt; the command below to create a folder in hdfs works perfectly: proc hadoop hdfs mkdir = '/ tmp / new_directory'; run; We have no other alternatives for testing, thank you for your help in advance. SAS Viya Hadoop Cloudera Linux RedHat</description>
      <pubDate>Sat, 17 Apr 2021 18:36:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-write-data-from-SAS-to-HDFS/m-p/734891#M38575</guid>
      <dc:creator>marcellorangel</dc:creator>
      <dc:date>2021-04-17T18:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to write data from  SAS to HDFS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-write-data-from-SAS-to-HDFS/m-p/735066#M38576</link>
      <description>&lt;P&gt;Feels like something worth contacting SAS Tech Support.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Apr 2021 09:21:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-write-data-from-SAS-to-HDFS/m-p/735066#M38576</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2021-04-18T09:21:35Z</dc:date>
    </item>
  </channel>
</rss>

