CC Rec
CC Rec
OF IT
Cloud computing is a technology that uses the internet and central remote servers to
maintain data and applications. It is a model for enabling ubiquitous, on-demand access to a
shared pool of configurable computing resources (e.g., computer networks, servers, storage,
applications and services) that can be rapidly provisioned and released with minimal
management effort. This cloud model promotes availability and is composed of five essential
characteristics, three service model and four deployment models.
DEPLOYMENT MODELS
Private cloud
Private cloud is cloud infrastructure operated solely for a single organization. It may be
managed by the organization or by a third-party and may exist on premise or off premise.
1
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
Public cloud
The cloud infrastructure is made available to the general public or a large industry group and
is owned by an organization selling cloud services.
Hybrid cloud
The cloud infrastructure is a composition of two or more clouds (private, community, public)
that remain unique entities but are bound together by standardized or proprietary technology
that enables data and application portability (e.g. Cloud bursting for load-balancing between
clouds ).
Community cloud
The cloud infrastructure is shared by several organizations and supports a specific community
that has shared concerns (security, compliance, jurisdiction, etc.). It may be managed by the
organization or by a third-party and may exist on premise or off premise.
SERVICE MODELS
The capability provided to the consumer is to use the provider’s applications running
on a cloud infrastructure. The applications are accessible from various client devices through
either a thin client interface, such as a web browser (e.g., web-based email), or a program
interface. The consumer does not manage or control the underlying cloud infrastructure
including network, servers, operating systems, storage, or even individual application
capabilities, with the possible exception of limited user-specific application configuration
settings.
The capability provided to the consumer is to deploy onto the cloud infrastructure
consumer-created or acquired applications created using programming languages, libraries,
services, and tools supported by the provider. The consumer does not manage or control the
underlying cloud infrastructure including network, servers, operating systems, or storage, but
has control over the deployed applications and possibly configuration settings for the
application-hosting environment.
2
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
A consumer can unilaterally provision computing capabilities, such as server time and
network storage, as needed automatically without requiring human interaction with each
service provider.
Capabilities are available over the network and accessed through standard mechanisms
that promote use by heterogeneous thin or thick client platforms (e.g., mobile phones, tablets,
laptops and workstations).
Resource pooling
The provider's computing resources are pooled to serve multiple consumers using a
multi-tenant model, with different physical and virtual resources dynamically assigned and
3
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
Rapid elasticity
Measured service
Partitioning
Isolation
Each virtual machine is isolated from its host physical system and other virtualized
machines. Because of this isolation, if one virtual-instance crashes, it doesn’t affect the other
virtual machines. In addition, data isn’t shared between one virtual container and another.
Encapsulation
A virtual machine can be represented (and even stored) as a single file, so you can
identify it easily based on the service it provides. In essence, the encapsulated process could
4
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
Applications of virtualization
Virtualization can be applied broadly to just about everything that you could imagine:
• Memory
• Networks
• Storage
• Hardware
• Operating systems
• Applications
Forms of virtualization
INTRODUCTION TO OPENSTACK
OpenStack is a software package that provides a cloud platform for Public and Private cloud
covering various use cases including Enterprise and Telecom. The main focus is on
Infrastructure as a Service (IaaS) cloud and additional services built upon IaaS. The services
developed by the community are available as tarballs to install them from source and are also
picked up and packaged to make it available for different Linux distributions or as part of
OpenStack distributions.
5
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
Community
To produce a ubiquitous Open Source Cloud Computing platform that is easy to use, simple to
implement, interoperable between deployments, works well at all scales, and meets the needs
of users and operators of both public and private clouds.
• Code review
• Testing
• CI
• Version control
• Documentation
• a set of collaboration tools, like a wiki, IRC channels, Ether pad and Ether calc.
The basic principles of the OpenStack community are the four opens.
Open source
Open design
Open development
Open Community
6
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
AIM:
To write the procedure to install the virtual box with different flavours
of Linux/Windows.
PROCEDURE:
Step 1: Run the Virtual box setup and click the “Next” option.
Step 2: Repeat Click on “Next” option and Finally Click the option “Install”
Step 3: To Install “Ubuntu” as virtual machine in “Oracle VM Virtual box”, Open the
Oracle VM Virtual box Manager
7
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
8
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
9
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
Step 10: Select the new virtual OS created and click on “Settings”
Step 11: Select “Storage” from the left panel of the window
Step 12: Click on the first icon “Add CD/DVD device” in Controller: IDE
10
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
Step 13: Select “Choose Disk” and Choose the virtual machine to be used and click “Open”
Step 14: Click “OK” and select “Start” to run the virtual machine
11
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
Step 16: Select 'Erase disk and install Ubuntu' option is selected and click 'Install
Now' button
Step 18: Enter the name, username and password. Click 'Continue' button
12
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
Step 19: After completion of installation process, click on 'Restart Now' button.
OUTPUT:
RESULT:
Thus the virtual box with different flavours of Linux/Windows has been
Installed Success fully.
13
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
AIM:
PROCEDURE:
STEP:1 Before install a C compiler in a virtual machine, we have Create a virtual machine by
opening the Kernal Virtual Machine (KVM). Open the installed virtual manager. As well as
install different Ubuntu and Windows OS in that virtual machine with different names.
STEP:3 Open Text Editor in Ubuntu OS and type a C program and save it in desktop
to execute.
14
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
STEP:4 To install the C compiler in Ubuntu OS, open the terminal and type the command.
OUTPUT:
RESULT:
Thus the C compiler is installed in the virtual machine and executed the program
Successfully.
15
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
AIM:
To install google app engine and create hello world app using java.
PROCEDURE:
• Create a project
Projects bundle code, VMs, and other resources together for easier development and
monitoring.
You will learn how to run your app using Cloud Shell, right in your browser. At the
end, you'll deploy your app to the web using the App Engine Maven plugin.
GCP (Google Cloud Platform) organizes resources into projects, which collect all of the
related resources for a single application in one place.
Begin by creating a new project or selecting an existing project for this tutorial.
Step1:
Step2:
Cloud Shell is a built-in command-line tool for the console. You're going to use Cloud Shell
to deploy your app.
Activate Cloud Shell button in the navigation bar in the upper-right corner of the console
Use Cloud Shell to clone and navigate to the "Hello World" code. The sample code is
cloned from your project repository to the Cloud Shell.
Note: If the directory already exists, remove the previous files before cloning:
rm -rf appengine-try-java
16
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
git clone \
[Link]
cd appengine-try-java
Step3:
You are now in the main directory for the sample code. You'll look at the files that
configure your application.
cat \
src/main/java/myapp/[Link]
This servlet responds to any request by sending a response containing the message Hello,
world!.
For Java, App Engine uses XML files to specify a deployment's configuration.
cat [Link]
The hello world app uses Maven, which means you must specify a Project Object Model, or
POM, which contains information about the project and configuration details used by Maven
to build the project.
Step4:
Cloud Shell lets you test your app before deploying to make sure it's running as intended, just
like debugging on your local machine.
mvn appengine:run
17
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
Your app is now running on Cloud Shell. You can access the app by clicking the
Web preview
button at the top of the Cloud Shell pane and choosing Preview on port 8080.
Terminate the instance of the application by pressing Ctrl+C in the Cloud Shell
Step5:
Create an application
Note: If you already created an app, you can skip this step.
The default URL of your app is a subdomain on [Link] that starts with your
project's ID: <your-project>.[Link].
You can check in on your app by monitoring its status on the App Engine dashboard.
18
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
RESULT:
Thus google app engine is installed and hello world app using java created
successfully.
19
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
AIM:
To launch the web applications using gae launcher.
PROCEDURE:
Before you can host your website on Google App Engine:
1. Create a new Cloud Console project or retrieve the project ID of an existing project
to use:
Go to the Projects page ([Link]
Tip: You can retrieve a list of your existing project IDs with the gcloud command line
tool (#before_you_begin).
2. Install and then initialize the Google Cloud SDK:
Download the SDK (/sdk/docs)
Creating a website to host on Google App Engine
Basic structure for the project
This guide uses the following structure for the project:
[Link]: Configure the settings of your App Engine application.
www/: Directory to store all of your static files, such as HTML, CSS, images, and
JavaScript.
css/: Directory to store style sheets.
[Link]: Basic styles sheet that formats the look and feel of your site.
images/: Optional directory to store images.
[Link]: An HTML file that displays content for your website.
js/: Optional directory to store JavaScript files.
Other asset directories.
20
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
www directory.
Create the [Link] file in your application's root directory:
1. Create a directory that has the same name as your project ID. You can find
your project ID in the Console ([Link]
2. In directory that you just created, create a file named [Link].
3. Edit the [Link] file and add the following code to the file:
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /
static_files: www/[Link]
upload: www/[Link]
- url: /(.*)
static_files: www/\1
upload: www/(.*)
More reference information about the [Link] file can be found in the [Link] reference
documentation (/appengine/docs/standard/python/config/appref). Creating the [Link]
_le
Create an HTML file that will be served when someone navigates to the root page of
your website. Store this file in your www directory. Deploying your application to App
Engine
When you deploy your application files, your website will be uploaded to App Engine.
To deploy your app, run the following command from within the root directory of your
application where the [Link] file is located: Optional flags:
21
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
head>
body>
<h1>Hello, world!</h1>
<p>
This is a simple static HTML file that will be served from Google App
Engine.
</p>
body>
ml>
id app deploy
Optional flags:
Include the --project flag to specify an alternate Cloud Console project ID to
what you initialized as the default in the gcloud tool. Example: --project
[YOUR_PROJECT_ID]
Include the -v flag to specify a version ID, otherwise one is generated for
you. Example: -v [YOUR_VERSION_ID
To learn more about deploying your app from the command line, see Deploying a Python
2 App (/app engine/docs/python/tools/uploading an app). Viewing your application
ud app browse
RESULT:
Thus the web applications using gae launcher launched.
22
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
What is Cloudsim?
CloudSim is a simulation toolkit that supports the modelling and simulation of the core
functionality of cloud, like job/task queue, processing of events, creation of cloud entities
(datacentre, datacentre brokers, etc), communication between different entities,
implementation of broker policies, etc. This toolkit allows to:
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
23
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
import [Link];
import [Link];
import [Link];
/**
* FCFS Task scheduling
* @author Linda J
*/
public class FCFS {
/**
* Creates main() to run this
example */
public static void main(String[] args) {
[Link]("Starting FCFS...");
try {
// First step: Initialize the CloudSim package. It should be
called // before creating any entities.
int num_user = 1; // number of cloud users
Calendar calendar = [Link]();
boolean trace_flag = false; // mean trace events
24
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
[Link]();
printCloudletList(newList);
25
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
[Link]("FCFS finished!");
}
catch (Exception e) {
[Link]();
[Link]("The simulation has been terminated due to an unexpected error");
}
}
return datacenter;
//We strongly encourage users to develop their own broker policies, to submit vms and
cloudlets according
//to the specific rules of the simulated scenario
private static FcfsBroker createBroker(){
/**
* Prints the Cloudlet objects
* @param list list of Cloudlets
*/
26
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
if ([Link]() == [Link]){
[Link]("SUCCESS");
}
}
Conclusion:
Thus simulating a cloud scenario using cloud sim is simulated successfully.
27
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
PROCEDURE:
28
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
STEP:6 Go to File->Computer:/home/sam/Documents/
29
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
30
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
STEP:15 VM is imported.
RESULT:
Thus the files from one Virtual Machine to another Virtual Machine is
transferred Successfully.
31
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
AIM:
PROCEDURE:
32
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
Done.
Enter new UNIX password: \\Note: Enter any password and remember that, this is only
for unix(applicable for hduser)
Enter the new value, or press ENTER for the default \\Note: Just enter your name and then
click enter button for remaining
Other []:
hduser : hadoop
/usr/bin/ssh
/usr/sbin/sshd
sam@sysc40:~$ su hduser
Password: \\Note: Enter the password that we have given above for hduser
hduser@sysc40:/home/sam$
hduser@sysc40:/home/sam$ cd
34
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
Enter file in which to save the key (/home/hduser/.ssh/id_rsa): \\Note: Just click Enter button
SHA256:QWYjqMI0g/ElhpXhVvgVITSn4O4HWS98MDqCX7Gsf/g hduser@sysc40
|o+*=*.=o= |
|oOo=.=.= . |
|o Bo*. . |
|o+.*.* . |
|o.* * o S |
|+=o |
| + .. |
| o. . |
| .oE |
* Documentation: [Link]
* Management: [Link]
* Support:[Link]
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
applicable law.
(190M) [application/x-gzip]
hadoop-2.6.5/include/
hadoop-2.6.5/include/hdfs.h
hadoop-2.6.5/include/[Link]
hadoop-2.6.5/include/[Link]
hadoop-2.6.5/include/[Link]
hadoop-2.6.5/include/[Link]
hadoop-2.6.5/[Link]
hadoop-2.6.5/[Link]
hadoop-2.6.5/share/hadoop/tools/lib/[Link] hadoop-
2.6.5/share/hadoop/tools/lib/[Link]
hadoop-2.6.5/share/hadoop/tools/lib/[Link]
hduser@sysc40:~$ cd hadoop-2.6.5
hduser@sysc40:~/hadoop-2.6.5$ su sam
Password: sam123
37
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
Done.
sam@sysc40:/home/hduser/hadoop-2.6.5$ su hduser
Password: \\Note: Enter the password that we have given above for hduser
/usr/local/hadoop hduser@sysc40:~/hadoop-2.6.5$ cd
There is only one alternative in link group java (providing /usr/bin/java): /usr/lib/jvm/java-8-
openjdk-amd64/jre/bin/java
Nothing to configure.
Add the below content at the end of the file and save it
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-
export PATH=$PATH:$HADOOP_INSTALL/bin
export PATH=$PATH:$HADOOP_INSTALL/sbin
export HADOOP_MAPRED_HOME=$HADOOP_INSTALL
export HADOOP_COMMON_HOME=$HADOOP_INSTALL
export HADOOP_HDFS_HOME=$HADOOP_INSTALL
38
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
export YARN_HOME=$HADOOP_INSTALL
export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_INSTALL/lib/native
VARIABLES END
javac 1.8.0_131
/usr/bin/javac
/usr/lib/jvm/java-8-openjdk-amd64/bin/javac
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
<configuration>
<property>
<name>[Link]</name>
<value>/app/hadoop/tmp</value>
39
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
</property>
<property>
<name>[Link]</name>
<value>hdfs://localhost:54310</value>
</property>
</configuration>
hduser@sysc40:~$ cp /usr/local/hadoop/etc/hadoop/mapred-
[Link] /usr/local/hadoop/etc/hadoop/[Link]
<configuration> <property>
<name>[Link]</name>
<value>localhost:54311</value>
runs at. If "local", then jobs are run in-process as a single map and
reduce task.
</description>
</property>
</configuration>
40
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
<configuration>
<property>
<name>[Link]</name>
<value>1</value>
The actual number of replications can be specified when the file is created.
</description>
</property>
<property>
<name>[Link]</name>
<value>file:/usr/local/hadoop_store/hdfs/namenode</value>
</property>
<property>
<name>[Link]</name>
<value>file:/usr/local/hadoop_store/hdfs/datanode</value>
</property>
</configuration>
41
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
/************************************************************
laptop/[Link]
...
...
...
/************************************************************
************************************************************/
Starting Hadoop
Now it's time to start the newly installed single node cluster.
We can use [Link] or ([Link] and [Link])
hduser@sysc40:~$ su sam
Password: sam123
sam@sysc40:/home/hduser$ cd
sam@sysc40:~$ cd /usr/local/hadoop/sbin
sam@sysc40:/usr/local/hadoop/sbin$ ls
[Link] [Link]
[Link] [Link]
hduser@sysc40:/usr/local/hadoop/sbin$ [Link]
[Link]: Warning: Permanently added '[Link]' (ECDSA) to the list of known hosts.
hduser@sysc40:/usr/local/hadoop/sbin$ [Link]
43
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
hduser@sysc70:/usr/local/hadoop/sbin$ jps
14505 SecondaryNameNode
14205 NameNode
14765 NodeManager
15166 Jps
hduser@laptop:/usr/local/hadoop/sbin$ [Link]
hduser@laptop:/usr/local/hadoop/sbin$ [Link]
stopping resourcemanager
44
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
no proxyserver to stop
hduser@laptop:/usr/local/hadoop/sbin$ [Link]
hduser@laptop:/usr/local/hadoop/sbin$ [Link]
Type [Link] into our browser, then we'll see the web UI of the
NameNode daemon: In the Overview tab, you can see the Overview, Summary,
NameNode Journal Status and the NameNode Storage informations.
The default port number to access all the applications of cluster is 8088. Use the following url
to visit Resource Manager: [Link]
We need to click the Nodes option in the left Cluster panel, then it will show the node that
we have created.
45
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
RESULT:
46
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
To write a word count program to demonstrate the use of Map and Reduce task.
PROCEDURE
Step 0: We need to check whether the hadoop dashboard has been created with all the
six nodes.
sam@sysc65:~$ su hduser
Password:
hduser@sysc65:/home/sam$ cd /usr/local/hadoop/sbin
hduser@sysc65:/usr/local/hadoop/sbin$ [Link]
NameNode
4279 ResourceManager
4120 SecondaryNameNode
47
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
3916 DataNode
4396 NodeManager
5486 Jps
hduser@sysc65:/usr/local/hadoop/sbin$
Then only, we can continue with the below lines to execute this exercise. Open
Separate terminal to workout the below commands by Alt+Ctrl+t
Password:
Step 2:hduser@sysc65:/home/sam$ cd
Paste the program into that file and save it by Ctrl+o, Enter & Ctrl+x
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
48
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
import [Link];
Job(c,"wordcount");
[Link]([Link]);
[Link]([Link]);
[Link]([Link]);
[Link]([Link]);
[Link]([Link]);
[Link](j, input);
[Link](j, output);
[Link]([Link](true)?0:1); }
public void map(LongWritable key, Text value, Context con) throws IOException,
InterruptedException
String[] words=[Link](",");
int sum = 0;
sum += [Link]();
/usr/local/hadoop/etc/hadoop:/usr/local/hadoop/share/hadoop/common/lib/*:/usr/local/hadoop
/share/hadoop/common/*:/usr/local/hadoop/share/hadoop/hdfs:/usr/local/hadoop/share/hadoo
50
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
p/hdfs/lib/*:/usr/local/hadoop/share/hadoop/hdfs/*:/usr/local/hadoop/share/hadoop/yarn/lib/*:
/usr/local/hadoop/share/hadoop/yarn/*:/usr/local/hadoop/share/hadoop/mapreduce/lib/*:/usr/l
ocal/hadoop/share/hadoop/mapreduce/*:/contrib/capacity-scheduler/*.jar
Step 6: Copy and paste the above classpath to compile the java program and make it as jar
file.
Paste the below lines into that file andd save it by Ctrl+o, Enter & Ctrl+x
bus,train,car,bUs,TrAiN,cAr,bus,train,car,bUs,TrAiN,cAr,bus,train,car,bUs,TrAiN,cAr,bus,tr
ain,car,bUs,TrAiN,cAr,bus,train,car,bUs,TrAiN,cAr,bus,train,car,bUs,TrAiN,cAr,bus,train,ca
r,bUs,TrAiN,cAr,bus,train,car,bUs,TrAiN,cAr,bus,train,car,bUs,TrAiN,cAr,bus,train,car,bUs,
TrAiN,cAr,bus,train,car,bUs,TrAiN,cAr,train,bus,bus
Step 11:
Step 12:
Map-Reduce Framework
52
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
Shuffle Errors
BAD_ID=0
CONNECTION=0
IO_ERROR=0
WRONG_LENGTH=0
WRONG_MAP=0
WRONG_REDUCE=0
Bytes Read=322
Bytes Written=23
Found 2 items
Step 14:
BUS 24
CAR 22
TRAIN 23
53
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
RESULT:
Thus the word count program to demonstrate the use of Map and Reduce task has
been created and executed.
54
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
55
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
That's it! You now have Docker installed on your machine and can start using it to manage
containers.
Install Docker: First, you need to install Docker on your machine. Docker provides platform-
specific installation instructions on their website for different operating systems. Follow the
instructions to install Docker for your particular OS.
Docker Image: Docker containers are created based on Docker images. An image is a
lightweight, standalone, and executable package that includes everything needed to run a
piece of software, including the code, runtime, libraries, and system tools. Docker Hub
([Link]) is a popular online repository of Docker images. You can search for
existing images on Docker Hub or create your own. For this example, we'll use an existing
image.
Pull an Image: Open your terminal or command prompt and execute the following command
to pull an existing Docker image from Docker Hub. We'll use the official hello-world image
as an example:
Copy code
docker pull hello-world
Docker will download the image from the Docker Hub repository.
Run a Container: Once you have the Docker image, you can create and run a container based
on thatimage. Execute the following command to run the hello-world container:
arduino
Copy code
docker run hello-world
Docker will create a container from the image and execute it. The container will print a
"Hello from
Docker!" message along with some information about your Docker installation.
Note: If you haven't pulled the hello-world image in the previous step, Docker will
automatically download it before running the container.
Congratulations! You've created and executed your first Docker container. Docker will
handle the container lifecycle, including starting, stopping, and managing resources for you.
This simple example demonstrates the basic concept of running a container using Docker.
You can explore further by trying out different Docker images and running more complex
applications within containers.
RESULT:
Thus the first container using docker is created and executed successfully.
56
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
(or)
Flow-1: Pull Docker Image from Docker Hub and Run it
Step-1: Verify Docker version and also login to Docker Hub
docker version
docker login
Step-2: Pull Image from Docker Hub
docker pull stacksimplify/dockerintro-springboot-helloworld-rest-api:1.0.0-RELEASE
Step-3: Run the downloaded Docker Image & Access the Application
Copy the docker image name from Docker Hub
docker run --name app1 -p 80:8080 -d stack simplify/dockerintro-springboot-helloworld-rest-
api:1.0.0-
RELEASE
[Link]
Step-4: List Running Containers
docker ps
docker ps -a
docker ps -a -q
Step-5: Connect to Container Terminal
docker exec -it <container-name> /bin/sh
Step-6: Container Stop, Start
docker stop <container-name>
docker start <container-name>
58
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
RESULT:
Thus the program ran a container from docker hub
59
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
ADDITIONAL EXERCISES
AIM:
To Create communication between two virtual machines in an virtual environment.
PROCEDURE:
Step 1: Implement two host operating systems onto a single virtual box
Step 2: Then implement a internal networking in between them by the following steps
ping [Link]
RESULT:
Thus the communication between two virtual machines in an virtual environment
was created Successfully.
60
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
DATE:
AIM:
To study and implementation of Storage as a Service.
PROCEDURE:
Step 1: Sign into the Google Drive website with your Google account.
If you don‟t have a Google account, you can create one for free. Google Drive will allow you
to store your files in the cloud, as well as create documents and forms through the Google
Drive web interface.
61
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
Step 4: Use the navigation bar on the left side to browse your files.
“My Drive” is where all of your uploaded files and folders are stored. “Shared with Me” are
documents and files that have been shared with you by other Drive users. “Starred” files are
62
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
files that you have marked as important, and “Recent” files are the ones you have most
recently edited.
•You can drag and drop files and folders around your Drive to organize them as you see fit.
•Click the Folder icon with a “+” sign to create a new folder in your Drive. You can create
folders inside of other folders to organize your files.
63
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
64
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
65
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
66
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
Other Capabilities:
1. Edit photos
2. Listen Music
3. Do drawings
4. Merge PDFs
CONCLUSION:
Google Docs provide an efficient way for storage of data. It fits well in Storage as a
service (SaaS). It has varied options to create documents, presentations and also spreadsheets.
It saves documents automatically after a few seconds and can be shared anywhere on the
Internet at the click of a button.
67
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
AIM:
PROCEDURE:
68
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
Step 3: Give an Email id in the required field, if you are registering first time then select "I
am a new user" radio button and click on "sign in using our secure server" button. Step 4:
Again go to "My Account". select "AWS management console" and click on it.
Sign in again by entering the user name and valid password ( check "I am returning user and
my password is" radio button)
Step 5: All AWS project can be viewed by you, but you cant make any changes in it or you
cant create new thing as you are not paying any charges to amazon .
Step 6: To create the user in a root user follow the steps mentioned below:
1) Click on "Identity and Access Management" in security and identity project
2) Click in "Users" from dashboard,It will take you to "Create New Users" and click
on
create new user button .Enter the "User Name" and click on "Create" button at
right bottom
3) Once the user is created click on it
4) Go to security credentials tab
5) Click on "Create Access Key", it will create an access key for user.
6) Click on "Manage MFA device" it will give you one QR code displayed on the
screen
you need to scan that QR code on your mobile phone using barcode scanner (install it
in mobile phone) you also need to install "Google Authenticator" in your mobile phone
to generate the MFA code
7) Google authenticator will keep on generating a new MFA code after every 60
seconds
that code you will have to enter while logging as a user. Hence, the security is
maintained by MFA device code...
one cannot use your AWS account even if it may have your user name and password,
because MFA code is on your MFA device (mobile phone in this case) and it is getting
changed after every 60 seconds.
Step 7: Permissions in user account:
After creating the user by following above mentioned steps; you can give certain
permissions to specific user
1) Click on created user
2) Go to "Permissions" tab
3) Click on "Attach Policy"
button 4)Click on apply.
69
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
SAMPLE OUTPUT:
Click on "My Account". Select "AWS management console" and click on it. Give Email id in
the required field
70
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
71
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
72
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
Creation of users
73
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
74
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
75
SOWMIYA B 211521205151
PANIMALAR INSTITUTE OF TECHNOLOGY DEPT. OF IT
CONCLUSION:
We have studied how to secure the cloud and its data. Amazon EWS provides the best
security with its extended facilities and services like MFA device. It also gives you the ability
to add your own permissions and policies for securing data more encrypted.
76
SOWMIYA B 211521205151