-
Notifications
You must be signed in to change notification settings - Fork 332
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
While trying out the latest getting start example with jdbc from main branch, polaris-bootstrap service will fail with the docker compose command.
To Reproduce
- Build from source
➜ ~ cd polaris
➜ polaris git:(main) ./gradlew \
:polaris-server:assemble \
:polaris-server:quarkusAppPartsBuild \
:polaris-admin:assemble --rerun \
-Dquarkus.container-image.tag=postgres-latest \
-Dquarkus.container-image.build=true
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 167 100 167 0 0 1318 0 --:--:-- --:--:-- --:--:-- 1325
100 64 100 64 0 0 237 0 --:--:-- --:--:-- --:--:-- 237
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 43764 100 43764 0 0 199k 0 --:--:-- --:--:-- --:--:-- 199k
Downloading https://services.gradle.org/distributions/gradle-8.14.2-bin.zip
.............10%.............20%.............30%.............40%.............50%.............60%.............70%.............80%.............90%..............100%
Welcome to Gradle 8.14.2!
...
BUILD SUCCESSFUL in 2m 49s
105 actionable tasks: 105 executed
- run docker compose command
➜ polaris git:(main) export ASSETS_PATH=$(pwd)/getting-started/assets/
export QUARKUS_DATASOURCE_JDBC_URL=jdbc:postgresql://postgres:5432/POLARIS
export QUARKUS_DATASOURCE_USERNAME=postgres
export QUARKUS_DATASOURCE_PASSWORD=postgres
export CLIENT_ID=root
export CLIENT_SECRET=s3cr3t
docker compose -p polaris -f getting-started/assets/postgres/docker-compose-postgres.yml \
-f getting-started/jdbc/docker-compose-bootstrap-db.yml \
-f getting-started/jdbc/docker-compose.yml up -d
WARN[0000] The "STORAGE_LOCATION" variable is not set. Defaulting to a blank string.
WARN[0000] The "AWS_ROLE_ARN" variable is not set. Defaulting to a blank string.
WARN[0000] The "AZURE_TENANT_ID" variable is not set. Defaulting to a blank string.
[+] Running 41/41
✔ trino Pulled 47.2s
✔ 9b5cdf1b5547 Pull complete 4.2s
✔ 2cc773bdcb6d Pull complete 14.6s
✔ 2973b4e72312 Pull complete 18.3s
✔ b6f78e1a2cbd Pull complete 18.3s
✔ fa10a0b5b5e4 Pull complete 18.9s
✔ e8d64bd2c693 Pull complete 45.8s
✔ 835c2c12b73f Pull complete 45.9s
✔ 0c14ac1bacd7 Pull complete 45.9s
✔ 7d20f4582a7c Pull complete 46.0s
✔ spark-sql Pulled 44.6s
✔ 67b06617bd6b Pull complete 16.5s
✔ 7922ecca004f Pull complete 19.6s
✔ 87c709a8f691 Pull complete 24.0s
✔ e4d572ba8adc Pull complete 24.0s
✔ 75fb73ed5aaf Pull complete 24.1s
✔ 740dcb7e9647 Pull complete 24.1s
✔ 8f8a147207dd Pull complete 25.6s
✔ a53e4ae08815 Pull complete 33.2s
✔ 4f8ce9d76125 Pull complete 33.3s
✔ 4f4fb700ef54 Pull complete 33.3s
✔ 563f38a3222e Pull complete 43.3s
✔ polaris-setup Pulled 2.0s
✔ d69d4d41cfe2 Pull complete 0.6s
✔ 2bf1475a10c0 Pull complete 0.7s
✔ ddcca51fe008 Pull complete 0.8s
✔ postgres Pulled 14.5s
✔ 34ef2a75627f Pull complete 3.7s
✔ a490481288f2 Pull complete 3.7s
✔ 72cda6e94dd3 Pull complete 4.1s
✔ 4dc122681691 Pull complete 4.2s
✔ 2fe317346973 Pull complete 4.8s
✔ 320a6740ddc1 Pull complete 4.9s
✔ c514d4e4ea34 Pull complete 4.9s
✔ 2c5457eb3f23 Pull complete 4.9s
✔ 4c042d973a40 Pull complete 12.9s
✔ 245f0bffd043 Pull complete 12.9s
✔ 592a255089c0 Pull complete 13.0s
✔ d0543c8b7f25 Pull complete 13.1s
✔ b858470f9848 Pull complete 13.2s
✔ 64ef7cd1ec0d Pull complete 13.3s
[+] Running 7/7
✔ Network polaris_default Created 0.1s
✔ Container polaris-postgres-1 Healthy 7.9s
✘ Container polaris-polaris-bootstrap-1 service "polaris-bootstrap" didn't complete successfully: exit 3 7.7s
✔ Container polaris-polaris-1 Created 0.1s
✔ Container polaris-polaris-setup-1 Created 0.1s
✔ Container polaris-trino-1 Created 0.2s
✔ Container polaris-spark-sql-1 Created 0.2s
service "polaris-bootstrap" didn't complete successfully: exit 3
- error log for polaris-bootstrap
➜ polaris git:(main) docker logs polaris-polaris-bootstrap-1
jakarta.enterprise.inject.UnsatisfiedResolutionException: No bean found for required type [interface javax.sql.DataSource] and qualifiers [[@jakarta.enterprise.inject.Default()]]
at io.quarkus.arc.impl.InstanceImpl.bean(InstanceImpl.java:288)
at io.quarkus.arc.impl.InstanceImpl.getInternal(InstanceImpl.java:309)
at io.quarkus.arc.impl.InstanceImpl.get(InstanceImpl.java:190)
at org.apache.polaris.persistence.relational.jdbc.JdbcMetaStoreManagerFactory.getDatasourceOperations(JdbcMetaStoreManagerFactory.java:114)
at org.apache.polaris.persistence.relational.jdbc.JdbcMetaStoreManagerFactory.initializeForRealm(JdbcMetaStoreManagerFactory.java:97)
at org.apache.polaris.persistence.relational.jdbc.JdbcMetaStoreManagerFactory.bootstrapRealms(JdbcMetaStoreManagerFactory.java:139)
at org.apache.polaris.persistence.relational.jdbc.JdbcMetaStoreManagerFactory_ClientProxy.bootstrapRealms(Unknown Source)
at org.apache.polaris.admintool.BootstrapCommand.call(BootstrapCommand.java:108)
at org.apache.polaris.admintool.BootstrapCommand.call(BootstrapCommand.java:28)
at picocli.CommandLine.executeUserObject(CommandLine.java:2031)
at picocli.CommandLine.access$1500(CommandLine.java:148)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2469)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2461)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2423)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2277)
at picocli.CommandLine$RunLast.execute(CommandLine.java:2425)
at io.quarkus.picocli.runtime.PicocliRunner$EventExecutionStrategy.execute(PicocliRunner.java:26)
at picocli.CommandLine.execute(CommandLine.java:2174)
at io.quarkus.picocli.runtime.PicocliRunner.run(PicocliRunner.java:40)
at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:141)
at io.quarkus.runtime.Quarkus.run(Quarkus.java:80)
at io.quarkus.runtime.Quarkus.run(Quarkus.java:51)
at io.quarkus.runner.GeneratedMain.main(Unknown Source)
at io.quarkus.bootstrap.runner.QuarkusEntryPoint.doRun(QuarkusEntryPoint.java:68)
at io.quarkus.bootstrap.runner.QuarkusEntryPoint.main(QuarkusEntryPoint.java:36)
Bootstrap encountered errors during operation.
Actual Behavior
No response
Expected Behavior
No response
Additional context
No response
System information
No response
vermaabhay
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working