avshenuk opened a new issue, #16283:
URL: https://github.com/apache/pinot/issues/16283

   When starting Pinot from this Docker image and using Prometheus agent 
configuration from the documentation:
   ```
   
-javaagent:/opt/pinot/etc/jmx_prometheus_javaagent/jmx_prometheus_javaagent.jar=8008:/opt/pinot/etc/jmx_prometheus_javaagent/configs/pinot.yml
   ```
   fails with
   ```
   Error occurred during initialization of VM
   Error opening zip file or JAR manifest missing : 
/opt/pinot/etc/jmx_prometheus_javaagent/jmx_prometheus_javaagent.jar
   agent library failed Agent_OnLoad: instrument
   ```
   
   The problem seems to be the broken symlink:
   ```
   ls -l /opt/pinot/etc/jmx_prometheus_javaagent
   total 548
   -rw-r--r-- 1 root root   2073 Jul  3 23:06 README.md
   drwxr-xr-x 2 root root   4096 Jul  3 23:06 configs
   -rw-r--r-- 1 root root 544974 Jul  3 23:06 
jmx_prometheus_javaagent-0.18.0.jar
   lrwxrwxrwx 1 root root     64 Jul  3 23:06 jmx_prometheus_javaagent.jar -> 
etc/jmx_prometheus_javaagent/jmx_prometheus_javaagent-0.18.0.jar
   ```
   (the path is neither relative, nor absolute)
   
   Using the path to the versioned JAR file instead works just fine:
   ```
   
-javaagent:/opt/pinot/etc/jmx_prometheus_javaagent/jmx_prometheus_javaagent-0.18.0.jar=8008:/opt/pinot/etc/jmx_prometheus_javaagent/configs/pinot.yml
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to