Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public class ADLSGen2PinotFS extends BasePinotFS {
private static final Logger LOGGER = LoggerFactory.getLogger(ADLSGen2PinotFS.class);

private enum AuthenticationType {
ACCESS_KEY, AZURE_AD, AZURE_AD_WITH_PROXY, ANONYMOUS_ACCESS
ACCESS_KEY, AZURE_AD, AZURE_AD_WITH_PROXY, ANONYMOUS_ACCESS, DEFAULT
}

private static final String AUTHENTICATION_TYPE = "authenticationType";
Expand Down Expand Up @@ -189,11 +189,7 @@ public void init(PinotConfiguration config) {
dataLakeServiceClientBuilder.credential(clientSecretCredentialBuilder.build());
break;
}
case ANONYMOUS_ACCESS: {
LOGGER.info("Authenticating using anonymous access");
break;
}
default: {
case DEFAULT: {
LOGGER.info("Authenticating using Azure default credential");
DefaultAzureCredentialBuilder defaultAzureCredentialBuilder = new DefaultAzureCredentialBuilder();
if (tenantId != null) {
Expand All @@ -211,6 +207,14 @@ public void init(PinotConfiguration config) {
dataLakeServiceClientBuilder.credential(defaultAzureCredentialBuilder.build());
break;
}
case ANONYMOUS_ACCESS: {
LOGGER.info("Authenticating using anonymous access");
break;
}
default: {
// Should never reach here
throw new IllegalStateException("Unexpected authType: " + authType);
}
}

DataLakeServiceClient serviceClient = dataLakeServiceClientBuilder.buildClient();
Expand Down