https://pinot.apache.org/ logo
#general
Title
# general
j

Josh Highley

03/10/2021, 3:08 PM
what's the difference between
Copy code
bin/pinot-admin.sh StartServer
and
Copy code
bin/start-server.sh
? Which way should be used?
k

Kishore G

03/10/2021, 3:21 PM
both of them trigger the same command. use pinot-admin as the entry point for everything
j

Josh Highley

03/10/2021, 3:21 PM
if I use start-server.sh it doesn't load our existing segments. If I use pinot-admin.sh there's no logging to pinotServer.log
k

Kishore G

03/10/2021, 3:32 PM
j

Josh Highley

03/10/2021, 3:40 PM
we were using that method but it wasn't logging to pinotServer.log
pinot-admin appears to use pinot-admin-log4j2.xml but I don't see it actually logging to the component log files
k

Kishore G

03/10/2021, 3:44 PM
Yeah, I noticed that as well
@Daniel Lavoie ^^
d

Daniel Lavoie

03/11/2021, 3:39 PM
The recommended way would be to use
pinot-admin.sh StartServer
and configure your
JAVA_OPTS
with your log4j configuration. Example:
Copy code
export JAVA_OPTS="-Dlog4j2.configurationFile=<PATH-TO-LOG4J-FILE>"