Package com.splunk.shuttl.archiver.filesystem.glacier

Examples of com.splunk.shuttl.archiver.filesystem.glacier.AWSCredentialsImpl$AmazonPropertyMissing


  public static ArchiveFileSystem createS3n() {
    return create("s3n");
  }

  private static ArchiveFileSystem create(String scheme) {
    AWSCredentialsImpl credentials = AWSCredentialsImpl.create();
    URI s3Uri = createS3UriForHadoopFileSystem(scheme, credentials);

    try {
      return new HadoopArchiveFileSystem(FileSystem.get(s3Uri,
          new Configuration()));
View Full Code Here


  }

  public void s3UriForHadoop__putsDataInTheRightOrder() {
    URI uri = S3ArchiveFileSystemFactory.createS3UriForHadoopFileSystem(
        "scheme", new AWSCredentialsImpl("id", "secret", null, "bucket", null));
    assertEquals(uri.getScheme(), "scheme");
    assertEquals(uri.getUserInfo(), "id:secret");
    assertEquals(uri.getHost(), "bucket");
  }
View Full Code Here

  }

  @Test(expectedExceptions = { RuntimeException.class })
  public void s3UriForHadoop_s3BucketNameHasUnderscore_throwsAnExceptions() {
    S3ArchiveFileSystemFactory.createS3UriForHadoopFileSystem("scheme",
        new AWSCredentialsImpl("id", "secret", null, "bucket_with_underscores",
            null));
  }
View Full Code Here

  }

  public void s3UriForHadoop_secretWithSpecialSymbols_validUri() {
    URI uri = S3ArchiveFileSystemFactory.createS3UriForHadoopFileSystem(
        "scheme",
        new AWSCredentialsImpl("id", "se+cr/et", null, "bucket", null));
    assertEquals(uri.getScheme(), "scheme");
    assertEquals(uri.getUserInfo(), "id:se+cr/et");
    assertEquals(uri.getHost(), "bucket");
  }
View Full Code Here

TOP

Related Classes of com.splunk.shuttl.archiver.filesystem.glacier.AWSCredentialsImpl$AmazonPropertyMissing

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.