so if I am giving or making any config changes . L...
# troubleshooting
a
so if I am giving or making any config changes . Lets say under conf folder in pinot-server.conf or pinot-controller.conf do I need to restart the entire everything or only that server to take place. I dont have to restart zookeeper right ?
g
you only need to restart the affected service. ie if the change only affect servers, you need to restart servers, but not controllers or brokers
zookeeper doesn't have to be restarted
a
I see thank you .
Also wanted to ask you that when I turn off my machine local All the data gets lost and deleted . Although the segments are being created . I was under the impression that segment creation is like a persistence storage
g
it is persistent indeed. If segments get removed on restart it has to be due to some misconfiguration. Are you using /tmp to store segments? or maybe you are using docker/kubernetes without a persistent volume?
a
I see yes may be it’s a tmp store for segments Which conf should I check for that ?? I think I saw somewhere in my confs but don’t remember it clearly
hi @Gonzalo Ortiz
# Pinot Role
pinot.service.role=SERVER
# Pinot Cluster name
pinot.cluster.name=pinot-quickstart
# Pinot Zookeeper Server
pinot.zk.server=localhost:2181
# Use hostname as Pinot Instance ID other than IP
pinot.set.instance.id.to.hostname=true
# Pinot Server Netty Port for queris
pinot.server.netty.port=8098
pinot.server.query.executor.timeout=120000
# Pinot Server Admin API port
pinot.server.adminapi.port=8097
# Allow larger responses
pinot.server.query.executor.max.response.size=50000000
# Increase timeout for long-running queries
pinot.server.query.executor.timeout=60000
# Pinot Server Data Directory
pinot.server.instance.dataDir=/tmp/pinot/data/server/index
# Pinot Server Temporary Segment Tar Directory
pinot.server.instance.segmentTarDir=/tmp/pinot/data/server/segmentTar
this is my pinot-server.conf also sometime the query responce take too much time and it shows a timeout exception . 1. Is this configuration correct ?
# Allow larger responses
pinot.server.query.executor.max.response.size=50000000
# Increase timeout for long-running queries
pinot.server.query.executor.timeout=60000
2. should I change the /tmp directory as segments loose everytime I restart the computer .
@Xiang Fu
x
this is your data location:
pinot.server.instance.dataDir=/tmp/pinot/data/server/index
so it’s tmp 🙂
a
@Xiang Fu thats why it looses all the segments when i turn off my machine ? if my kubernetes pods go down that data will be lost ? if I change the directory to some other then the segments wont get lost when I restart it ? and how should I go about it when I am using kubernetes for the same ? also I need your help so that my query time and if the query responce is taking time then timeout doesnt happen what are those setting to change or configure and which conf file ?
x
usually linux system would clean /tmp dir regularly 🙂 So don’t expect any guarantee there. when you run in production, update data directory to other places, e.g. /var/pinot/data or /home/pinot/data etc, you can decide
when you are able to run the query, please share the slow queries then
a
yes I have a mac so its a linux based system so ill try ti change the location to something other
when you are able to run the query, please share the slow queries then
sorry didn't get you in this part .
x
one thing at a time, please try to update the data dir first
restart and validate the data/segments are still there
also, usually people don’t use mac to do such test, suggest to get one real node on cloud or baremetal for this.
or use managed k8s like eks/aks/gke to simplify your life
a
yes will be using eks , over there I dont have to change the location of the /tmp/ directory apologies doesnt know mcuh about eks that where and how it will store the data ?
x
try to use ebs for that
a
ok
Hi @Xiang Fu # Pinot Server Data Directory
pinot.server.instance.dataDir=/tmp/pinot/data/server/index
# Pinot Server Temporary Segment Tar Directory
pinot.server.instance.segmentTarDir=/tmp/pinot/data/server/segmentTar
# Location to store Pinot Segments pushed from clients
controller.data.dir=/tmp/pinot/data/controller
I went to physically check these directory and couldn't find anything on my machine under /tmp forlder why is it so ?? Should i change it then only I will be able to see it ? I think I should be able to see it now as well too , right?
@Gonzalo Ortiz
x
Have you add any data? Certain options pathz are lazy evaluated or created
a
yesss I did , I have been adding data from kafka topic and have a table of around 20 million records
Copy code
# Pinot Role
pinot.service.role=CONTROLLER

# Pinot Cluster name
pinot.cluster.name=pinot-quickstart

# Pinot Zookeeper Server
pinot.zk.server=localhost:2191

# Use hostname as Pinot Instance ID other than IP
pinot.set.instance.id.to.hostname=true

# Pinot Controller Port
controller.port=9000

# Pinot Controller VIP Host
controller.vip.host=localhost

# Pinot Controller VIP Port
controller.vip.port=9000

# Location to store Pinot Segments pushed from clients
controller.data.dir=/Users/adityaverma/pinot-storage/data/controller
Copy code
# Pinot Role
pinot.service.role=SERVER

# Pinot Cluster name
pinot.cluster.name=pinot-quickstart

# Pinot Zookeeper Server
pinot.zk.server=localhost:2191

# Use hostname as Pinot Instance ID other than IP
pinot.set.instance.id.to.hostname=true

# Pinot Server Netty Port for queris
pinot.server.netty.port=8098

pinot.server.query.executor.timeout=120000

# Pinot Server Admin API port
pinot.server.adminapi.port=8097

# Allow larger responses
pinot.server.query.executor.max.response.size=50000000

# Increase timeout for long-running queries
pinot.server.query.executor.timeout=60000

# Pinot Server Data Directory
pinot.server.instance.dataDir=/Users/adityaverma/pinot-storage/data/server/index

# Pinot Server Temporary Segment Tar Directory
pinot.server.instance.segmentTarDir=/Users/adityaverma/pinot-storage/data/server/segmentTar
Copy code
# Pinot Role
pinot.service.role=BROKER

# Pinot Cluster name
pinot.cluster.name=pinot-quickstart

# Pinot Zookeeper Server
pinot.zk.server=localhost:2191

# Use hostname as Pinot Instance ID other than IP
pinot.set.instance.id.to.hostname=true

# Pinot Broker Query Port
pinot.broker.client.queryPort=8099

# Pinot Broker Query responce limit
pinot.broker.query.response.limit=2147483647

# Pinot Routing table builder class
pinot.broker.routing.table.builder.class=random
Directory
pinot.server.instance.segmentTarDir=/Users/adityaverma/pinot-storage/data/server/segmentTar
pinot.server.instance.dataDir=/Users/adityaverma/pinot-storage/data/server/index
# Location to store Pinot Segments pushed from clients
controller.data.dir=/Users/adityaverma/pinot-storage/data/controller
these directories are still not created
really cant understnd where is the data going
@Mayank
none of the above configuration is taking place as I am still seeing the same pattern in my data base Neither query responce tome has increased neither pinot server responce size
@Xiang Fu
x
the issue is missing this
-conf conf/server.conf
flag in the command line
a
hi @Xiang Fu this gave me an error WARNING: All illegal access operations will be denied in a future release 2025/01/06 025346.646 ERROR [PinotAdministrator] [main] Exception caught: picocli.CommandLine$UnmatchedArgumentException: Unknown options: '-conf', 'conf/pinot-controller.conf'
x
hmm try out
-configFileName
?
Copy code
bin/pinot-admin.sh StartController -config conf/pinot-controller.conf
Copy code
bin/pinot-admin.sh StartController -config conf/pinot-controller.conf
bin/pinot-admin.sh StartBroker -config conf/pinot-broker.conf
bin/pinot-admin.sh StartServer -config conf/pinot-server.conf
a
bin/pinot-admin.sh StartController -configFileName conf/pinot-controller.conf ?
great configFileName works