Hi Team, I was trying to ingest data from ADLS co...
# troubleshooting
m
Hi Team, I was trying to ingest data from ADLS container to pinot using minions. But when i try this error comes: 2025/01/09 002328.698 WARN [PinotMetricUtils] [main] More than one PinotMetricsFactory was found: [class org.apache.pinot.plugin.metrics.compound.CompoundPinotMetricsFactory, class org.apache.pinot.plugin.metrics.dropwizard.DropwizardMetricsFactory, class org.apache.pinot.plugin.metrics.yammer.YammerMetricsFactory] Jan 09, 2025 122348 AM org.glassfish.grizzly.http.server.NetworkListener start INFO: Started listener bound to [0.0.0.0:9000] Jan 09, 2025 122348 AM org.glassfish.grizzly.http.server.HttpServer start INFO: [HttpServer] Started. 2025/01/09 002701.049 WARN [ZKMetadataProvider] [pool-12-thread-5] Path: /SEGMENTS/t_silver_ticket_OFFLINE does not exist 2025/01/09 002715.048 WARN [RetentionManager] [pool-12-thread-6] Invalid retention time: null null for table: t_silver_ticket_OFFLINE, skip 2025/01/09 003000.030 WARN [ZKMetadataProvider] [DefaultQuartzScheduler_Worker-1] Path: /SEGMENTS/t_silver_ticket_OFFLINE does not exist 2025/01/09 004000.007 WARN [ZKMetadataProvider] [DefaultQuartzScheduler_Worker-2] Path: /SEGMENTS/t_silver_ticket_OFFLINE does not exist 2025/01/09 004822.367 WARN [ZKMetadataProvider] [grizzly-http-server-3] Path: /SEGMENTS/t_silver_ticket_OFFLINE does not exist 2025/01/09 004835.886 WARN [ZKMetadataProvider] [grizzly-http-server-0] Path: /SEGMENTS/t_silver_ticket_OFFLINE does not exist 2025/01/09 004945.047 WARN [ZKMetadataProvider] [grizzly-http-server-2] Path: /SEGMENTS/t_silver_ticket_OFFLINE does not exist 2025/01/09 004954.605 WARN [ZKMetadataProvider] [grizzly-http-server-3] Path: /SEGMENTS/t_silver_ticket_OFFLINE does not exist 2025/01/09 005000.011 WARN [ZKMetadataProvider] [DefaultQuartzScheduler_Worker-3] Path: /SEGMENTS/t_silver_ticket_OFFLINE does not exist 2025/01/09 005027.384 WARN [ZKMetadataProvider] [grizzly-http-server-0] Path: /SEGMENTS/t_silver_ticket_OFFLINE does not exist
r
Was there an error when you created the table
t_silver_ticker_OFFLINE
? Zk hasnt been setup correctly.
m
Hi @Rajat Venkatesh { "tableName": "t_silver_ticket", "tableType": "OFFLINE", "segmentsConfig": { "timeColumnName": "ticket_updated_on", "timeType": "MILLISECONDS", "segmentPushType": "APPEND", "segmentAssignmentStrategy": "BalanceNumSegmentAssignmentStrategy", "schemaName": "t_silver_ticket", "replication": "1" }, "tableIndexConfig": { "loadMode": "MMAP", "invertedIndexColumns": [ "ticket_state" ], "sortedColumn": [ "created_on" ] }, "tenants": { "broker": "DefaultTenant", "server": "DefaultTenant" }, "metadata": { "customConfigs": {} }, "ingestionConfig": { "batchIngestionConfig": { "segmentIngestionType": "APPEND", "segmentIngestionFrequency": "HOURLY", "batchConfigMaps": [ { "input.fs.className": "org.apache.pinot.plugin.filesystem.ADLSGen2PinotFS", "input.fs.prop.accountName": "testwzdatalake", "input.fs.prop.accessKey": "DbCLb0YMxe05V++wUeEF4SpSvlPhfE78oVs7NTfPJ8/0OFAR3G/w/N1l96Zpzm0Kgse8mv4+v1zA+ASt6gxULA==", "inputDirURI": "adl2://parquet-to-pinot@testwzdatalake.dfs.core.windows.net/", "includeFileNamePattern": "glob:*/.parquet", "excludeFileNamePattern": "glob:*/.tmp", "inputFormat": "parquet" } ] } }, "task": { "taskTypeConfigsMap": { "SegmentGenerationAndPushTask": { "schedule": "0 */10 * * * ?", "taskQueueConfig": "SegmentGenerationAndPushTask", "storage.factory.class.adl2": "org.apache.pinot.plugin.filesystem.ADLSGen2PinotFS", "storage.factory.adl2.accountName": "testwzdatalake", "storage.factory.adl2.accessKey": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "outputDirURI": "adl2://segments@testwzdatalake.dfs.core.windows.net/t_silver_ticket_OFFLINE/", "segment.fetcher.adl2.class": "org.apache.pinot.common.utils.fetcher.PinotFSSegmentFetcher", "segment.fetcher.protocols": "adl2,file,http" } } } }
This is the table config I used..
Anything wrong here..
r
hard to parse json. Did you get an error when you created the table ?
can you also check logs ?
esp. controller logs
m
Table is getting create dsucccessfully..Also, I was able to upload data to datble via the job spec file approach. Only the minion based ingestion is failing
r
when you run queries, it is returning data ?
m
yes
r
Are any segments listed in the SEGMENTS path in the property store ? You should see your table instead of
nation_OFFLINE
in your cluster.
m
No, I cant see a SEGMENTS path here @Rajat Venkatesh
r
something went wrong during table creation. SEGMENTS path should have been created. Check controller logs for errors.
also what query did you run on the table ?
m
Hey @Rajat Venkatesh Sorry Man, I was accidently checking another namespaxe. I can see the segments now, In my actualnamespace. This data I uploaded using the Job-Spec file approach. Minion based approach is still failing
I am still curious why the upload is working via the Job-Spec approach and its not appeniing via th eminion based approach In JobSpec file approach, my data is in my local dir and I can see the segments getting created locally, and then it gets pushed to pinot I guess
r
most probably minion is trying to upload to the wrong namespace.
the error is that is not able to find SEGMENTS. but SEGMENTS exist. so probably pointing to the wrong namespace
why do you have two namespaces ?
how did you create them ?
m
These segments got created locally and pushed to pinot using the Job Spec approach I think. But in minion based ingestion, minions should handle the segment creation and ingestion. Can this be the area of error? We are using azure kubernetes, for testing and developing purposes we have one and the main one. I have created namespaces using kubectl commands
r
oh - so you are talking about k8s namespaces and not pinot namespaces
are you sure minions are running in the correct namespace ?
m
yeah k8 namespaces
yes.. i ve checked the pods for the namespace and minions are running
r
the error message is clear.
/SEGMENTS
path does not exist.
m
will this occur pinot cant read from the specified adls container?
r
so minions must be connecting to the pinot cluster where the table is not setup
no. this is because a path does not exist in Zookeeper.
m
okay
r
not related to ADLS, container etc
m
oh okk
r
it is connecting to the wrong pinot cluster. the one without
t_silver_tickets
setup
m
Oh okay..
I just checked the cluster name. The cluster names of both my k8 namespaces are same
That could be the issue right @Rajat Venkatesh So i will clear the k8 namespace and try creating another one with a different cluster
r
I dont know but possible. I suggest keeping it simple. same names can be the source of confusion.
start with one cluster. choose different names when you add the 2nd one
m
okay . Got it
I will try this way. Thanks for the insight🍷
Hey @Rajat Venkatesh,tried this way. giving a new pinot cluster for the new namespace. But the same error persists
segment path is not getting correctly under zookeper
can u pls give me a values.yaml file which have the correct config i need to install pinot 🙂 , if thats possible
r
one of your clusters was setup correctly ?
m
yes.
r
sorry - dont understand - what is the problem with
values.yaml
in the repo ?
m
2025/01/09 130234.762 WARN [ZKMetadataProvider] [grizzly-http-server-0] Path: /SEGMENTS/t_silver_ticket_OFFLINE does not exist 2025/01/09 131000.004 WARN [ZKMetadataProvider] [DefaultQuartzScheduler_Worker-3] Path: /SEGMENTS/t_silver_ticket_OFFLINE does not exist still i get this error, using the values
r
did you create the table after reinstalling the pinot cluster ?
m
yes
r
do you see the SEGMENTS zknode in the zookeeper browser ?
m
Nop, not visible
r
can you query the table ?
m
NO, there is no data in the table
r
can you ingest using the job file spec ?
m
let me try..