trying to setup checkpoints with s3 with fs-hadoo...
# troubleshooting
k
trying to setup checkpoints with s3 with fs-hadoop-aws plugin
Copy code
`
Configuration flinkConfig = new Configuration();
        flinkConfig.set(StateBackendOptions. STATE_BACKEND, "hashmap");
        flinkConfig.set(CheckpointingOptions.CHECKPOINTING_INTERVAL, Duration.of(10, ChronoUnit.SECONDS));
        flinkConfig.set(CheckpointingOptions.CHECKPOINT_STORAGE,"filesystem");
        //"execution.checkpointing.checkpoint-dir"
        flinkConfig.set(CheckpointingOptions.CHECKPOINTS_DIRECTORY,"s3a://warehouse/balloon-game-checkpoints");
        //"execution.checkpointing.savepoint-dir"
        flinkConfig.set(CheckpointingOptions.SAVEPOINT_DIRECTORY,"s3a://warehouse/balloon-game-savepoints");
        //s3 config
        flinkConfig.setString("s3a.access.key","admin");
        flinkConfig.setString("s3a.secret.key","password");
        flinkConfig.setString("s3a.endpoint","http://localhost:9000");
        flinkConfig.setString("s3a.path.style.access","true");
        flinkConfig.setString("s3a.aws.credentials.provider","org.apache.flink.fs.s3.common.token.DynamicTemporaryAWSCredentialsProvider");
but I see my app fails with the error
Copy code
com.amazonaws.SdkClientException: Unable to load AWS credentials from environment variables (AWS_ACCESS_KEY_ID (or AWS_ACCESS_KEY) and AWS_SECRET_KEY (or AWS_SECRET_ACCESS_KEY))
FYI: I am running the app from IDE
@rmoff - I guess I got into some classpath hell, my configuration is getting picked up but I see it is still going with default AWS
k
yeah, when I run as a server it did help but running with IDE I see the classpath issues loading plugins