Skip to content

Commit

Permalink
Merge d15d042 into d282c44
Browse files Browse the repository at this point in the history
  • Loading branch information
jortiz16 committed Feb 20, 2017
2 parents d282c44 + d15d042 commit eed0458
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/edu/washington/escience/myria/io/AmazonS3Source.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

import org.apache.commons.httpclient.URIException;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.s3a.AnonymousAWSCredentialsProvider;

import com.amazonaws.ClientConfiguration;
import com.amazonaws.auth.AWSCredentialsProvider;
Expand Down Expand Up @@ -80,7 +81,9 @@ public AmazonS3Client getS3Client() throws MyriaApiException {
String propertyName = "fs.s3a.aws.credentials.provider";
String className = conf.getTrimmed(propertyName);
if (className == null) {
throw new MyriaApiException(Status.INTERNAL_SERVER_ERROR, propertyName + " does not exist");
LOGGER.warn(
"No AWS credentials provider property found in Hadoop configuration file. Instantiating the AmazonS3Client with anonymous credentials.");
credentials = new AnonymousAWSCredentialsProvider();
}
try {
Class<?> credentialClass = Class.forName(className);
Expand Down

0 comments on commit eed0458

Please sign in to comment.