iceberg
iceberg copied to clipboard
include Postgres driver in iceberg-rest-fixture image
Feature Request / Improvement
by default the image use an sqlite db
would be great that the image can directly use a remote postgres without need to create a custom image
because currently doing
CATALOG_URI=jdbc:postgresql://iceberg_rest-db:5432/iceberg_restdb
fail with
Caused by: java.sql.SQLException: No suitable driver found for jdbc:postgresql://iceberg_rest-db:5432/iceberg_restdb
Query engine
None
Willingness to contribute
- [x] I can contribute this improvement/feature independently
- [ ] I would be willing to contribute this improvement/feature with guidance from the Iceberg community
- [ ] I cannot contribute this improvement/feature at this time
Can we make it configurable?
I don't understand , what do you mean by configurable ?
currently I do
FROM apache/iceberg-rest-fixture:1.10.0
USER root
RUN curl -L -o /usr/lib/iceberg-rest/postgresql.jar \
https://jdbc.postgresql.org/download/postgresql-42.7.8.jar \
&& chown iceberg:iceberg /usr/lib/iceberg-rest/postgresql.jar
USER iceberg:iceberg
CMD ["java", "-cp", "iceberg-rest-adapter.jar:postgresql.jar", "org.apache.iceberg.rest.RESTCatalogServer"]