<?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 Re: Unable to execute ExecuteStreamCommand processor in NIFI in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-execute-ExecuteStreamCommand-processor-in-NIFI/m-p/215233#M66427</link>
    <description>&lt;P&gt;Please read the error message. The HBase client has a number of dependencies that it requires to function. You have not included them on the classpath of your application.&lt;/P&gt;&lt;P&gt;Please use the output of `hbase classpath` to see what all is required.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Aug 2017 22:39:07 GMT</pubDate>
    <dc:creator>elserj</dc:creator>
    <dc:date>2017-08-11T22:39:07Z</dc:date>
    <item>
      <title>Unable to execute ExecuteStreamCommand processor in NIFI</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-execute-ExecuteStreamCommand-processor-in-NIFI/m-p/215229#M66423</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I am using NIFI in HDP sandbox to execute a java jar. This jar contains a simple Hbase which creates a table based on argument supplied from NIFI instance.&lt;/P&gt;&lt;P&gt;I used ExecuteStreamComand processor to call this jar with properties as said shown &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="26442-executestreamcommandproperties.png" style="width: 824px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16329i63BF552E1E08AC04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="26442-executestreamcommandproperties.png" alt="26442-executestreamcommandproperties.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but it throws error as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="26443-error-dialog.png" style="width: 1215px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16330iB43B80DAEA5F04B3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="26443-error-dialog.png" alt="26443-error-dialog.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried again but by changing the Working Directory to:&lt;/P&gt;&lt;PRE&gt; root/IdeaProjects/mavenhbasetest/target/&lt;/PRE&gt;&lt;P&gt;I now get the following error :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="26444-error-2.png" style="width: 1216px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16331i7D4ACCCE038573B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="26444-error-2.png" alt="26444-error-2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Fyi, I tried testing the jar in shell and it works fine.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="26445-hbasetest.png" style="width: 1212px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16332iB6B5D7A58884CC89/image-size/medium?v=v2&amp;amp;px=400" role="button" title="26445-hbasetest.png" alt="26445-hbasetest.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Could someone provide me help on where am I going wrong?&lt;BR /&gt;&lt;BR /&gt;Thanks and regards,&lt;BR /&gt;Jasim&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 03:20:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-execute-ExecuteStreamCommand-processor-in-NIFI/m-p/215229#M66423</guid>
      <dc:creator>jasim_waheed</dc:creator>
      <dc:date>2019-08-18T03:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to execute ExecuteStreamCommand processor in NIFI</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-execute-ExecuteStreamCommand-processor-in-NIFI/m-p/215230#M66424</link>
      <description>&lt;P&gt;Is NiFi running as root? Perhaps it does not have the permission to read the JAR file. You could try copying the JAR file to /tmp/ and reference it there.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 23:14:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-execute-ExecuteStreamCommand-processor-in-NIFI/m-p/215230#M66424</guid>
      <dc:creator>elserj</dc:creator>
      <dc:date>2017-08-10T23:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to execute ExecuteStreamCommand processor in NIFI</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-execute-ExecuteStreamCommand-processor-in-NIFI/m-p/215231#M66425</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/223/jelser.html" nodeid="223" target="_blank"&gt;@Josh Elser&lt;/A&gt; I did make change as you said and also added nifi in sudoers as root. But, now I am getting JNI Error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="26458-jni-error.png" style="width: 1215px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16327i97934F7FA79595E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="26458-jni-error.png" alt="26458-jni-error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="26459-nifi-root-permission-sudoers.png" style="width: 733px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16328i17D2CBED020B1044/image-size/medium?v=v2&amp;amp;px=400" role="button" title="26459-nifi-root-permission-sudoers.png" alt="26459-nifi-root-permission-sudoers.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Tried even after chown as nifi:nifi to folder where java is stored.&lt;/P&gt;&lt;P&gt;But I still get the sam JNI error.&lt;BR /&gt;&lt;BR /&gt;Where am I going wrong?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 03:19:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-execute-ExecuteStreamCommand-processor-in-NIFI/m-p/215231#M66425</guid>
      <dc:creator>jasim_waheed</dc:creator>
      <dc:date>2019-08-18T03:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to execute ExecuteStreamCommand processor in NIFI</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-execute-ExecuteStreamCommand-processor-in-NIFI/m-p/215232#M66426</link>
      <description>&lt;P&gt;It's easiest to run your commands in a shell script.&lt;/P&gt;&lt;P&gt;What I do is create a shell script, make sure it has all the permissions you need and set any CLASSPATH, JAVA_HOME and other environment variables.&lt;/P&gt;&lt;P&gt;Then I just call it like&lt;/P&gt;&lt;P&gt;/opt/mydir/myshell.sh&lt;/P&gt;&lt;P&gt;This is 777 and will call my java via java -jar ...&lt;/P&gt;&lt;P&gt;Build a jar and run it that way.&lt;/P&gt;&lt;P&gt;Or wrap it in a custom processor.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/73811/trigger-sonicpi-music-via-apache-nifi.html" target="_blank"&gt;https://community.hortonworks.com/articles/73811/trigger-sonicpi-music-via-apache-nifi.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 22:30:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-execute-ExecuteStreamCommand-processor-in-NIFI/m-p/215232#M66426</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2017-08-11T22:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to execute ExecuteStreamCommand processor in NIFI</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-execute-ExecuteStreamCommand-processor-in-NIFI/m-p/215233#M66427</link>
      <description>&lt;P&gt;Please read the error message. The HBase client has a number of dependencies that it requires to function. You have not included them on the classpath of your application.&lt;/P&gt;&lt;P&gt;Please use the output of `hbase classpath` to see what all is required.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 22:39:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-execute-ExecuteStreamCommand-processor-in-NIFI/m-p/215233#M66427</guid>
      <dc:creator>elserj</dc:creator>
      <dc:date>2017-08-11T22:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to execute ExecuteStreamCommand processor in NIFI</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-execute-ExecuteStreamCommand-processor-in-NIFI/m-p/215234#M66428</link>
      <description>&lt;P&gt;What helped me was, first copying the file to the $NIFI_HOME/lib folder then giving the full path of the jar file in the ExecuteStreamCommand processor. So the config looked like "-jar; /opt/nifi-1.7.1/lib/mycode.jar". Couple things to ensure is that the jar is owned by the same user that NiFi is running as and the jar could be located anywhere as long as you give full path you should be fine. &lt;/P&gt;</description>
      <pubDate>Fri, 28 Dec 2018 21:36:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-execute-ExecuteStreamCommand-processor-in-NIFI/m-p/215234#M66428</guid>
      <dc:creator>vchhipa</dc:creator>
      <dc:date>2018-12-28T21:36:06Z</dc:date>
    </item>
  </channel>
</rss>

