xuzhiwen1255 commented on issue #7092:
URL: https://github.com/apache/iceberg/issues/7092#issuecomment-1467274274
I think the documentation is very detailed.
Change the address to the one that accesses minio, change the catalog to the
corresponding catalog, and you may need some access-related configuration
```java
import org.apache.iceberg.flink.actions.Actions;
TableLoader tableLoader = TableLoader.fromHadoopTable("xxx");
Table table = tableLoader.loadTable();
RewriteDataFilesActionResult result = Actions.forTable(table)
.rewriteDataFiles()
.execute();
```
Such as these, of course, not all of them are necessary, I am just an example
```java
config.set("fs.s3a.impl", "org.apache.hadoop.fs.s3a.S3AFileSystem");
config.set("fs.s3a.path.style.access", "true");
config.set("fs.s3a.connection.ssl.enabled", "false");
config.set("fs.s3a.access.key", access);
config.set("fs.s3a.secret.key", secret);
config.set("fs.s3a.endpoint", endpoint);
.....
```
--
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]