prajwal-jadhav01 commented on code in PR #20121:
URL: https://github.com/apache/pinot/pull/20121#discussion_r4577353970
##########
pinot-connectors/pinot-flink-connector/README.md:
##########
@@ -92,6 +92,27 @@ execEnv.execute();
For more examples, please see
`src/main/java/org/apache/pinot/connector/flink/FlinkQuickStart.java`
+## Authentication
+If the controller has authentication enabled, pass the auth headers to the
`PinotAdminClient` and the token to
+`PinotSink`. The sink sends the token as the `Authorization` header when
uploading segments.
+```java
+String authToken = "Basic <base64(user:password)>";
+try (PinotAdminClient client =
+ new PinotAdminClient(controllerAddress, properties,
Map.of("Authorization", authToken))) {
+ Schema schema = client.getSchemaClient().getSchemaObject("starbucksStores");
+ TableConfig tableConfig =
+ client.getTableClient().getTableConfigObjectForType("starbucksStores",
TableType.OFFLINE);
+ srcDs.sinkTo(new PinotSink<>(new PinotRowRecordConverter(TEST_TYPE_INFO),
tableConfig, schema,
Review Comment:
Fixed, thanks. The two Quick Start examples above had the same non-existent
class, so I fixed those too.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]