All Apps and Add-ons

Dynatrace Application Performance Management: Getting error that Flume is not running on my Splunk Linux server

mprreddy51
Explorer

Hi Experts,

I installed the Dynatrace Application Performance Management app from Splunkbase and installed it on my Indexer (Linux Splunk server). I am getting an error that Flume server is not running. I tried manually, but no luck. I installed the same APM app in my Windows machine and it is running.

deleted PID also, but no luck.

Any ideas/suggestions experts?

Below is the error message (when I manually tried to run runFlume.py):

[splk@hostname bin]$ python runFlume.py java version "1.7.0_95" OpenJDK Runtime Environment (rhel-2.6.4.0.e*_7-x86_64 u-b) OpenJDK 64-Bit Server VM (build 24.-b, mixed mode) Child returned 0 Class path: /splunk_/etc/apps/compuwareapm/bin/bin/apache-flume-1.3.1-bin/lib/*:/data/splunk_grt/etc/apps/compuwareapm/bin/bin/apache-flume-1.3.1-bin/lib/flume-ng-node-1.3.1.jar:/splunk_*/etc/apps/compuwareapm/bin/bin/dtFlume.jar PID file exists but process is no longer running. Removing pidfile Error: Could not find or load main class org.apache.flume.node.Application Child returned 1

0 Karma

Dynatrace
Path Finder

It seems that about 1 in every 1000 installations of the app result in the classpath being improperly constructed by the Python script that starts Flume.

You can resolve this issue by editing the following lines in /%SPLUNK_HOME%/etc/apps/compuwareapm/bin/runFlume.py:

c1 = os.path.join(appdir, "bin", "apache-flume-1.3.1-bin", "lib", "*")
c2 = os.path.join(appdir, "bin", "apache-flume-1.3.1-bin", "lib", "flume-ng-node-1.3.1.jar")
c3 = os.path.join(appdir, "bin", "dtFlume.jar")

remove the leading "bin" so that the lines read:

c1 = os.path.join(appdir, "apache-flume-1.3.1-bin", "lib", "*")
c2 = os.path.join(appdir, "apache-flume-1.3.1-bin", "lib", "flume-ng-node-1.3.1.jar")
c3 = os.path.join(appdir, "dtFlume.jar")

I have been unsuccesfully trying to nail down the source of this issue for quite some time, It appears that on some Splunk environments appdir = os.path.dirname(os.path.dirname(__file__)) will result in /%SPLUNK_HOME%/etc/apps/compuwareapm and in other environments it will result in /%SPLUNK_HOME%/etc/apps/compuwareapm/bin.

0 Karma

Dynatrace
Path Finder

In case this comes up in the search results for other folks experiencing this issue a fix has been created and uploaded as part of the 2.3.0 release of this app.

The fix was to change the line defining appdir in the runFlume.py to the following:

appdir = os.path.abspath(os.path.join(os.path.dirname(__file__),".."))
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Kick the Tires Before You Commit: A Hands-On Tour of the Splunk Observability Cloud ...

Evaluating an enterprise observability platform usually goes like this: fill out a form, get a free trial with ...

Deep insights, no barriers: Splunk Observability Cloud Free Edition

As software delivery cycles continue to accelerate, observability shouldn’t be a luxury — it should be a ...

Monitoring AI Agents with Splunk Observability Cloud

Let’s say I’m running a travel planning AI app in production. A user asks for three concise hotel options in ...