I am running the dremio/dremio-oss:22.0.0-image with the following dremio.conf.
services: {
coordinator.enabled: true,
coordinator.master.enabled: true,
executor.enabled: true,
flight.enabled: true,
flight.use_session_service: false,
flight.auth.mode: "legacy.arrow.flight.auth"
}
debug: {
addDefaultUser: true
}
When I run the sample client I get the following error:
java -jar flight-sql-sample-client-application-4ecbafe.jar -host 127.0.0.1 -port 32010 -username dremio -password dremio123 -command GetSchemas
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Exception in thread "main" org.apache.arrow.flight.FlightRuntimeException: UNAUTHENTICATED:
at org.apache.arrow.flight.CallStatus.toRuntimeException(CallStatus.java:131)
at org.apache.arrow.flight.grpc.StatusUtils.fromGrpcRuntimeException(StatusUtils.java:164)
at org.apache.arrow.flight.grpc.StatusUtils.fromThrowable(StatusUtils.java:185)
at org.apache.arrow.flight.auth2.ClientHandshakeWrapper.doClientHandshake(ClientHandshakeWrapper.java:59)
at org.apache.arrow.flight.FlightClient.handshake(FlightClient.java:210)
at com.adhoc.flight.client.AdhocFlightClient.authenticateUsernamePassword(AdhocFlightClient.java:257)
at com.adhoc.flight.client.AdhocFlightClient.getClientHelper(AdhocFlightClient.java:207)
at com.adhoc.flight.client.AdhocFlightClient.getBasicClient(AdhocFlightClient.java:162)
at com.adhoc.flightsql.DremioFlightSqlClientDemoApp.executeApp(DremioFlightSqlClientDemoApp.java:143)
at com.adhoc.flightsql.DremioFlightSqlClientDemoApp.main(DremioFlightSqlClientDemoApp.java:85)
Suppressed: java.lang.NullPointerException
at com.adhoc.flightsql.DremioFlightSqlClientDemoApp.close(DremioFlightSqlClientDemoApp.java:236)
at com.adhoc.flightsql.DremioFlightSqlClientDemoApp.main(DremioFlightSqlClientDemoApp.java:83)
Is this a known problem?
Best regards,
Magnus Bakken