I downgrade AWS Signature V4 to V2, by adding some code in alluxio/underfs/s3a/src/main/java/alluxio/underfs/s3a/S3AUnderFileSystem.java
// TODO(zzeng) added temporary
clientConf.withSignerOverride("S3SignerType"); <----- added
AmazonS3Client amazonS3Client = new AmazonS3Client(credentials, clientConf);
// Set a custom endpoint.
if (Configuration.containsKey(PropertyKey.UNDERFS_S3_ENDPOINT)) {
amazonS3Client.setEndpoint(Configuration.get(PropertyKey.UNDERFS_S3_ENDPOINT));
}
--------------
Then rebuilt jar file, now I can see my files in alluxio:
[sso@worker0406 ~/alluxio]$ ./bin/alluxio runTests
2017-01-23 13:29:08,114 INFO type (MetricsSystem.java:startSinksFromConfig) - Starting sinks with config: {}.
2017-01-23 13:29:08,215 INFO type (AbstractClient.java:connect) - Alluxio client (version 1.5.0-SNAPSHOT) is trying to connect with FileSystemMasterClient master @ localhost/127.0.0.1:19998
2017-01-23 13:29:08,236 INFO type (AbstractClient.java:connect) - Client registered with FileSystemMasterClient master @ localhost/127.0.0.1:19998
runTest Basic CACHE_PROMOTE MUST_CACHE
2017-01-23 13:29:08,556 INFO type (AbstractClient.java:connect) - Alluxio client (version 1.5.0-SNAPSHOT) is trying to connect with BlockMasterClient master @ localhost/127.0.0.1:19998
2017-01-23 13:29:08,559 INFO type (AbstractClient.java:connect) - Client registered with BlockMasterClient master @ localhost/127.0.0.1:19998
2017-01-23 13:29:08,628 INFO type (ThriftClientPool.java:createNewResource) - Created a new thrift client alluxio.thrift.BlockWorkerClientService$Client@70beb599
2017-01-23 13:29:08,652 INFO type (ThriftClientPool.java:createNewResource) - Created a new thrift client alluxio.thrift.BlockWorkerClientService$Client@646be2c3
2017-01-23 13:29:08,743 INFO type (BasicOperations.java:writeFile) - writeFile to file /default_tests_files/Basic_CACHE_PROMOTE_MUST_CACHE took 338 ms.
2017-01-23 13:29:08,832 INFO type (BasicOperations.java:readFile) - readFile file /default_tests_files/Basic_CACHE_PROMOTE_MUST_CACHE took 89 ms.
Passed the test!
runTest BasicNonByteBuffer CACHE_PROMOTE MUST_CACHE
2017-01-23 13:29:08,975 INFO type (BasicNonByteBufferOperations.java:write) - writeFile to file /default_tests_files/BasicNonByteBuffer_CACHE_PROMOTE_MUST_CACHE took 11 ms.
2017-01-23 13:29:08,986 INFO type (BasicNonByteBufferOperations.java:read) - readFile file /default_tests_files/BasicNonByteBuffer_CACHE_PROMOTE_MUST_CACHE took 11 ms.
Passed the test!
runTest Basic CACHE_PROMOTE CACHE_THROUGH
2017-01-23 13:29:09,310 INFO type (ThriftClientPool.java:createNewResource) - Created a new thrift client alluxio.thrift.FileSystemWorkerClientService$Client@4df50bcc
2017-01-23 13:29:09,327 INFO type (ThriftClientPool.java:createNewResource) - Created a new thrift client alluxio.thrift.FileSystemWorkerClientService$Client@6ac13091
2017-01-23 13:29:09,526 INFO type (NettyChannelPool.java:createNewResource) - Created netty channel with netty bootstrap Bootstrap(group: EpollEventLoopGroup, channelFactory: EpollSocketChannel.class, options: {SO_KEEPALIVE=true, TCP_NODELAY=true, ALLOCATOR=PooledByteBufAllocator(directByDefault: true)}, handler: alluxio.client.netty.NettyClient$1@292b08d6, remoteAddress: worker0406.qe.kks.yahoo.co.jp/100.98.240.21:29999).
2017-01-23 13:29:09,687 INFO type (BasicOperations.java:writeFile) - writeFile to file /default_tests_files/Basic_CACHE_PROMOTE_CACHE_THROUGH took 700 ms.
2017-01-23 13:29:09,700 INFO type (BasicOperations.java:readFile) - readFile file /default_tests_files/Basic_CACHE_PROMOTE_CACHE_THROUGH took 13 ms.
Passed the test!