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!

What the End of Support for Splunk Add-on Builder Means for You

Hello Splunk Community! We want to share an important update regarding the future of the Splunk Add-on Builder ...

Solve, Learn, Repeat: New Puzzle Channel Now Live

Welcome to the Splunk Puzzle PlaygroundIf you are anything like me, you love to solve problems, and what ...

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...