All Apps and Add-ons

d "No java path specified for stanza rpcstart://default" with my java home environment variable setup?

narayanab16
New Member

Hi,

I have Hunk 2.6 and Splunk DB Connect 2

I have java home env variable setup

[root@hdp23ambari ~]# su hdpadmin
[hdpadmin@hdp23ambari root]$ echo $JAVA_HOME
/usr/jdk64/jdk1.8.0_40/

But the connection is failing with the following errors:

08/23/2015 12:00:22 [CRITICAL] [rpcstart.py] No java path specified for stanza rpcstart://default
08/23/2015 12:00:22 [CRITICAL] [rpcstart.py] RPC server has been terminated abnormally with error [No java path specified].
08/23/2015 12:00:35 [ERROR] [__init__.py] [Errno 111] Connection refused
Traceback (most recent call last):
  File "/opt/splunk/hunk/lib/python2.7/site-packages/splunk/rest/__init__.py", line 184, in dispatch
    methodOutput = method()
  File "/opt/splunk/hunk/etc/apps/splunk_app_db_connect/bin/dbinfo.py", line 31, in handle_GET
    self.dbx2 = service.build_service(self.get_rpc_channel())
  File "/opt/splunk/hunk/etc/apps/splunk_app_db_connect/bin/dbx2/service.py", line 620, in build_service
    raise error
error: [Errno 111] **Connection refused**
08/23/2015 12:00:37 [CRITICAL] [rpcstart.py] No java path specified for stanza rpcstart://default
08/23/2015 12:00:37 [CRITICAL] [rpcstart.py] RPC server has been terminated abnormally with error [No java path specified].
08/23/2015 12:00:52 [CRITICAL] [rpcstart.py] No java path specified for stanza rpcstart://default
08/23/2015 12:00:52 [CRITICAL] [rpcstart.py] RPC server has been terminated abnormally with error [No java path specified].
08/23/2015 12:01:07 [CRITICAL] [rpcstart.py] No java path specified for stanza rpcstart://default
08/23/2015 12:01:07 [CRITICAL] [rpcstart.py] RPC server has been terminated abnormally with error [No java path specified].
08/23/2015 12:01:22 [CRITICAL] [rpcstart.py] No java path specified for stanza rpcstart://default
08/23/2015 12:01:22 [CRITICAL] [rpcstart.py] RPC server has been terminated abnormally with error [No java path specified].
08/23/2015 12:01:37 [CRITICAL] [rpcstart.py] No java path specified for stanza rpcstart://default
08/23/2015 12:01:37 [CRITICAL] [rpcstart.py] RPC server has been terminated abnormally with error [No java path specified].
08/23/2015 12:01:53 [CRITICAL] [rpcstart.py] No java path specified for stanza rpcstart://default
08/23/2015 12:01:53 [CRITICAL] [rpcstart.py] RPC server has been terminated abnormally with error [No java path specified].
0 Karma

kschon_splunk
Splunk Employee
Splunk Employee

You have JAVA_HOME set as an environment variable, but it may not be set in the app. Within you Hunk install, look at etc/apps/splunk_app_db_connect/local/inputs.conf. In the [rpcstart://default] stanza, do you see a line that looks like this?

javahome = /usr/jdk64/jdk1.8.0_40/

If not, please add one.

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...