All Apps and Add-ons
Highlighted

jms_ta app and Python vs Python3

Path Finder

I have the following setup:-
Splunk Universal Forwarder 6.1.6
OS - AIX
jms_ta - 1.3.8
python3
Java 1.7.0

When we run the jms..py --scheme command, we see this

./splunk cmd /opt/bin/python3 ../etc/apps/jmsta/bin/jms.py --scheme
Traceback (most recent call last):
File "../etc/apps/jms
ta/bin/jms.py", line 122, in
doscheme()
File "../etc/apps/jms
ta/bin/jms.py", line 52, in doscheme
run
java()
File "../etc/apps/jmsta/bin/jms.py", line 71, in runjava
if (not os.environ.haskey('JAVAHOME')):

AttributeError: 'Environ' object has no attribute 'haskey'

When we restart splunk service we see this:

ERROR ModularInputs - Unable to initialize modular input "jms" defined inside the app "jmsta": Introspecting scheme=jms: Unable to run "python /opt/splunkforwarder/etc/apps/jmsta/bin/jms.py --scheme": child failed to start: No such file or directory
ERROR ModularInputs - Introspecting scheme=jms: Unable to run "python /opt/splunkforwarder/etc/apps/jmsta/bin/jms.py --scheme": child failed to start: No such file or directory
INFO SpecFiles - Found external scheme definition for stanza "jms://" with 23 parameters: jndi
initialcontextfactory, jndiproviderurl, jndiuser, jndipass, destinationuser, destinationpass, jmsconnectionfactoryname, durable, indexmessageproperties, indexmessageheader, messageselector, stripnewlines, initmode, localinitmoderesourcefactoryimpl, localinitmoderesourcefactoryparams, messagehandlerimpl, messagehandlerparams, clientid, userjndiproperties, browsequeueonly, browsefrequency, browsemode, jvmsystemproperties


JAVAHOME
SPLUNK
HOME
and CLASSPATH are all set

Any thoughts ??

0 Karma
Highlighted

Re: jms_ta app and Python vs Python3

Ultra Champion

You should use python 2.7

View solution in original post

Highlighted

Re: jms_ta app and Python vs Python3

Path Finder

Thank you for the information.

We are migrating the app to new AIX servers that can run python3 only.
Is there any version of jms_ta compatible with python3 ?
Appreciate any recommendations you might have.

0 Karma
Highlighted

Re: jms_ta app and Python vs Python3

Ultra Champion

Splunk runs python 2.7 , try pointing to Splunk's shipped python 2.7 runtime.

0 Karma
Highlighted

Re: jms_ta app and Python vs Python3

SplunkTrust
SplunkTrust

It's an universal forwarder which does not ship python 😉 But they could install a full Splunk instance https://www.splunk.com/page/previous_releases#ppcaix and have it run the input and forward the results .... if that is possible on this server ¯\_(ツ)_/¯

cheers, MuS

0 Karma
Highlighted

Re: jms_ta app and Python vs Python3

Ultra Champion

Heavy Forwarder implied.

0 Karma
Highlighted

Re: jms_ta app and Python vs Python3

Path Finder

Got it working with Splunk Heavy Forwarder .
Thank you

0 Karma
Highlighted

Re: jms_ta app and Python vs Python3

Path Finder

Thank you.
Worked after switching to Splunk Heavy Forwarder

0 Karma
Highlighted

Re: jms_ta app and Python vs Python3

SplunkTrust
SplunkTrust

Hi @rajanala, please accept the answer 🙂

cheers, MuS

0 Karma