luxl6 commented on issue #7092:
URL: https://github.com/apache/iceberg/issues/7092#issuecomment-1469235521
Configuration conf = new Configuration();
conf.set("fs.s3a.connection.ssl.enabled", "false");
conf.set("fs.s3a.endpoint", "http://ip:9000");
conf.set("fs.s3a.access.key", "minioadmin");
conf.set("fs.s3a.secret.key", "minioadmin");
conf.set("fs.s3a.path.style.access", "true");
conf.set("fs.s3a.impl", "org.apache.hadoop.fs.s3a.S3AFileSystem");
conf.set("fs.s3a.fast.upload", "true");
conf.set("catalog-impl", "org.apache.iceberg.jdbc.JdbcCatalog");
conf.set("uri", "jdbc:postgresql://ip:5432/icebergcat");
conf.set("user", "PostgreSQL");
conf.set("password", "PostgreSQL");
TableLoader tableLoader =
TableLoader.fromHadoopTable("s3a://iceberg/flink_db/flink_hb",conf);
tableLoader.open();
Table table = tableLoader.loadTable();
RewriteDataFilesActionResult result = Actions.forTable(table)
.rewriteDataFiles()
.execute();
Teacher, my main problem is that my catalog is not Hadoop catalog, but jdbc
catalog. I merged Hadoop catalog successfully. I use jdbc to store catalog, and
when I use Hadoop to merge files on minio, it cannot find it. Related table
information, so the report does not exist all the time. Table does not exist at
location: s3a://iceberg/flink_db/flink_hb
--
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]