Tj
11/17/2024, 6:45 PM{
"segment.realtime.numReplicas": "1",
"segment.creation.time": "1731868179678",
"segment.flush.threshold.size": "100000",
"segment.realtime.startOffset": "0",
"segment.realtime.status": *"IN_PROGRESS"*
}Tj
11/17/2024, 6:52 PMMayank
Tj
11/17/2024, 11:34 PM"Root directory doesn't exist"
I don't know what the "root directory" is in this context. One example was: "/loggers/instances" endpoint (that requires no params) that did that.
But coming back to the original error - this was in the Controller log:
ERROR [CompletionServiceHelper] [grizzly-http-server-5] Connection error . Details: org.apache.pinot.shaded.org.apache.http.conn.HttpHostConnectException: Connect to 172.27.0.6:*8097* [/172.27.0.6] failed: Connection refused
This comes up every time I refresh the UI with segment stuck in "Updating" state, on Segment or Table page.
I don't have port 8097 allocated in Docker 🤔
Port 8097 leads me to this article: https://docs.pinot.apache.org/developers/advanced/advanced-pinot-setup#pinot-server
"Port for Pinot Server Admin UI", but the UI is running fine. What is this admin ui?
Moreover, when the segment is in "Updating" state, no subsequent "insert query" works - data is not added to the "table"/ segment.
This is just local development in Docker atm.Xiang Fu
Xiang Fu
Root directory doesn't exist issue is for log aggregation. So you haven’t configure the log directory, which you could specified in each component config files:
You need to configure the log file directory first on the log4j2.xml file then configure those:
controller:
pinot.controller.logger.root.dir=xxxx
broker:
pinot.broker.logger.root.dir=xxxx
server:
pinot.server.logger.root.dir=xxxx
minion:
pinot.minion.logger.root.dir=xxxx
After that you could check log files through controller API.Xiang Fu
Xiang Fu
Tj
11/18/2024, 10:33 AMERROR [CompletionServiceHelper] [grizzly-http-server-3] Connection error in *'get segment size info from servers'*. Details: org.apache.pinot.shaded.org.apache.http.conn.HttpHostConnectException: Connect to 172.27.0.4:8097 [/172.27.0.4] failed: Connection refusedTj
11/18/2024, 10:44 AMTj
11/18/2024, 10:52 AMMayank
Xiang Fu
Xiang Fu
Tj
11/18/2024, 8:50 PMXiang Fu
Xiang Fu
Tj
11/19/2024, 10:21 AMTj
11/19/2024, 10:22 AMTj
11/19/2024, 10:23 AMTj
11/19/2024, 10:28 AMTj
11/19/2024, 10:30 AMTj
11/19/2024, 10:31 AMTj
11/19/2024, 11:41 AMTj
11/19/2024, 11:46 AMTj
11/19/2024, 12:22 PMports:
- "8098:8098" # Query port
- "8097:8097" # Admin port
and
pinot.server.port=8098 # Query port
pinot.server.admin.port=8097 # Admin port
Note: everything was actually fine, as long as there were no container restarts. I'm glad I got to test this behavior and get it out of the way - rather test and blow up containers 100x in localhost than in prod 🙂Tj
11/19/2024, 12:48 PMvolumes:
- ./pinot-data/kafka:/bitnami/kafka"
And only NOW, when I kill my containers, all of them, the data will stay persisted and segments in a correct state. Even after server/ container restarts.Tj
11/19/2024, 12:48 PMMayank
restarting a kafka container will still kill your segment's data.Tj
11/19/2024, 7:11 PMXiang Fu
Mayank
Xiang Fu
Tj
11/19/2024, 8:13 PMTj
11/19/2024, 8:14 PMTj
11/19/2024, 8:15 PMTj
11/19/2024, 8:16 PMTj
11/19/2024, 8:16 PMXiang Fu