<?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 with where statement from libname hadoop dataset in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Error-with-where-statement-from-libname-hadoop-dataset/m-p/647516#M22157</link>
    <description>&lt;P&gt;Hi Anand, I've tried a few tables and they work fine until I include the WHERE statement in my data step. Does this mean that the administrator has limited access to the database?&lt;/P&gt;</description>
    <pubDate>Wed, 13 May 2020 16:00:25 GMT</pubDate>
    <dc:creator>ashlyn</dc:creator>
    <dc:date>2020-05-13T16:00:25Z</dc:date>
    <item>
      <title>Error with where statement from libname hadoop dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-with-where-statement-from-libname-hadoop-dataset/m-p/647404#M22153</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a libname as shown below and execution is successful.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;libname cs hadoop user='myusername' pw='mypw' server="myserver" port=443 dbmax_text=200 subprotocol=hive2 &lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;properties="myproperties" database=mydb;&lt;/EM&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I proceeded to pull data from the created libname and execution is successful as well.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;data abc;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;set cs.fruits (obs=100);&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I added a WHERE statement into the same codes above, I get an error.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;d&lt;/STRONG&gt;&lt;STRONG&gt;ata def;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;set cs.fruits (obs=100);&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;where fruit_type = 'Banana';&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;ERROR: Prepare error: org.apache.hive.service.cli.HiveSQLException: Error while processing statement: FAILED: Execution Error,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask at&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;org.apache.hive.service.cli.operation.Operation.toSQLException(Operation.java:380) at&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;org.apache.hive.service.cli.operation.SQLOperation.runQuery(SQLOperation.java:257) at&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;org.apache.hive.service.cli.operation.SQLOperation.access$800(SQLOperation.java:91) at&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork$1.run(SQLOperation.java:348) at&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:422) at&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1669) at&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork.run(SQLOperation.java:362) at&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;java.util.concurrent.FutureTask.run(FutureTask.java:266) at&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;SQL statement: SELECT&amp;nbsp; `fruits`.`id`, `fruits`.`fruit_type`,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;`fruits`.`cost_per_unit`, `fruits`.`purchase_date`, `fruits`.`item_desc`&amp;nbsp;&lt;/FONT&gt;&lt;FONT color="#FF0000"&gt;FROM `mydb`.`fruits`&amp;nbsp; WHERE&amp;nbsp; ( `fruit_type` = 'Banana' )&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 10:57:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-with-where-statement-from-libname-hadoop-dataset/m-p/647404#M22153</guid>
      <dc:creator>ashlyn</dc:creator>
      <dc:date>2020-05-13T10:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error with where statement from libname hadoop dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-with-where-statement-from-libname-hadoop-dataset/m-p/647492#M22156</link>
      <description>Exception looks to be something with permission 'javax.security.auth.Subject.doAs(Subject.java:422) at       org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1669) '&lt;BR /&gt;Are you facing this for all the tables or only this one?  Does it work outside of SAS like from beeline?</description>
      <pubDate>Wed, 13 May 2020 14:57:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-with-where-statement-from-libname-hadoop-dataset/m-p/647492#M22156</guid>
      <dc:creator>AnandVyas</dc:creator>
      <dc:date>2020-05-13T14:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error with where statement from libname hadoop dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-with-where-statement-from-libname-hadoop-dataset/m-p/647516#M22157</link>
      <description>&lt;P&gt;Hi Anand, I've tried a few tables and they work fine until I include the WHERE statement in my data step. Does this mean that the administrator has limited access to the database?&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 16:00:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-with-where-statement-from-libname-hadoop-dataset/m-p/647516#M22157</guid>
      <dc:creator>ashlyn</dc:creator>
      <dc:date>2020-05-13T16:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error with where statement from libname hadoop dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-with-where-statement-from-libname-hadoop-dataset/m-p/647520#M22158</link>
      <description>Yes, it could be. That's why if you have access to beeline you can query and confirm it for sure if it's happening only from SAS or outside of SAS as well. If you don't have access to beeline then I would suggest to check with Admin if any such permissions are applied to be sure.</description>
      <pubDate>Wed, 13 May 2020 16:10:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-with-where-statement-from-libname-hadoop-dataset/m-p/647520#M22158</guid>
      <dc:creator>AnandVyas</dc:creator>
      <dc:date>2020-05-13T16:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error with where statement from libname hadoop dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-with-where-statement-from-libname-hadoop-dataset/m-p/647527#M22159</link>
      <description>&lt;P&gt;Thanks! I will check with Admin on the Beeline access. Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 16:28:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-with-where-statement-from-libname-hadoop-dataset/m-p/647527#M22159</guid>
      <dc:creator>ashlyn</dc:creator>
      <dc:date>2020-05-13T16:28:07Z</dc:date>
    </item>
  </channel>
</rss>

