All Apps and Add-ons

DB Connect - dbxquery print default "java -h" message in logs

apanchev
New Member

Hi !

After upgrading DB Connect, dbxquery won't launch my queries.
Everything worked fine before, i didn't modify the configuration files.

Debian version : 9 (stretch)
Java version : 1.8.0_161
Splunk Enterprise version : 8.1.2
DB Connect version : 3.4.2 
MySQL version : 5.7


Every time i launch a query, i have the default << java -h >> message in my job logs :

03-01-2021 18:46:55.785 INFO  SearchOrchestrator - Creating the search DAG.
03-01-2021 18:46:55.785 INFO  SearchParser - PARSING: | dbxquery query="SELECT * FROM `maindb`.`message` WHERE id=208126611" connection="maindb"
03-01-2021 18:46:55.788 INFO  ChunkedExternProcessor - Running process: /opt/splunk/etc/apps/splunk_app_db_connect/linux_x86_64/bin/command.sh -DDBX_COMMAND_LOG_LEVEL\=INFO
03-01-2021 18:46:55.920 ERROR ChunkedExternProcessor - stderr: Usage: java [-options] class [args...]
03-01-2021 18:46:55.920 ERROR ChunkedExternProcessor - stderr:            (to execute a class)
[ ... default "java -h" message ... ]
03-01-2021 18:46:55.921 ERROR ChunkedExternProcessor - stderr: See http://www.oracle.com/technetwork/java/javase/documentation/index.html for more details.
03-01-2021 18:46:55.923 ERROR ChunkedExternProcessor - EOF while attempting to read transport header read_size=0
03-01-2021 18:46:55.924 ERROR ChunkedExternProcessor - Error in 'dbxquery' command: External search command exited unexpectedly with non-zero error code 1.

 

Does anyone have an idea how to fix this issue without having to reinstall DB Connect ?

Thank you very much

Labels (4)
0 Karma
Get Updates on the Splunk Community!

Splunk Education - Fast Start Program!

Welcome to Splunk Education! Splunk training programs are designed to enable you to get started quickly and ...

Five Subtly Different Ways of Adding Manual Instrumentation in Java

You can find the code of this example on GitHub here. Please feel free to star the repository to keep in ...

New Splunk APM Enhancements Help Troubleshoot Your MySQL and NoSQL Databases Faster

Splunk Observability has two new enhancements to make it quicker and easier to troubleshoot slow or frequently ...