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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...