Hi, does anyone know why I might be getting a `jav...
# general
w
Hi, does anyone know why I might be getting a
java.net.BindException: Address already in use
when I use
bin/pinot-admin.sh
? For context I'm using Kubernetes and running the command from the Controller Pod
x
the default JAVA_OPTS has a javaagent to use 8080 port to publish metrics
if not metrics then need to check existing port usage
which pinot-admin cmd are you using
w
LaunchDataIngestionJob but it also happens when I try another command like AddTable, and on Pods other than the Controller
Hmm I can see our JAVA_OPTS has something about using 8008 for Prometheus metrics
x
yes
you can try to run this:
Copy code
JAVA_OPTS="-Xms512M -Xmx1G -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCApplicationStoppedTime -XX:+PrintGCApplicationConcurrentTime -Xloggc:/opt/pinot/gc-pinot-server.log -Dlog4j2.configurationFile=/opt/pinot/conf/log4j2.xml -Dplugins.dir=/opt/pinot/plugins" bin/pinot-admin.sh
it will override the
JAVA_OPTS
w
awesome yeah that fixed the issue, thanks!