File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
hadoop-tools/hadoop-aws/src
main/java/org/apache/hadoop/fs/s3a
test/java/org/apache/hadoop/fs/s3a/auth Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 3131import com .amazonaws .services .s3 .model .MultiObjectDeleteException ;
3232import com .amazonaws .services .s3 .model .S3ObjectSummary ;
3333import org .apache .hadoop .classification .VisibleForTesting ;
34- import org .apache .hadoop .fs .s3a .impl .V2Migration ;
3534import org .apache .hadoop .util .Preconditions ;
3635
3736import org .apache .commons .lang3 .StringUtils ;
4443import org .apache .hadoop .fs .PathFilter ;
4544import org .apache .hadoop .fs .RemoteIterator ;
4645import org .apache .hadoop .util .functional .RemoteIterators ;
47- import org .apache .hadoop .fs .s3a .auth .IAMInstanceCredentialsProvider ;
4846import org .apache .hadoop .fs .s3a .auth .delegation .EncryptionSecrets ;
47+ import org .apache .hadoop .fs .s3a .auth .IAMInstanceCredentialsProvider ;
4948import org .apache .hadoop .fs .s3a .impl .NetworkBinding ;
49+ import org .apache .hadoop .fs .s3a .impl .V2Migration ;
5050import org .apache .hadoop .fs .s3native .S3xLoginHelper ;
5151import org .apache .hadoop .net .ConnectTimeoutException ;
5252import org .apache .hadoop .security .ProviderUtils ;
Original file line number Diff line number Diff line change 2727
2828public final class V2Migration {
2929
30+ private V2Migration () { }
31+
3032 public static final Logger SDK_V2_UPGRADE_LOG = LoggerFactory .getLogger (SDK_V2_UPGRADE_LOG_NAME );
3133
3234 private static final LogExactlyOnce WARN_ON_DELEGATION_TOKENS =
Original file line number Diff line number Diff line change @@ -273,8 +273,7 @@ public void testAssumeRoleBadInnerAuth2() throws Exception {
273273
274274 Configuration conf = createAssumedRoleConfig ();
275275 unsetHadoopCredentialProviders (conf );
276- conf .set (ASSUMED_ROLE_CREDENTIALS_PROVIDER ,
277- org .apache .hadoop .fs .s3a .SimpleAWSCredentialsProvider .NAME );
276+ conf .set (ASSUMED_ROLE_CREDENTIALS_PROVIDER , SimpleAWSCredentialsProvider .NAME );
278277 conf .set (ACCESS_KEY , "notvalid" );
279278 conf .set (SECRET_KEY , "notsecret" );
280279 expectFileSystemCreateFailure (conf ,
You can’t perform that action at this time.
0 commit comments