Jirawech Siwawut
02/13/2023, 2:46 AMStreamExecutionEnvironment env;
Properties props = new Properties();
props.put("s3.access-key", "myaccess");
props.put("s3.secret-key", "mysecret");
props.put("s3.endpoint", "myendpoint");
Configuration conf = ConfigurationUtils.createConfiguration(props);
env = StreamExecutionEnvironment.createLocalEnvironmentWithWebUI(conf);
Here is the error
Caused by: com.amazonaws.AmazonClientException: No AWS Credentials provided by BasicAWSCredentialsProvider EnvironmentVariableCredentialsProvider SharedInstanceProfileCredentialsProvider : com.amazonaws.AmazonClientException: Unable to load credentials from Amazon EC2 metadata serviceGaurav Miglani
02/13/2023, 7:56 AMGaurav Miglani
02/13/2023, 7:57 AMSystem.setProperty("aws.accessKeyId", awsAccessKeyId)
System.setProperty("aws.secretAccessKey", awsSecretAccessKey)Jirawech Siwawut
02/13/2023, 11:43 AMJirawech Siwawut
02/13/2023, 11:44 AMReme Ajayi
02/13/2023, 1:56 PMReme Ajayi
02/13/2023, 1:57 PMcore-site.xml in the hadoop directory.
2. Setting the fs.hdfs.hadoopconf of the my flink-conf.yaml to that directory path
3. You can also set your s3 access key and secret in flink-conf.yaml but this is not recommended for productionJirawech Siwawut
02/13/2023, 2:02 PMProperties props = new Properties();
props.put("fs.hdfs.hadoopconf", "/dev/hadoop-conf");
Configuration conf = ConfigurationUtils.createConfiguration(props);
env =
This does not work for me. Setting HADOOP_CONF_DIR does work
export HADOOP_CONF_DIR=/dev/hadoop-confReme Ajayi
02/13/2023, 2:16 PMflink-conf.yaml file directly?Reme Ajayi
02/13/2023, 2:17 PMcore-site.xml ?Jirawech Siwawut
02/13/2023, 2:20 PMcore-site.xml it works already with this method
export HADOOP_CONF_DIR=/dev/hadoop-conf
I will try setting on flink-conf.yaml. I develop in IDE, so i do not know how to do it