<?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>question Issue running Impala Shell Commands with Oozie in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issue-running-Impala-Shell-Commands-with-Oozie/m-p/64098#M73993</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;When I run Impala shell commands with Oozie workflow based on the steps recommended here:&lt;BR /&gt;&lt;A href="http://community.cloudera.com/t5/Interactive-Short-cycle-SQL/Impala-schedule-with-oozie-tutorial/td-p/23906" target="_blank"&gt;http://community.cloudera.com/t5/Interactive-Short-cycle-SQL/Impala-schedule-with-oozie-tutorial/td-p/23906&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.cloudera.com/t5/Interactive-Short-cycle-SQL/How-to-Schedule-Impala-Jobs-with-Oozie/ta-p/31277/jump-to/first-unread-message" target="_blank"&gt;https://community.cloudera.com/t5/Interactive-Short-cycle-SQL/How-to-Schedule-Impala-Jobs-with-Oozie/ta-p/31277/jump-to/first-unread-message&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I am getting an error thrown:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Traceback (most recent call last):

File "/app/localstorage/parcels/CDH-5.12.1-1.cdh5.12.1.p0.3/bin/../lib/impala-shell/impala_shell.py", line 38, in

&amp;lt;module&amp;gt;

from impala_client import (ImpalaClient, DisconnectedException, QueryStateException,

File "/app/localstorage/parcels/CDH-5.12.1-1.cdh5.12.1.p0.3/lib/impala-shell/lib/impala_client.py", line 20, in &amp;lt;

module&amp;gt;

import sasl

File "/app/localstorage/parcels/CDH-5.12.1-1.cdh5.12.1.p0.3/lib/impala-shell/ext-py/sasl-0.1.1-py2.7-linux-x86_64

.egg/sasl/__init__.py", line 1, in &amp;lt;module&amp;gt;

 

File "/app/localstorage/parcels/CDH-5.12.1-1.cdh5.12.1.p0.3/lib/impala-shell/ext-py/sasl-0.1.1-py2.7-linux-x86_64

.egg/sasl/saslwrapper.py", line 7, in &amp;lt;module&amp;gt;

File "/app/localstorage/parcels/CDH-5.12.1-1.cdh5.12.1.p0.3/lib/impala-shell/ext-py/sasl-0.1.1-py2.7-linux-x86_64

.egg/_saslwrapper.py", line 7, in &amp;lt;module&amp;gt;

File "/app/localstorage/parcels/CDH-5.12.1-1.cdh5.12.1.p0.3/lib/impala-shell/ext-py/sasl-0.1.1-py2.7-linux-x86_64

.egg/_saslwrapper.py", line 6, in __bootstrap__

ImportError: /tmp/impala-shell-python-egg-cache-subuser/sasl-0.1.1-py2.7-linux-x86_64.egg-tmp/_saslwrapper.so: fail

ed to map segment from shared object: Operation not permitted&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;We are using kerberos and this folder has 777 permission, but still throwing this error.&lt;BR /&gt;&lt;BR /&gt;How do we resolve this?&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 12:47:58 GMT</pubDate>
    <dc:creator>kit24</dc:creator>
    <dc:date>2022-09-16T12:47:58Z</dc:date>
    <item>
      <title>Issue running Impala Shell Commands with Oozie</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issue-running-Impala-Shell-Commands-with-Oozie/m-p/64098#M73993</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;When I run Impala shell commands with Oozie workflow based on the steps recommended here:&lt;BR /&gt;&lt;A href="http://community.cloudera.com/t5/Interactive-Short-cycle-SQL/Impala-schedule-with-oozie-tutorial/td-p/23906" target="_blank"&gt;http://community.cloudera.com/t5/Interactive-Short-cycle-SQL/Impala-schedule-with-oozie-tutorial/td-p/23906&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.cloudera.com/t5/Interactive-Short-cycle-SQL/How-to-Schedule-Impala-Jobs-with-Oozie/ta-p/31277/jump-to/first-unread-message" target="_blank"&gt;https://community.cloudera.com/t5/Interactive-Short-cycle-SQL/How-to-Schedule-Impala-Jobs-with-Oozie/ta-p/31277/jump-to/first-unread-message&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I am getting an error thrown:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Traceback (most recent call last):

File "/app/localstorage/parcels/CDH-5.12.1-1.cdh5.12.1.p0.3/bin/../lib/impala-shell/impala_shell.py", line 38, in

&amp;lt;module&amp;gt;

from impala_client import (ImpalaClient, DisconnectedException, QueryStateException,

File "/app/localstorage/parcels/CDH-5.12.1-1.cdh5.12.1.p0.3/lib/impala-shell/lib/impala_client.py", line 20, in &amp;lt;

module&amp;gt;

import sasl

File "/app/localstorage/parcels/CDH-5.12.1-1.cdh5.12.1.p0.3/lib/impala-shell/ext-py/sasl-0.1.1-py2.7-linux-x86_64

.egg/sasl/__init__.py", line 1, in &amp;lt;module&amp;gt;

 

File "/app/localstorage/parcels/CDH-5.12.1-1.cdh5.12.1.p0.3/lib/impala-shell/ext-py/sasl-0.1.1-py2.7-linux-x86_64

.egg/sasl/saslwrapper.py", line 7, in &amp;lt;module&amp;gt;

File "/app/localstorage/parcels/CDH-5.12.1-1.cdh5.12.1.p0.3/lib/impala-shell/ext-py/sasl-0.1.1-py2.7-linux-x86_64

.egg/_saslwrapper.py", line 7, in &amp;lt;module&amp;gt;

File "/app/localstorage/parcels/CDH-5.12.1-1.cdh5.12.1.p0.3/lib/impala-shell/ext-py/sasl-0.1.1-py2.7-linux-x86_64

.egg/_saslwrapper.py", line 6, in __bootstrap__

ImportError: /tmp/impala-shell-python-egg-cache-subuser/sasl-0.1.1-py2.7-linux-x86_64.egg-tmp/_saslwrapper.so: fail

ed to map segment from shared object: Operation not permitted&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;We are using kerberos and this folder has 777 permission, but still throwing this error.&lt;BR /&gt;&lt;BR /&gt;How do we resolve this?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 12:47:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issue-running-Impala-Shell-Commands-with-Oozie/m-p/64098#M73993</guid>
      <dc:creator>kit24</dc:creator>
      <dc:date>2022-09-16T12:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Issue running Impala Shell Commands with Oozie</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issue-running-Impala-Shell-Commands-with-Oozie/m-p/64222#M73994</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Problem Solved&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="3"&gt;The issue was that&amp;nbsp;&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="3"&gt;the script &lt;STRONG&gt;/bin/impala_shell&lt;/STRONG&gt; is hardcoded by cloudera on our nodes, and so the PYTHON_EGG_CACHE always got redefined to /tmp &lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="3"&gt;Below is a snippet of the code in &lt;STRONG&gt;/bin/impala_shell&lt;/STRONG&gt;:&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;# We should set the EGG_CACHE to a per-user temporary location.
# This follows what hue does.
PYTHON_EGG_CACHE=/tmp/impala-shell-python-egg-cache-${USER}
if [ ! -d ${PYTHON_EGG_CACHE} ]; then
  mkdir ${PYTHON_EGG_CACHE}
fi&lt;/PRE&gt;&lt;P&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif"&gt;Additionally, /tmp was not exec mounted on all nodes. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif"&gt;In order to solve the issue we were having, we added the below code to the impala shell script that&amp;nbsp;we want to&amp;nbsp;run with oozie:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;export PYTHON_EGG_CACHE=/app/bds
export link_folder=/tmp/impala-shell-python-egg-cache-$(whoami)
if ! [ -L $link_folder ]
then
    rm -Rf "$link_folder"
    ln -sfn ${PYTHON_EGG_CACHE}${link_folder} ${link_folder}
fi
mkdir -p ${PYTHON_EGG_CACHE}${link_folder} &lt;/PRE&gt;&lt;P&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif"&gt;This creates a new link dir for PYTHON_EGG_CACHE,&amp;nbsp;on a shared folder, which can be accessed by all nodes. &lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 15:35:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issue-running-Impala-Shell-Commands-with-Oozie/m-p/64222#M73994</guid>
      <dc:creator>kit24</dc:creator>
      <dc:date>2018-02-01T15:35:12Z</dc:date>
    </item>
  </channel>
</rss>

