Questions tagged [aws-java-sdk]

The AWS SDK for Java provides a Java API for Amazon Web Services. Using the SDK, you can easily build Java applications that work with Amazon S3, Amazon EC2, DynamoDB, and more.

The AWS SDK for Java provides a Java API for Amazon Web Services. Using the SDK, you can easily build Java applications that work with Amazon S3, Amazon EC2, DynamoDB, and more.

Links

548 questions
10
votes
2 answers

How to set AWS Container Credentials using AWS Java SDK

I want to use ContainerCredentialsProvider(CredentialsEndpointProvider) instead of ContainerCredentialsProvider(), as the latter is deprecated. Currently I am using deprecated constructor ContainerCredentialsProvider() as…
nad87563
  • 3,672
  • 7
  • 32
  • 54
10
votes
1 answer

Using S3 Java SDK to talk to S3 compatible storage (minio)

I am trying to use aws-sdk-java AwsS3client to talk to a minio storage. From the CLI I am able to do: aws --profile=minioplay --endpoint-url https://play.minio.io:9000 s3 cp logback.xml s3://miniohstest-jixusroqeb --debug thus using a non default…
takirala
  • 1,891
  • 2
  • 16
  • 36
9
votes
1 answer

AWS SDK Java version 2 - is there an equivalent to doesObjectExist() from ver 1?

The S3 client in the AWS Java SDK ver 1 had a method to check for the existence of an object in a bucket doesObjectExist(bucketName, objectName) In version 2 of the SDK I don't see anything similar but I wanted to see if I was missing anything. The…
menapole
  • 1,166
  • 1
  • 11
  • 22
9
votes
4 answers

"Unable to execute HTTP request: Connect to .s3.amazonaws.com:443 failed: connect timed out

I am trying to write a Lambda function in java which connects to S3 and then fetch the data. When I run it locally, using main function it works fine and returns the result. Buit when I upload it to AWS lambda and the run it, I get this error…
9
votes
5 answers

Error in using aws-java-sdk-s3

I am trying to s3 sdk with very basic test and getting below error. Caused by: java.lang.NoSuchFieldError: SIGNING_REGION at com.amazonaws.services.s3.AmazonS3Client.createRequest(AmazonS3Client.java:4227) at…
user3444718
  • 1,485
  • 6
  • 22
  • 32
9
votes
6 answers

How to read file chunk by chunk from S3 using aws-java-sdk

I am trying to read large file into chunks from S3 without cutting any line for parallel processing. Let me explain by example: There is file of size 1G on S3. I want to divide this file into chucks of 64 MB. It is easy I can do it like …
Sky
  • 2,509
  • 1
  • 19
  • 28
9
votes
2 answers

How to load property file from classpath in AWS lambda java

I have written AWS lambda function in that i want to read database connection details from property file and which in my classpath, but I am not able to load that file.Here is my code: InputStream input =…
Mahesh
  • 127
  • 1
  • 1
  • 10
8
votes
4 answers

how can I preprocess input data before making predictions in sagemaker?

I am calling a Sagemaker endpoint using java Sagemaker SDK. The data that I am sending needs little cleaning before the model can use it for prediction. How can I do that in Sagemaker. I have a pre-processing function in the Jupyter notebook…
gashu
  • 863
  • 2
  • 10
  • 21
8
votes
2 answers

Spark crash while reading json file when linked with aws-java-sdk

Let config.json be a small json file : { "toto": 1 } I made a simple code that read the json file with sc.textFile (because the file can be on S3, local or HDFS, so textFile is convenient) import org.apache.spark.{SparkContext,…
Boris
  • 1,093
  • 2
  • 14
  • 22
7
votes
3 answers

Why is aws lambda invocation client incorrectly returning ClientExecutionTimeoutException?

We seem to be deterministically encountering this problem and aren't sure where we're misconfigured. For lambdas running less than ~5 minutes, our invocation succesfully wraps up ~0.5 seconds after the lambda completes. However for anything running…
dev_feed
  • 689
  • 2
  • 7
  • 25
7
votes
1 answer

Is TransferManager reusable after upload?

I'm using TransferManager to upload a file to my s3 bucket. While the documentation says to reuse one instance wherever possible, it also says that shutdown should be called once the transfer is complete. Relevant portion of the…
Aditya Vivek
  • 553
  • 2
  • 5
  • 16
7
votes
4 answers

Could not initialize class com.amazonaws.partitions.PartitionsLoader

Using Eclipse Mars .I have already added aws java sdk 1.11.123 through install software from help.Now when i run Tomcat Server 7 I get this error: May 02, 2017 11:57:32 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE:…
vks
  • 67,027
  • 10
  • 91
  • 124
7
votes
1 answer

Cognito Customise Messages and Include User Attributes

We are running a Spring based project with Cognito as the identification service. We have a project requirement to customise the verification email and invitation email for users in a Cognito user pool. (See here for the AWS doc) Default…
kukkuz
  • 41,512
  • 6
  • 59
  • 95
6
votes
4 answers

Unable to load AWS credentials from any provider in the chain Spring Cloud Stream Kinesis binder

I am not able to connect to AWS kinesis in Spring Cloud Stream Kinesis binder (1.2.0.RELEASE) without using the default configuration at the system level. Only if the system has already been configured to use the default profile and the access key…
Ali
  • 1,759
  • 2
  • 32
  • 69
1
2
3
36 37