amazon

Adding postgresql jar though spark-submit on amazon EMR

别来无恙 提交于 2019-12-09 13:54:30
问题 I've tried spark-submit with --driver-class-path, with --jars as well as tried this method https://petz2000.wordpress.com/2015/08/18/get-blas-working-with-spark-on-amazon-emr/ On using SPARK_CLASSPATH in the commandline as in SPARK_CLASSPATH=/home/hadoop/pg_jars/postgresql-9.4.1208.jre7.jar pyspark I get this error Found both spark.executor.extraClassPath and SPARK_CLASSPATH. Use only the former. But I'm not able to add it. How do I add postgresql JDBC jar file to use it from pyspark? I'm

How to create Global Secondary Index for Json Attributes(column values) in Amazon Dynamo DB in C#?

好久不见. 提交于 2019-12-09 13:46:04
问题 I have a table with column Id and JSON column. Id | JSON ---------------------------------------------------------------- 101 | {"person_id":456,"f_name":"t", "l_name":"Jack"} | 102 | {"person_id":123,"f_name":"M", "l_name":"Ron"} | 103 | {"person_id":789,"f_name":"A", "l_name":"Tom"} I am able to create GSI(Global Secondary Index) on column Id , but I would like to know how to create GSI on person_id and f_name . Is it possible to create GSI for json attributes? As upon observation, I was

Connecting Android app to amazon RDS

核能气质少年 提交于 2019-12-09 11:52:16
问题 I have an Android application and I want to move my local database in the cloud. I decided for a SQL database and not for a NoSQL, because I want to execute complex queries. I created a database instance in RDS from Amazon and I populated the database. Now I want to connect my mobile app to my cloud database. I sow samples for NoSQL database connection, but I wasn't able to find examples for RDS. I saw that it is recommended to create a web service and connect to that web service, but it

Programmatically login to Amazon with C#

不问归期 提交于 2019-12-09 03:33:05
问题 I want to login to Amazon seller central programmatically with C#. I don't want to use Amazon Web Services. Here is what I have done so far: private void button1_Click(object sender, EventArgs e) { string appURL = "https://sellercentral.amazon.com/gp/sign-in/sign-in.html/ref=xx_login_lgin_home"; string strPostData = "protocol=https&action=sign-in&email=test%40gmail.com&destination=https%3A%2F%2Fsellercentral.amazon.com%2Fgp%2Fhomepage.html%3Fie%3DUTF8%26%252AVersion%252A%3D1%26%252Aentries

FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY isn't set for intents from history

人走茶凉 提交于 2019-12-09 03:11:17
问题 In my activity: <activity android:name=".MainActivity" android:screenOrientation="landscape" android:launchMode="singleTask" android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" /> I use onNewIntent to handle new intents. I don't need to process intents from history and in the beggining I've put this code if ((intent.getFlags() & Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY) != 0) { return; } However this flag is not set for the history intents on Kindle Fire . On other android

iPhone iOS Amazon Scheme / URI Not Working Anymore amzn:// version 4.3.1 Deep Linking

大兔子大兔子 提交于 2019-12-09 01:38:03
问题 We were using scheme something like amzn://content/item?id=<some valid id> And was working fine, but now as of Amazon App 4.3.1, this is no longer working, the scheme is no longer provided. So trying the scheme something like com.amazon.mobile.shopping://content/item?id=<some valid id> we get the message in the Amazon App Amazon Mobile is currently unavailable for content. Any hints on this? 回答1: Try this scheme on iOS device. com.amazon.mobile.shopping://www.amazon.com/products/B00KWFCV32/

waitUntilObjectExists() Amazon S3 PHP SDK method, exactly how does it work?

試著忘記壹切 提交于 2019-12-08 17:03:34
问题 Will the function pause the php script until it finds the object on s3 servers? I have it inside a foreach loop, uploading images one by one. After the object is found I call a method to delete the image locally then delete the local folder if empty. Is this a proper way of going about it? Thanks foreach ($fileNames as $fileName) { $imgSize = getimagesize($folderPath . $fileName); $width = (string)$imgSize[0]; $height = (string)$imgSize[1]; //upload the images $result = $S3->putObject(array(

Amazon S3 Bucket Policy: How to lock down access to only your EC2 Instances

戏子无情 提交于 2019-12-08 16:39:39
问题 I am looking to lock down an S3 bucket for security purposes - i'm storing deployment images in the bucket. What I want to do is create a bucket policy that supports anonymous downloads over http only from EC2 instances in my account . Is there a way to do this? An example of a policy that I'm trying to use (it won't allow itself to be applied): { "Statement": [ { "Effect": "Allow", "Principal": { "AWS": "*" }, "Action": "s3:GetObject", "Resource": "arn:aws:s3:::[my bucket name]", "Condition"

How to rename a file in Amazon S3 Bucket?

穿精又带淫゛_ 提交于 2019-12-08 16:38:13
问题 I am trying to rename a file in S3 Bucket. Here is a code snippet S3Object s3Obj = getS3Client().getObject(new GetObjectRequest(getBucketName(), fileName)); //Error in Above Line itself getS3Client().putObject(getBucketName(), newFileName, s3Obj.getObjectContent(), s3Obj.getObjectMetadata()); private AmazonS3 getS3Client(){ AWSCredentials myCredentials = new BasicAWSCredentials(AccessKey,SecretKey); AmazonS3 s3client = new AmazonS3Client(myCredentials); return s3client; } So, I am getting

elasticbeanstalk ssl without custom domain

非 Y 不嫁゛ 提交于 2019-12-08 14:39:25
问题 I'm trying to enable SSL on a Token Vending Machine hosted on Amazon Elastic Beanstalk. However, it tells me I need an SSL certificate if I try to enable a port 443 listener. This would make sense if I had my own domain, but this is a system machine giving out tokens to a mobile app. The URL is of the form mytvm.elasticbeanstalk.com and will never be seen by an end user so there's no need to get a custom domain. Is it possible to enable SSL without the hassle of setting it up on a custom