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!

Community Content Calendar, November Edition

Welcome to the November edition of our Community Spotlight! Each month, we dive into the Splunk Community to ...

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...

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

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...