Menu-Driven Program Using Python

Menu-Driven Program Using Python

This menu driven program consist of automated commands that will help you run the following software with ease:

Ø Apache Hadoop

Ø AWS(Amazon Web Services)

Ø LVM(Logical Volume Manager)

Ø Docker


All you need to do is choose from the options given!


  1. Apache Hadoop:
No alt text provided for this image

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.


This program can do the following in Hadoop:

Start the namenode, Start the datanode , Stop the namenode, Stop the datanode, Format the namenode, Show cluster report, Run tcpdump, Make a directory, Create an empty directory, Upload a file, Read a file, Stop firewall, To check used & unused ports, etc.


2. AWS(Amazon Web Services):

No alt text provided for this image

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.


In this menu driven program we also have embedded the audio function for ease. You just need to install pyaudio library in linux using cmd:

pip install pyaudio


This program will let you launch instances, create keys, stop instances, create security group, create EBS volume, Attach/Detach/Delete EBS volume, Upload data in S3, Create Cloud Front Distribution, Create Snapshot, etc. 


3. LVM (Logical Volume Manager):

No alt text provided for this image

Creating and deleting partitions in Linux is a regular practice because storage devices (such as hard drives and USB drives) must be structured in some way before they can be used. In most cases, large storage devices are divided into separate sections called partitions. Partitioning also allows you to divide your hard drive into isolated sections, where each section behaves as its own hard drive.

Steps for partitioning a disk-

1. List the partitions using the parted -l command to identify the storage device you want to partition.

2. Open the storage device.

3. Set the partition table type to gpt, then enter Yes to accept it.

4. Review the partition table of the storage device.

5. Create a new partition using the mkpart command.

6. Quit using the quit command.


Logical Volume Manager (LVM) is a device mapper framework that provides logical volume management for the Linux kernel. Most modern Linux distributions are LVM-aware to the point of being able to have their root file systems on a logical volume. LVM can be considered as a thin software layer on top of the hard disks and partitions, which creates an abstraction of continuity and ease-of-use for managing hard drive replacement, repartitioning and backup.

In this program you can use LVM for the following:

  •  Create a logical volume(dynamic partition)
  •  Increase the size of partition(logical volume)
  •  Increase the size of volume group


4. Docker:

No alt text provided for this image

Docker is a set of platform as a service (PaaS) products that use OS-level virtualization to deliver software in packages called containers.Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels. All containers are run by a single operating system kernel and therefore use fewer resources than virtual machines.


In this Menu-driven program Docker can be used for starting docker service, downloading docker images, running docker container, deleting os, deleting images and much more.

The link of github repo:



No alt text provided for this image



To view or add a comment, sign in

More articles by Sanskriti Shevgaonkar

  • Industry Use Cases of Neural Networks

    A branch of machine learning, neural networks (NN), also known as artificial neural networks (ANN), are computational…

  • Artificial Intelligence & Machine Learning Benefitting the MNCs.

    Artificial Intelligence is a branch of computer science that deals with the development of machines that can perform…

  • AWS CLI

    The AWS Command Line Interface (CLI) is a unified tool to manage your AWS services. With just one tool to download and…

  • How Big Companies Manage Big Data🤔?

    Do you know that 95% of such data is unstructured as of now and the percentage is growing enormously? The data in the…

    2 Comments
  • Kubernetes & It's Case Study: NOKIA

    What is Kubernetes?🤔 Kubernetes is a system for deploying applications and more efficiently utilizing the…

  • Domino’s Pizza Enterprises Using AWS for Predictive Ordering

    When it comes to the global pizza business, Domino’s Pizza Enterprises Limited (Domino’s) has a large slice of the pie.…

    9 Comments

Others also viewed

Explore content categories