amazon-ec2

Jenkins ecs Command not found

ε祈祈猫儿з 提交于 2020-03-04 15:33:25
问题 I installed third party tool (ecs deploy using pip install ecs-deploy ) .When I try to deploy using command ecs deploy demo-cluster demo-service in command prompt its working fine when I try with jenkins to deploy getting error /tmp/jenkins5062380414579854312.sh: line 13: ecs: command not found Build step 'Execute shell' marked build as failure Finished: FAILURE 回答1: The Jenkins service runs typically runs under the user jenkins . You have installed the package as the ec2-user . This means

AWS Glue automatic job creation

試著忘記壹切 提交于 2020-03-03 10:12:10
问题 I have pyspark script which I can run in AWS GLUE. But everytime I am creating job from UI and copying my code to the job .Is there anyway I can automatically create job from my file in s3 bucket. (I have all the library and glue context which will be used while running ) 回答1: Another alternative is to use AWS CloudFormation. You can define all AWS resources you want to create (not only Glue jobs) in a template file and then update stack whenever you need from AWS Console or using cli.

Can't import sqlContext.implicits._ without an error through Jupyter

主宰稳场 提交于 2020-02-27 07:44:13
问题 When I try to use the import sqlContext.implicits._ on my Jupyter notebook, I get the following error: Name: Compile Error Message: <console>:25: error: stable identifier required, but $iwC.this.$VAL10.sqlContext.implicits found. import sqlContext.implicits._ ^ I've tried this locally and it works, but this does not properly function when using it on my Jupyter Notebook server (which is hosted on ec2). I have tried importing different libraries involving that, but unfortunately can not get it

Need a step by step guide to host a website on AWS

半世苍凉 提交于 2020-02-26 10:06:16
问题 I've been browsing for a week on how to use AWS. I've always been using cpanel (I'm new to web) but someone recommended AWS to me. From the info I pieced together from various websites, I think I'm supposed to do the following?: 1) copy my website files to S3 2) set up an instance in EC2 3) set up volume in EBS and attach to instance 4) set up elastic IP and attach to instance. 5) ?? The questions are, 1) is this correct? 2) Where and how do I create mySQL database? Do I use SimpleDB, Where

How to set up telnet in AWS instance?

霸气de小男生 提交于 2020-02-26 08:28:26
问题 I got SSH working fine. But I am facing an issue with connecting via telnet. 回答1: ssh is recommended over telnet , as telnet is not encrypted and is by default not installed in amazon instance. However if needed, steps involved for Linux : Amazon Instance or Centos Install telnet daemon in the instance: Install telnet-server using sudo yum install telnet-server . Package telnet is for the client program in case one want to connect using telnet client from the instance, not needed for the

How to change the directory where my docker image is installed inside a container?

落花浮王杯 提交于 2020-02-25 04:15:29
问题 When i do df -h inside my container i get this Filesystem Size Used Avail Use% Mounted on overlay 30G 1.9G 28G 7% / tmpfs 64M 0 64M 0% /dev tmpfs 492M 0 492M 0% /sys/fs/cgroup /dev/xvda1 30G 1.9G 28G 7% /etc/hosts shm 64M 0 64M 0% /dev/shm :/ 8.0E 52M 8.0E 1% /var/www/html tmpfs 492M 0 492M 0% /proc/acpi tmpfs 492M 0 492M 0% /proc/scsi tmpfs 492M 0 492M 0% /sys/firmware Scenario I am running wordpress in my container so when i install it i think it gets installed in either overlay or /dev

How to change the directory where my docker image is installed inside a container?

。_饼干妹妹 提交于 2020-02-25 04:14:29
问题 When i do df -h inside my container i get this Filesystem Size Used Avail Use% Mounted on overlay 30G 1.9G 28G 7% / tmpfs 64M 0 64M 0% /dev tmpfs 492M 0 492M 0% /sys/fs/cgroup /dev/xvda1 30G 1.9G 28G 7% /etc/hosts shm 64M 0 64M 0% /dev/shm :/ 8.0E 52M 8.0E 1% /var/www/html tmpfs 492M 0 492M 0% /proc/acpi tmpfs 492M 0 492M 0% /proc/scsi tmpfs 492M 0 492M 0% /sys/firmware Scenario I am running wordpress in my container so when i install it i think it gets installed in either overlay or /dev

How to persist my database in Wordpress when running docker image of Wordpress on ECS?

两盒软妹~` 提交于 2020-02-25 04:11:41
问题 I am running a docker image of wordpress on ECS I am using database as Aurora "name": "WORDPRESS_DB_HOST", and "value": "db.us-east-1.rds.amazonaws.com" PROBLEM If i terminate my ECS instance and run the same task on another ECS instance then the database is not persisting What i want The database to persist so that when i run wordpress on another ECS instance i can run the same instance of the wordpress that is i dont have to reinstall or repost or reconfigure any of my posts/settings What i

How to persist my database in Wordpress when running docker image of Wordpress on ECS?

醉酒当歌 提交于 2020-02-25 04:11:05
问题 I am running a docker image of wordpress on ECS I am using database as Aurora "name": "WORDPRESS_DB_HOST", and "value": "db.us-east-1.rds.amazonaws.com" PROBLEM If i terminate my ECS instance and run the same task on another ECS instance then the database is not persisting What i want The database to persist so that when i run wordpress on another ECS instance i can run the same instance of the wordpress that is i dont have to reinstall or repost or reconfigure any of my posts/settings What i

EC2 Instance not accepting new Key Pair - Permission Denied (Public Key)

故事扮演 提交于 2020-02-25 02:10:51
问题 First off, I'm a new-born with AWS (started looking into it two days ago). My client needs a new Drupal 6 module, I have it done, all I need is to upload it and set some things up. My client gave me a username and password for Amazon, so I figured they were using AWS. I can see the Running Instance, and I've followed Amazon documentation to add a new Key Pair and also add my a custom IP rule for SSH access. Problem is, when I try to connect via ssh with a very simple and basic command ssh -i