use PropUtils for indexer coordinator node

This commit is contained in:
Fangjin Yang 2012-11-08 09:31:22 -08:00
parent f39af83be4
commit cdd9cdb2bd
1 changed files with 4 additions and 4 deletions

View File

@ -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)