mirror of https://github.com/apache/druid.git
use PropUtils for indexer coordinator node
This commit is contained in:
parent
f39af83be4
commit
cdd9cdb2bd
|
@ -384,8 +384,8 @@ public class IndexerCoordinatorNode
|
|||
if (taskToolbox == null) {
|
||||
final RestS3Service s3Client = new RestS3Service(
|
||||
new AWSCredentials(
|
||||
props.getProperty("com.metamx.aws.accessKey"),
|
||||
props.getProperty("com.metamx.aws.secretKey")
|
||||
PropUtils.getProperty(props, "com.metamx.aws.accessKey"),
|
||||
PropUtils.getProperty(props, "com.metamx.aws.secretKey")
|
||||
)
|
||||
);
|
||||
final SegmentPusher segmentPusher = new S3SegmentPusher(
|
||||
|
@ -473,8 +473,8 @@ public class IndexerCoordinatorNode
|
|||
strategy = new EC2AutoScalingStrategy(
|
||||
new AmazonEC2Client(
|
||||
new BasicAWSCredentials(
|
||||
props.getProperty("com.metamx.aws.accessKey"),
|
||||
props.getProperty("com.metamx.aws.secretKey")
|
||||
PropUtils.getProperty(props, "com.metamx.aws.accessKey"),
|
||||
PropUtils.getProperty(props, "com.metamx.aws.secretKey")
|
||||
)
|
||||
),
|
||||
configFactory.build(EC2AutoScalingStrategyConfig.class)
|
||||
|
|
Loading…
Reference in New Issue