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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...