I have looked at both AWS S3 Java SDK – Download file help and Working with Zip and GZip files in Java. While they provide ways to download and deal with files from S3 and GZipped files respectively, these do not help in dealing with a GZipped file located in S3. How would I do this? Currently I have: Clearly,
Tag: amazon-web-services
Zookeeper error: Cannot open channel to X at election address
I have installed zookeeper in 3 different aws servers. The following is the configuration in all the servers All the three instance have a myid file at var/zookeeper with appropriate id in it. All the three servers have all ports open from the aws console. But when I run the zookeeper server, I get the following error in all the
How to invalidate a file(to be refreshed) served from Cloudfront CDN via Java AWS SDK?
I am using Java SDK to uploaded images to S3, How do I invalidate a file in CloudFront so that it is refetched from s3 origin. How to do it via Java SDK ? Answer Note you can only have three concurrent invalidations; an invalidation seems to take 10-30 minutes.
How should I handle “java.net.SocketException: Connection reset” in multithread AWS S3 file upload?
I have a ThreadPoolExecutorService to which I’m submitting runnable jobs that are uploading large (1-2 GB) files to Amazon’s S3 file system, using the AWS Java SDK. Occasionally one of my worker threads will report a java.net.SocketException with “Connection reset” as the cause and then die. AWS doesn’t use checked exceptions so I actually can’t catch SocketException directly—it must be
How to install Tomcat in Amazon Web Services EC2
I have created an instance in Amazon web services, and I have connected to the server using putty through ssh. But I do not know how to install tomcat 8 in amazon ec2. Please help me with this. Answer You can use yum tool to install the tomcat8 packer from amazon default repository. The command is: yum install tomcat8-webapps tomcat8-admin-webapps
Invalid Availability Zone when creating Instance
I’m attempting to create instance on us-west-1c (though I get the same error when trying 1b, or any other AZ) and I’m getting this error: I can manually create the instance via the AWS console. Here is my code to create that instance: I’ve looked over this a hundred times, compared to other examples I’ve found online but I’m unable
Get URL(link) of a public S3 object programmatically
I am storing one public object in AWS S3 bucket using given java API in my server Now i need to return back the public URL of the S3 object to my client Till now i have’nt found any API call that can return the public URL(or link field) of a S3 object Is there any way to get the
Amazon SQS Long Polling not returning all messages
I have a requirement to read all messages in my Amazon SQS queue in 1 read and then sort it based on created timestamp and do business logic on it. To make sure all the SQS hosts are checked for messages, I enabled long polling. The way I did that was to set the default wait time for the queue
AWS Error Message: A conflicting conditional operation is currently in progress against this resource
I’m getting this error intermittently. I have a program that uses the java aws sdk and loads over the 10s of thousands of small files to s3. I see this error intermittently. Could not find any helpful answer after doing a quick search on the internet. Note the calling program is single threaded. The underlying aws java sdk does seem
Amazon S3 upload file and get URL
Is it possible to upload a txt/pdf/png file to Amazon S3 in a single action, and get the uploaded file URL as the response? If so, is AWS Java SDK the right library that I need to add in my java struts2 web application? Please suggest me a solution for this. Answer To make the file public before uploading you