<?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: Creating HIVE table from CSV in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creating-HIVE-table-from-CSV/m-p/526258#M143289</link>
    <description>&lt;P&gt;I reckon you also need a connection name.&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;proc sql;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; connect ... as HIVE;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; execute &lt;STRONG&gt;by HIVE&lt;/STRONG&gt; ( ... ); &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;quit;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Jan 2019 02:21:26 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2019-01-11T02:21:26Z</dc:date>
    <item>
      <title>Creating HIVE table from CSV</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-HIVE-table-from-CSV/m-p/526233#M143277</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using EG 7.1 and have a URI connection to a Hadoop environment.&amp;nbsp; I am trying to load a CSV file that I uploaded to HDFS through Ambari.&amp;nbsp; I am trying to run the code below, it will run with no errors, but I don't see the table in my directory.&amp;nbsp; I know how to load using the proc hadoop procedure but since i am utilizing the URI through libraries I thought I could bypass this.&amp;nbsp; One thing I noticed is that when I run this in DBVISUALIZER I always set the directory initially with a 'use' statement.&amp;nbsp; What would be the equivalent of this with a SAS/ACESS URI connection?&amp;nbsp; I am wondering if my problem is that it doesn't know what database to put it to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;execute (create table bill_component_test(&lt;BR /&gt;DIST_ID string,&lt;BR /&gt;bill_component string,&lt;BR /&gt;statistics_cd string)&lt;BR /&gt;ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.OpenCSVSerde'&lt;BR /&gt;WITH SERDEPROPERTIES ("escapeChar"="\\",&lt;BR /&gt;"quoteChar"="'"&lt;BR /&gt;"separatorChar"=",")&lt;BR /&gt;STORED AS INPUTFORMAT&lt;BR /&gt;"org.apache.hadoop.mapred.TextInputFormat"&lt;BR /&gt;OUTPUTFORMAT&lt;BR /&gt;"org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat"&lt;BR /&gt;LOCATION "hdfs://MSNHDPPROD1/data/work/departmental/revenue_forecasting/bill_component");&lt;BR /&gt;quit;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 23:05:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-HIVE-table-from-CSV/m-p/526233#M143277</guid>
      <dc:creator>dkassis</dc:creator>
      <dc:date>2019-01-10T23:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Creating HIVE table from CSV</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-HIVE-table-from-CSV/m-p/526258#M143289</link>
      <description>&lt;P&gt;I reckon you also need a connection name.&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;proc sql;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; connect ... as HIVE;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; execute &lt;STRONG&gt;by HIVE&lt;/STRONG&gt; ( ... ); &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;quit;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 02:21:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-HIVE-table-from-CSV/m-p/526258#M143289</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-01-11T02:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Creating HIVE table from CSV</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-HIVE-table-from-CSV/m-p/528629#M144309</link>
      <description>&lt;P&gt;Thanks for the reply, I am working on this now with our admins.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jan 2019 17:30:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-HIVE-table-from-CSV/m-p/528629#M144309</guid>
      <dc:creator>dkassis</dc:creator>
      <dc:date>2019-01-20T17:30:03Z</dc:date>
    </item>
  </channel>
</rss>

