<?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 Re: Upload Data from SAS to Hadoop Impala in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Upload-Data-from-SAS-to-Hadoop-Impala/m-p/665114#M198803</link>
    <description>Did you saw this: &lt;A href="https://support.sas.com/kb/63/350.html" target="_blank"&gt;https://support.sas.com/kb/63/350.html&lt;/A&gt; ?&lt;BR /&gt;Bart</description>
    <pubDate>Thu, 25 Jun 2020 18:20:42 GMT</pubDate>
    <dc:creator>yabwon</dc:creator>
    <dc:date>2020-06-25T18:20:42Z</dc:date>
    <item>
      <title>Upload Data from SAS to Hadoop Impala</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Upload-Data-from-SAS-to-Hadoop-Impala/m-p/665107#M198799</link>
      <description>&lt;P&gt;I've struggled to load an existing SAS dataset saved in a SAS server and load it to a designated db under the hadoop impala server. I've tried two ways of doing so but both were only able to create a table yet with no data loaded, seemingly for different reasons.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname PrD	impala dsn=risk 	database=grn     user="&amp;amp;NBK@company.com" 	pw="&amp;amp;dbpass";
libname SAS "/retail/Adhoc";

/* Option 1 */
data PrD.smp_203;
	set SAS.smp_203;
run;

/* Option 2 */
proc sql;
connect to impala (dsn=&amp;amp;dsn database=&amp;amp;grn user="&amp;amp;NBK@company.com" pw="&amp;amp;dbpass");	
create table PrD.smp_203
    (BULKLOAD=YES
    BL_DATAFILE='/retail/Adhoc/'
    BL_HOST='MyIP_address'
    BL_PORT=50070)
as select * from SAS.smp_203;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error I receive from 'Option 1' was, "ERROR: CLI execute error: [Cloudera][Support] (40470) Conversion error at&amp;nbsp;column 1 and row 1: numeric value out of range." The first column of the SAS dataset was a numeric value with format 20. Was the error due to this particular column that has incompatible format to the hadoop server?&lt;/P&gt;
&lt;P&gt;The error received as a result of 'Option 2' was a bit different: "ERROR: java.lang.NullPointerException&lt;/P&gt;
&lt;P&gt;ERROR: CLI execute error: bulk load directory '/tmp' does not exist". I'm at a complete loss about this one and don't know where I'd start to debug this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any inputs on this are greatly appreciated, whether you were to comment just on one of the options I had above, or providing an alternative way of doing so. If you choose to comment on one of the above, please kindly provide a top-down comment on why the error occurred and a possible way of remediation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks community! I owe you, again.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 18:00:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Upload-Data-from-SAS-to-Hadoop-Impala/m-p/665107#M198799</guid>
      <dc:creator>Bankshot</dc:creator>
      <dc:date>2020-06-25T18:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Upload Data from SAS to Hadoop Impala</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Upload-Data-from-SAS-to-Hadoop-Impala/m-p/665114#M198803</link>
      <description>Did you saw this: &lt;A href="https://support.sas.com/kb/63/350.html" target="_blank"&gt;https://support.sas.com/kb/63/350.html&lt;/A&gt; ?&lt;BR /&gt;Bart</description>
      <pubDate>Thu, 25 Jun 2020 18:20:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Upload-Data-from-SAS-to-Hadoop-Impala/m-p/665114#M198803</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2020-06-25T18:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Upload Data from SAS to Hadoop Impala</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Upload-Data-from-SAS-to-Hadoop-Impala/m-p/665126#M198811</link>
      <description>&lt;P&gt;I did see this. But first, I did use bulk load&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;BULKLOAD=YES&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I'm also lost at its suggestion on to "&lt;SPAN&gt;make a copy of the core-site.xml&amp;nbsp;file and move it into the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;SAS_HADOOP_JAR_PATH&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;directory"&lt;/SPAN&gt;. I have no idea how this works. What is&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;SAS_HADOOP_JAR_PATH&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 19:14:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Upload-Data-from-SAS-to-Hadoop-Impala/m-p/665126#M198811</guid>
      <dc:creator>Bankshot</dc:creator>
      <dc:date>2020-06-25T19:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Upload Data from SAS to Hadoop Impala</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Upload-Data-from-SAS-to-Hadoop-Impala/m-p/665191#M198851</link>
      <description>&lt;P&gt;Update: I found out the reason on this. Apparently proc sql&amp;nbsp;&lt;SPAN&gt;will not assign formats to derived variables, that's why the select * here wouldn't work.&amp;nbsp;The second obstacle was when I referred to cccp_key’s format in SAS, I assumed it was format 20.0 based on the output from running proc contents. However, proc sql it requires the exact output so I had to change my format accordingly. The max number of my first column is 16-digit number, not 20. Hence:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; create table PrD.smp_203 as

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select account_key format=16.0 as account_key, date, etc, etc...

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from SAS.smp_203;

run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Jun 2020 23:16:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Upload-Data-from-SAS-to-Hadoop-Impala/m-p/665191#M198851</guid>
      <dc:creator>Bankshot</dc:creator>
      <dc:date>2020-06-25T23:16:14Z</dc:date>
    </item>
  </channel>
</rss>

