<?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 SAS EG to Hadoop Hive Data step creates table with no data in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-to-Hadoop-Hive-Data-step-creates-table-with-no-data/m-p/665034#M36303</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am creating a Hive table from SAS. When I write to hadoop from SAS EG I get results that 10 rows have been created. However, I see an empty table with just column names in hadoop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using following code:&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;option set=SAS_HADOOP_CONFIG_PATH="/sas/hadoopfiles/conf";
option set=SAS_HADOOP_JAR_PATH="/sas/hadoopfiles/lib";

&amp;nbsp;

LIBNAME dmart HADOOP &amp;nbsp;PORT=xxx SERVER="xxxx" &amp;nbsp;SCHEMA=p_mart;

proc contents dmart =dmart.tb_temp; run;

&amp;nbsp;

data work.local_sample;
set dmart.tb_temp(obs=10 keep=col dbsastype=(col='CHAR(200)') );
run;

&amp;nbsp;

data dmart .tb_load;
set work.local_sample;
run;

&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;Any help on this is highly appreciated.&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 25 Jun 2020 14:52:05 GMT</pubDate>
    <dc:creator>saumyasri</dc:creator>
    <dc:date>2020-06-25T14:52:05Z</dc:date>
    <item>
      <title>SAS EG to Hadoop Hive Data step creates table with no data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-to-Hadoop-Hive-Data-step-creates-table-with-no-data/m-p/665034#M36303</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am creating a Hive table from SAS. When I write to hadoop from SAS EG I get results that 10 rows have been created. However, I see an empty table with just column names in hadoop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using following code:&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;option set=SAS_HADOOP_CONFIG_PATH="/sas/hadoopfiles/conf";
option set=SAS_HADOOP_JAR_PATH="/sas/hadoopfiles/lib";

&amp;nbsp;

LIBNAME dmart HADOOP &amp;nbsp;PORT=xxx SERVER="xxxx" &amp;nbsp;SCHEMA=p_mart;

proc contents dmart =dmart.tb_temp; run;

&amp;nbsp;

data work.local_sample;
set dmart.tb_temp(obs=10 keep=col dbsastype=(col='CHAR(200)') );
run;

&amp;nbsp;

data dmart .tb_load;
set work.local_sample;
run;

&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;Any help on this is highly appreciated.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 25 Jun 2020 14:52:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-to-Hadoop-Hive-Data-step-creates-table-with-no-data/m-p/665034#M36303</guid>
      <dc:creator>saumyasri</dc:creator>
      <dc:date>2020-06-25T14:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG to Hadoop Hive Data step creates table with no data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-to-Hadoop-Hive-Data-step-creates-table-with-no-data/m-p/665050#M36305</link>
      <description>&lt;P&gt;Are you able to create hive table directly using beeline using the same ID that you are using from SAS to make connection to hive? It's always good to test sample scenario out of SAS just to make sure it works.&lt;/P&gt;
&lt;P&gt;Would also suggest to add trace options to the code to get more detailed logs on whats causing this.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 15:49:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-to-Hadoop-Hive-Data-step-creates-table-with-no-data/m-p/665050#M36305</guid>
      <dc:creator>AnandVyas</dc:creator>
      <dc:date>2020-06-25T15:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG to Hadoop Hive Data step creates table with no data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-to-Hadoop-Hive-Data-step-creates-table-with-no-data/m-p/665085#M36306</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/52993"&gt;@AnandVyas&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;My create table command works fine outside SAS and I can see data in my Hive table.&lt;/P&gt;&lt;P&gt;However, I am not getting data from SAS. I turned on trace option. I am getting an output given below:&lt;/P&gt;&lt;PRE&gt;37         data mart.cars_test;
38            set sashelp.cars;
39         run;

 
HADOOP_1: Prepared: on connection 1
SHOW TABLES IN `mart` 'CARS_TEST'
 
NOTE: SAS variable labels, formats, and lengths are not written to DBMS tables.
2                                                          The SAS System                            Thursday, 25 June 2020 18:57:00

 
HADOOP_2: Executed: on connection 2
CREATE TABLE `mart`.`CARS_TEST` (`Make` VARCHAR(13),`Model` VARCHAR(40),`Type` VARCHAR(8),`Origin` VARCHAR(6),`DriveTrain` 
VARCHAR(5),`MSRP` DOUBLE,`Invoice` DOUBLE,`EngineSize` DOUBLE,`Cylinders` DOUBLE,`Horsepower` DOUBLE,`MPG_City` 
DOUBLE,`MPG_Highway` DOUBLE,`Weight` DOUBLE,`Wheelbase` DOUBLE,`Length` DOUBLE) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\001' 
LINES TERMINATED BY '\012' STORED AS TEXTFILE TBLPROPERTIES ('SAS OS Name'='Linux','SAS Version'='9.04.01M6P11072018')
 
NOTE: There were 428 observations read from the data set SASHELP.CARS.
NOTE: The data set MART.CARS_TEST has 428 observations and 15 variables.
 
HADOOP_3: Executed: on connection 2
LOAD DATA INPATH '/tmp/sasdata-xxxxx.dlv' OVERWRITE INTO TABLE `mart`.`CARS_TEST`
 
NOTE: DATA statement used (Total process time):
      real time           4:04.02
      cpu time            0.18 seconds
      

40         
 
HADOOP_4: Prepared: on connection 0
DESCRIBE FORMATTED `mart`.`CARS_TEST`
 
 
HADOOP_5: Prepared: on connection 0
SELECT * FROM `mart`.`CARS_TEST` LIMIT 0 -- /* initial prepare */
 &lt;/PRE&gt;&lt;P&gt;It looks fine from the output but still no luck. Do you have any idea?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 17:29:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-to-Hadoop-Hive-Data-step-creates-table-with-no-data/m-p/665085#M36306</guid>
      <dc:creator>saumyasri</dc:creator>
      <dc:date>2020-06-25T17:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG to Hadoop Hive Data step creates table with no data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-to-Hadoop-Hive-Data-step-creates-table-with-no-data/m-p/665708#M36328</link>
      <description>I don't see any error/warn on the output. Try to view the table created from SAS using beeline. If that also doesn't work you may have to check logs on hadoop side to see if there are any errors being reported.&lt;BR /&gt;&lt;BR /&gt;Also, I would advise you to raise a SAS TS track by sharing these details at support@sas.com for assistance.</description>
      <pubDate>Mon, 29 Jun 2020 06:07:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-to-Hadoop-Hive-Data-step-creates-table-with-no-data/m-p/665708#M36328</guid>
      <dc:creator>AnandVyas</dc:creator>
      <dc:date>2020-06-29T06:07:33Z</dc:date>
    </item>
  </channel>
</rss>

