Goal:This article shows an example java code for:
Using Spark job to upload files to AWS S3 with Server Side Encryption enabled
# java UploadObjectSingleOperation Uploading a new object to S3 from a file Caught an AmazonServiceException, which means your request made it to Amazon S3, but was rejected with an error response for some reason. Error Message: AWS authentication requires a valid Date or x-amz-date header (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: 6XXXXXXXXXXXXXX) HTTP Status Code: 403 AWS Error Code: AccessDenied Error Type: Client Request ID: 6XXXXXXXXXXXXXX
SELECT something FROM dfs.`sometable` WHERE dir0 IN ('a', 'b','c',... ,'z' ); Error: RESOURCE ERROR: One or more nodes ran out of memory while executing the query.