Creating a Menu based program in Python: Integrating the different Technologies
Can refer yo my github Link:
https://github.com/anjalipandey007/Automation_menu
1. AWS ( Amazon Web Services )
Amazon Web Services (AWS) is a subsidiary of Amazon providing on-demand cloud computing platforms and APIs to individuals, companies, and governments, on a metered pay-as-you-go basis. These cloud computing web services provide a variety of basic abstract technical infrastructure and distributed computing building blocks and tools. One of these services is Amazon Elastic Compute Cloud (EC2), which allows users to have at their disposal a virtual cluster of computers, available all the time, through the Internet. AWS’s version of virtual computers emulates most of the attributes of a real computer, including hardware central processing units (CPUs) and graphics processing units (GPUs) for processing; local/RAM memory; hard-disk/SSD storage; a choice of operating systems; networking; and pre-loaded application software such as web servers, databases, and customer relationship management (CRM).
2. Docker
Docker is an open platform for developing, shipping, and running applications. Docker enables you to separate your applications from your infrastructure so you can deliver software quickly. With Docker, you can manage your infrastructure in the same ways you manage your applications.
Docker provides the ability to package and run an application in a loosely isolated environment called a container. The isolation and security allow you to run many containers simultaneously on a given host. Containers are lightweight because they don’t need the extra load of a hypervisor, but run directly within the host machine’s kernel. This means you can run more containers on a given hardware combination than if you were using virtual machines. You can even run Docker containers within host machines that are actually virtual machines!
3. yum Configuration
What is yum?
yum is the primary tool for getting, installing, deleting, querying, and managing Red Hat Enterprise Linux RPM software packages from official Red Hat software repositories, as well as other third-party repositories. yum is used in Red Hat Enterprise Linux versions 5 and later. Versions of Red Hat Enterprise Linux 4 and earlier used up2date.
4. Basic Linux Command
A command is an instruction given by a user telling a computer to do something, such a run a single program or a group of linked programs. … Commands on Unix-like operating systems are either built-ins or external commands. The former are part of the shell.
5. Hadoop
Apache Hadoop is a collection of open-source software utilities that facilitates using a network of many computers to solve problems involving massive amounts of data and computation. It provides a software framework for distributed storage and processing of big data using the MapReduce programming model.
INTEGRATED FUNCTIONS
Options Integrated with AWS ( Amazon Web Services )
- Installing Amazon CLI
- List All AvailabilityZone!
- Configuring AWS CLI Tools
- List All Instances
- Launch an Instance
- List All KeyPairs
- Attach A Volume
- List All SecurityGroups
- Create S3 Bucket
- List All Subnets
- Attach S3 bucket to CloudFront
- List All InstanceTypeOfferings
- Terminate os
- List All Volume Created
- List All VolumeOffering
- Exit
Options Integrated with Docker
- Docker Configuration
- Create a Container !
- Install Docker
- Check all created os
- Docker Status
- Delete all created os
- Check Docker Images
- Start Docker Container Network Connectivity
- Download Docker Image
- Create and Configure Webserver
- Check running os
- Delete a Container
- Delete Container Image
- Exit !
Options Integrated with Yum Configuration
- Yum Configuration
- Install Application
- Remove Application
- Exit
Options Integrated with Basic Linux Command
- Start a Process
- Stop a Process
- Status of Process
- To Know Which Directory
- Show files in directory
- To delete file
- To copy file
- Move file
- To make file executable
- Exit
Options Integrated with Hadoop
- Hadoop Installation
- Hadoop Status
- Configure NameNode
- Check Connected Nodes
- Configure DataNode
- Upload File
- Exit !
Option 12
Using this option,we can delete an image.Here i deleted an ubuntu image.The command used here is docker rmi.
HADOOP
Hadoop is a framework that allows you to first store Big Data in a distributed environment, so that, you can process it parallely. In hadoop,we have two types of Nodes. They are Namenode and Datanode. Here,we constructed a python menu driven program to maintain hadoop system
Option 1 and 2
For setting up hadoop,we are using AWS. So we are checking if AWS is installed or not. If not installed,we can install it using option 2.
Press option 2 for installation of AWS CLI
Option 3
Now, we have to check if hadoop is installed or not.
Option 4
We use this option to install hadoop
Option 5 and 6
We use above options to create configure namenode and datanode
Namenode Configuration
To check if namenode is stated,we can use jps command
Now,we use other option to start datanode.
And therefore,hadoop configuration is completed.
Webserver
We configured a webserver using python. Our menu consists of :-
- Check if webserver software is installed or not
- If not, then install webserver software
- Check status,web service start or not
- If not, start the web service
- Create file which you want to show to the client
- Check list of how many files we have
- To view the website
Option 1
In this option, we can check if the webserver software(here, we used htttpd) is installed or not.
Option 2
If there is no such software,then we install it.We use yum package manager to install the software
Option 3 and 4
After installing the httpd software we need to start the service. First we will check if the service is started or not.For that we use below command:
systemctl status httpd
And to start the service, we use option 4. The underlying command is
systemctl start httpd
Option 5 and 6
We use above options to create and list files in /var/www/html directory. This is the main directory that contains all necessary files
Option 7
By pressing this option,we host the web server.
Thankyouuuuuuuu..
🔰Team member
Vivek Singare