<?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: Error accessing 'big' tables using SAS Studio in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Error-accessing-big-tables-using-SAS-Studio/m-p/273904#M570</link>
    <description>&lt;P&gt;Thanks for the quick answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added your options statement and let this statement run again:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname myhive hadoop subprotocol=hive2 port=10000 host="myhost" schema=myhive user=&amp;amp;u_name. pw=&amp;amp;u_pass.;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;options&lt;/SPAN&gt; msglevel&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;i sastrace&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;',,,d'&lt;/SPAN&gt; sastraceloc&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;saslog nostsuffix&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;BR /&gt;data test; set myhive.bigtable; run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I get the following messages:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;HADOOP_1: Executed: on connection 3
USE `myhive`
 
HADOOP_2: Prepared: on connection 3
SHOW TABLES 'BIGTABLE'
 
HADOOP_3: Prepared: on connection 3
DESCRIBE FORMATTED BIGTABLE
 
HADOOP_4: Prepared: on connection 3
SELECT * FROM `BIGTABLE`
 
ERROR: Prepare error: Error while processing statement: FAILED: Execution Error, return code 1 from
org.apache.hadoop.hive.ql.exec.mr.MapRedTask
SQL statement: SELECT * FROM `BIGTABLE'&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 30 May 2016 12:54:18 GMT</pubDate>
    <dc:creator>JanVanHeyden</dc:creator>
    <dc:date>2016-05-30T12:54:18Z</dc:date>
    <item>
      <title>Error accessing 'big' tables using SAS Studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Error-accessing-big-tables-using-SAS-Studio/m-p/273891#M568</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to use SAS Studio for data preparation within hadoop. I'm using the libname statement or pass-through querries as 'proc sql'. From my understanding SAS generates hiveql code that does the work within hadoop and simply delivers the answer back to SAS Studio.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For 'smaller' tables it works just fine. For 'bigger' datasets I need to do the job directly in HIVE or use a work around. e.g.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname myhive hadoop subprotocol=hive2 port=10000 host="myhost" schema=default user=&amp;amp;u_name. pw=&amp;amp;u_pass.;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set myhive.bigtable;&amp;nbsp; *the table has around 4m rows and 40 columns, which isn't that big really;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For this statement I get the following error:&lt;/P&gt;&lt;DIV class="sasError"&gt;&lt;STRONG&gt;ERROR: Prepare error: Error while processing statement: FAILED: Execution Error, return code 1 from &lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&lt;STRONG&gt;org.apache.hadoop.hive.ql.exec.mr.MapRedTask&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&lt;STRONG&gt;SQL statement: SELECT * FROM `bigtable`&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;I guess its something to do with the size of the table. If I use an obs=1000000 statement and read-in the table in 4 datasets á 1m each it works.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;I get the same error if I use any proc-step or proc-sql step on that data table. If I e.g. want to get some simple proc freq counts I get the same error.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;Any help, ideas, work arounds would be highly appreciated!&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2016 11:41:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Error-accessing-big-tables-using-SAS-Studio/m-p/273891#M568</guid>
      <dc:creator>JanVanHeyden</dc:creator>
      <dc:date>2016-05-30T11:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error accessing 'big' tables using SAS Studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Error-accessing-big-tables-using-SAS-Studio/m-p/273898#M569</link>
      <description>&lt;P&gt;Sounds like from the eror message that you have a problem on the Hive side.&lt;/P&gt;
&lt;P&gt;Use&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options msglevel=i sastrace=',,,d' sastraceloc=saslog nostsuffix;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to fins out more what SAS/ACCESS transforms to Hive, and how Hive reacts (try first with a small query so you get the error free version).&lt;/P&gt;
&lt;P&gt;I take it that you use a commercial SAS license&amp;nbsp;with no data volume restrictions?&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2016 12:20:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Error-accessing-big-tables-using-SAS-Studio/m-p/273898#M569</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-05-30T12:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error accessing 'big' tables using SAS Studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Error-accessing-big-tables-using-SAS-Studio/m-p/273904#M570</link>
      <description>&lt;P&gt;Thanks for the quick answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added your options statement and let this statement run again:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname myhive hadoop subprotocol=hive2 port=10000 host="myhost" schema=myhive user=&amp;amp;u_name. pw=&amp;amp;u_pass.;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;options&lt;/SPAN&gt; msglevel&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;i sastrace&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;',,,d'&lt;/SPAN&gt; sastraceloc&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;saslog nostsuffix&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;BR /&gt;data test; set myhive.bigtable; run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I get the following messages:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;HADOOP_1: Executed: on connection 3
USE `myhive`
 
HADOOP_2: Prepared: on connection 3
SHOW TABLES 'BIGTABLE'
 
HADOOP_3: Prepared: on connection 3
DESCRIBE FORMATTED BIGTABLE
 
HADOOP_4: Prepared: on connection 3
SELECT * FROM `BIGTABLE`
 
ERROR: Prepare error: Error while processing statement: FAILED: Execution Error, return code 1 from
org.apache.hadoop.hive.ql.exec.mr.MapRedTask
SQL statement: SELECT * FROM `BIGTABLE'&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 May 2016 12:54:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Error-accessing-big-tables-using-SAS-Studio/m-p/273904#M570</guid>
      <dc:creator>JanVanHeyden</dc:creator>
      <dc:date>2016-05-30T12:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error accessing 'big' tables using SAS Studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Error-accessing-big-tables-using-SAS-Studio/m-p/273913#M571</link>
      <description>&lt;P&gt;What I was trying to say was have a successful execution&amp;nbsp;first (obs=1000000), and see if you can identify any HiveQL issues.&lt;/P&gt;
&lt;P&gt;Otherwise, I would try open a track to SAS tech support.&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2016 13:31:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Error-accessing-big-tables-using-SAS-Studio/m-p/273913#M571</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-05-30T13:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error accessing 'big' tables using SAS Studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Error-accessing-big-tables-using-SAS-Studio/m-p/273921#M572</link>
      <description>&lt;P&gt;Looks like no HiveQL issues to me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess I will open a track then.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2016 14:17:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Error-accessing-big-tables-using-SAS-Studio/m-p/273921#M572</guid>
      <dc:creator>JanVanHeyden</dc:creator>
      <dc:date>2016-05-30T14:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error accessing 'big' tables using SAS Studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Error-accessing-big-tables-using-SAS-Studio/m-p/275306#M615</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we found the solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got 2 slightly different Usernames for HUE and SasStudio. In the libname statement to connect to "myhive" I was using the SAS Studio User and PW. This is of course wrong. You need to set it to the User and PW for HUE. Strangely, however, the connection to hive still works if I used a "wrong" User and PW combination for smaller datasets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2016 07:55:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Error-accessing-big-tables-using-SAS-Studio/m-p/275306#M615</guid>
      <dc:creator>JanVanHeyden</dc:creator>
      <dc:date>2016-06-06T07:55:06Z</dc:date>
    </item>
  </channel>
</rss>

