Cloud Computing Practical File
Cloud Computing Practical File
Science, Khandwa
A
Practical file on
“ Cloud Computing ”
SIGN:
THEORY:
Google Docs is a free cloud- based suite of tools for creating documents, spreadsheets,
presentations, and more. This tutorial will cover the Spreadsheets application in Google Docs, in
addition to showing you how to access and store your Docs from Google Drive.
Google Docs, Sheets, and Slides are productivity apps that let you create different kinds of
online documents, work on them in real time with other people, and store them in your Google
Drive online — all for free. You can access the documents, spreadsheets, and presentations you
create from any computer, anywhere in the world. ( There's even some work you can do without
an Internet connection!) This guide will give you a quick overview of the many things that you
can do with Google Docs, Sheets, and Slides.
Google Docs
Google Docs is an online word processor that lets you create and format text documents and
collaborate with other people in real time. Here's what you can do with Google Docs:
● Upload a Word document and convert it to a Google document
● Add flair and formatting to your documents by adjusting margins, spacing, fonts, and
colors — all that fun stuff
● Invite other people to collaborate on a document with you, giving them edit, comment or
view access
● Collaborate online in real time and chat with other collaborators — right from inside the
document
● View your document's revision history and roll back to any previous version
● Download a Google document to your desktop as a Word, OpenOffice, RTF, PDF, HTML
or zip file
● Translate a document to a different language
● Email your documents to other people as attachments
Google Sheets
Google Sheets is an online spreadsheet app that lets you create and format spreadsheets and
simultaneously work with other people. Here's what you can do with Google Sheets:
● Import and convert Excel, .csv, .txt and .ods formatted data to a Google spreadsheet
● Export Excel, .csv, .txt and .ods formatted data, as well as PDF and HTML files
● Use formula editing to perform calculations on your data, and use formatting make it
look the way you'd like
● Chat in real time with others who are editing your spreadsheet
● Create charts with your data
● Embed a spreadsheet — or individual sheets of your spreadsheet — on your blog or
website
Google Slides
Google Slides is an online presentations app that allows you to show off your work in a visual
way. Here's what you can do with Google Slides:
● Create and edit presentations
● Edit a presentation with friends or coworkers, and share it with others effortlessly
● Import .pptx and .pps files and convert them to Google presentations
● Download your presentations as a PDF, a PPT, or a .txt file
● Insert images and videos into your presentation
● Publish and embed your presentations in a website
To create a new document, go to your Drive, click the Create button, and select Document.
A window with a new Google document will open, and you'll be able to edit the document,
share
it with other people, and collaborate on it in real- time. Google Docs saves your document
automatically, and you can always access it from your Drive.
Name a document
When you create a new document, Google Docs will name it Untitled by default.
To choose a name other than Untitled, click the File menu, and select Rename. From here
you
can choose and confirm your document's title. You can also edit the name by clicking the
title
displayed at the top of the page, and making your changes in the dialog that appears. Titles
can be up to 255 characters long.
Delete a document
To create a new document, go to your Drive, click the red Create button, and select
Document
from the drop- down menu.
As soon as you name the document or start typing, Google Docs will automatically save your
work every few seconds. At the top of the document, you'll see text that indicates when your
document was last saved. You can access your document at any time by opening your Drive
at
http:/ / [Link].
To save a copy of a document to your computer, you can download it. In your document, go
to the File menu and point your mouse to the Download as option. Select one of the following
file types: HTML ( zipped) , RTF, Word, Open Office, PDF, and plain text. Your document will
download to your computer.
Upload a document
You can upload existing documents to Google documents at any time. When you're uploading,
you can either keep your document in its original file type or convert it to Google Docs format.
Converting your document to Google Docs format allows you to edit and collaborate online
from
any computer.
Note: When uploaded, images within a document are left as images ( rather than being
converted
to text by Optical Character Recognition technology) .
1. Click the Upload icon in the top left of your Documents List.
2. Click Files..., and select the document you'd like to upload.
3. Click Open.
4. Check the box next to 'Convert documents, presentations, spreadsheets, and drawings
to
the corresponding Google Docs format' if you'd like to be able to edit and collaborate on
the document online. Uploaded document files that are converted to Google documents
THEORY:
Just Cloud will automatically backup the documents, photos, music and videos
stored on your computer, to the cloud so you are never without files again.
Installation :
gives you 15MB storage space or 50 files for 14 days. Once installed a sync folder will
be added to your desktop for you to easily drag and drop files you wish to backup.
Experiment No. 3
THEORY:
Cloud9 IDE is an online development environment for JavaScript and [Link] applications as
well
as HTML, CSS, PHP, Java, Ruby and 23 other languages. Anyone looking for a modern and
secure IDE. With your code online and accessible from anywhere, you can work more
efficiently
than before.
Creating a new account : Creating an account for the Cloud 9 IDE can be done in a few
simple steps:
1. First, sign up for an account on the Cloud9 homepage, by filling in your desired
username
and email address and pressing the Sign me up button:
You will then see a message indicating that we have sent you an email to the address you
provided with activation instructions:
2. Check your email now. You will receive an email from us with a link to activate the account.
Click on the link. You will now be asked to set a password for your new Cloud9 account:
3. Click on Activate.
Congratulations! You are now the proud owner of a Cloud9 account. Now, go ahead and
create
your first project.
At this point, you will encounter two choices: Create a new project and Clone from url. We will
Enter a project name. You will now have three choices for the type of project you wish to
create:
● Git project: will allow you to run git commands from the console and push your changes
to Github
● Mercurial: will allow you to run hg commands form the console and push your changes
to Bitbucket.
● FTP: will allow you to upload your files directly to an FTP server you have access to.
Make a choice for the type of project and press Create. That is all! You will now see your
new project in the dashboard:
Now, just click Start Editing to get started!
1. From your dashboard, click 'create new workspace' and then select 'create
new
workspace'.
2. Enter a catchy workspace name, visibility: open ( proud to share your
creations) ,
hosting: hosted and choose a 'custom' workspace type. Click 'create'.
3. The workspace is being prepared and when done, select the project in the
dashboard
and click 'start editing'.
4. The workspace is opened, right click the project tree and select 'new file'. Name it
'[Link]'.
5. Open the file by double clicking it in the file tree. Copy / paste the following code in
the file:
int main() {
./helloWorld
Experiment No. 4
Objective: Installation and Configuration of Hadoop/Eucalyptus.
Cygwin Installer
3. When you see the above screenshot, keep pressing the 'Next' button until you see
the
package selection screen shown below. Make sure you select 'openssh'. This
package is
required for the correct functioning of the Hadoop cluster and Eclipse plug- in.
4. After you selected these packages press the 'Next' button to complete the installation.
1. Find "My Computer" icon either on the desktop or in the start menu, right- click on it
and select Properties item from the menu.
2. When you see the Properties dialog box, click on the Environment Variables button as
shown below
3. When Environment Variables dialog shows up, click on the Path variable located in the
System Variables box and then click the Edit button.
4. When Edit dialog appears append the following text to the end of the Variable value field:
;c:\cygwin\bin;c:\cygwin\usr\bin
Note: If you installed cygwin in the non- standard location, correct the above value
accordingly.
5. Close all three dialog boxes by pressing OK button of each dialog box.
Setup SSH daemon
Both Hadoop scripts and Eclipse plug- in need password- less SSH to operate. This section
describes how to set it up in the Cygwin environment.
Configure ssh daemon
1. Open the Cygwin command prompt.
2. Execute the following command:
ssh- host- config
3. When asked if privilege separation should be used, answer no.
4. When asked if sshd should be installed as a service, answer yes.
5. When asked about the value of CYGWIN environment variable, enter ntsec.
6. Here is an example session of this command. Note that the input typed by the user is
shown in pink and output from the system is shown in gray.
Example of using ssh- host- config
A small window should pop- up indicating the progress of the service start- up. After that
window disappears the status of CYGWIN sshd service should change to Started.
7. Now check if the keys were set up correctly by executing the following command:
ssh localhost
Since it is a new ssh installation, you will be warned that authenticity of the host could
not be established and will be asked whether you really want to connect. Answer yes
and
press ENTER. You should see the Cygwin prompt again, which means that you have
successfully connected.
Download hadoop 0.19.1 and place in some folder on your computer such as C:\Java.
explorer .
4. Open another Explorer window and navigate to the folder that contains the
downloaded
Hadoop archive.
5. Copy the Hadoop archive into your home directory folder.
This will start unpacking the Hadoop distribution. After several minutes you should
see a
new Cygwin prompt again as shown in the screenshot below:
3. When you see the new prompt, execute the following command:
ls - l
This command will list the contents of your home directory. You should see a newly
created directory called hadoop- 0.19.1
4. Next execute the following commands:
cd hadoop- 0.19.1
ls - l
If you get output similar to the following, everything was unpacked correctly and you can
go to the next step.
total 4145
Configure Hadoop
Now that Hadoop has been unpacked, we are ready to configure it.
cd hadoop- 0.19.1
cd conf
explorer .
Bringing up explorer window
1. The last command will cause the Explorer window for the 'conf' directory to pop up.
Minimize it for now or move it to the side.
2. Launch Eclipse.
3. Bring up the 'conf' Explorer window opened in Step 2 and drag the file hadoop- site to
the Eclipse main window.
4. Insert the following lines between <configuration> and </ configuration> tags.
5. <property>
6. <name>[Link]</name>
7. <value>hdfs://localhost:9100</value>
8. </property>
9. <property>
10. <name>[Link]</name>
11. <value>localhost:9101</value>
12. </property>
13. <property>
14. <name>[Link]</name>
15. <value>1</value>
16. </property>
cd hadoop- 0.19.1
mkdir logs
Now that the filesystem has been created you can proceed to the next step.
cd hadoop- 0.19.1
cd contrib
cd eclipse- plugin
explorer .
2. Shrink the newly popped window and move it to the right of the screen.
3. Open another Explorer window either through "My Computer" icon or by using the "Start
- > Run" menu. Navigate to the Eclipse installation and open the "plugins" folder.
4. Copy the file "hadoop- 0.19.1- eclipse- [Link]" from the Hadoop eclipse- plugin
folder to
the Eclipse plugins folder as shown in the figure below.
Now that the we installed and configured hadoop cluster and eclipse plugin i's a time to
test
the setup by running a simple project.
cd hadoop- 0.19.1
cd hadoop- 0.19.1
cd hadoop- 0.19.1
cd hadoop- 0.19.1
cd hadoop- 0.19.1
At this point the cluster is running and you can proceed to the next step.
located at the bottom of the Eclipse environment. Then right click on the blank space
in
that tab and select "New Hadoop location...." from the context menu. You should see a
2. Execute the following commands in the new CYGWIN window as shown on the image
above.
cd hadoop- 0.19.1
5. You will see the project properties window similar to the one shown below
6. Fill in the project name and click on Configure Hadoop Installation link on the right hand
side of the project configuration window. This will bring up the project Preferences
window shown in the image below.
7. In the project Preferences window enter the location of the Hadoop directory in the
Hadoop installation directory field as shown above.
If you are not sure of the location of the Hadoop home directory, refer to Step 1 of
this section. Hadoop home directory is one level up from the conf directory.
8. After entering the location close the Preferences window by pressing the OK button.
Then close the Project window with the Finish button.
9. You have now created your first Hadoop Eclipse project. You should see its name in the
Project Explorer tab.
3. When the MapReduce Driver wizard appears, enter TestDriver in the Name field and press
the Finish button. This will create the skeleton code for the MapReduce Driver.
4. Unfortunately the Hadoop plug- in for Eclipse is slightly out of step with the recent
Hadoop API, so we need to edit the driver code a bit.
Find the following two lines in the source code and comment them out:
[Link]( new Path( "src") ) ;
[Link]( [Link]) ;
2. In the window shown above select "Choose existing Hadoop location" , then select
localhost from the list below. After that click Finish button to start your project.
3. If you see console output similar to the one shown below, Congratulations! You have
started the project successfully!
Experiment No. 5
THEORY:
Deploying a New Application GAE
With Codenvy you can deploy Java, Python and PHP apps to Google App Engine.
● create a new project from scratch and choose either Java web application or
Python
and Google App Engine as PaaS ( if you have already created a project, then open it
The process may take several minutes, and you will see a confirmation message in the
Output
panel with the application url - [Link]
Make sure you use the same Google ID to log in to Codenvy and Google App Engine.
Using
different accounts may cause 401 or 404 errors. 401 error can be fixed by logging out,
and
then logging in Google App Engine at PaaS > Google App Engine > Logout/ Login
Watch the entire process of deploying an app to GAE in the below video
Updating an Existing Application GAE
Having deployed your application to GAE, you can make some changes to the code and
easily
update it.
● The application is updated at Project > PaaS > Google App Engine
● The project is re- built and re- deployed once you press Application Update button. An
alternative way to update your GAE app is to go to PaaS > Google App Engine > Update
Application.
Three messages ( project build, start and end of deployment) appear in the Output panel one
by
on. Once done, changes are implemented in the application hosted on [Link].
Have a look at this short video demonstrating how you can update your GAE apps directly
from
Codenvy:
Managing GAE Applications
You can manage your GAE application at Project >PaaS > Google App Engine.
It’ s possible to modify and vacuum Indexes, PageSpeed, Queues, DoS as well as have a look
at
recourse limits, cron jobs and backends.
on GitHub and sync it regularly) . You can download source code of your Java and
Python apps using SDK command line ( check out GAE documentation) .
● push this code to GitHub or whatever remote repository you use
● clone your GitHub project to Codenvy
● open appengine- [Link] file and edit application ID, if necessary, for
example <application>javagae112</application> ( enter the app ID you need to
update on
GAE)
● if you want to create a new version of the same app, you can change it as well, for
example <version>2</version>
<appengine- web- app
xmlns="[Link]
<application>java112</application>
<version>1</version>
● update application at Project > PaaS > Google App Engine.
Once the app is updated, you can change and update it anytime directly from Codenvy.
Since Codenvy uses Maven as a build manager, the projects you clone should also be built
with
Maven, i.e. contain [Link] file in the root project folder.
You may have a look at this short video demonstrating the procedure of importing an
existing
GAE app to Codenvy using GitHub.
Experiment No. 6
THEORY:
Introduction:
In this article we are going to see how to create a new database stored procedure using the
new Azure portal instead of using the SQL Server Management Studio.
Overview:
Stored procedures are created normally using the SQL Serve management studio, with the
latest
version of SQL Azure we have option to create a user stored procedure directly online
without
need to have a local interface. This way we have some control of using it anywhere anytime
to
do some updates regularly.
Let us see how to create the Stored procedure in Azure portal step by step.
Steps:
Log in to the Azure portal using the below link. You can see the screen look similar to below
http:/ / [Link]/ windowsazure/
Login to the portal using your Microsoft Windows Live credentials with Azure credentials to
the
management portal and you will see the screen as shown in the screen below
Now we can see the Database Menu at the bottom left, Click on that will go to the Database
Subscription window as shown in the screen below
Clicking on the subscription name will provide the complete details of the server created and the
new database created as shown in the screen below
Now we have a database created( LearnAzure) with a Max size of 1GB and ready to use it for
the application based on the requirement. To create a new Stored Procedure click on Manage at
the top menu tool bar as shown in the screen below
Check my previous article on how to connect to the manage portal using the credentials and the
firewall using the link. Once logged in you screen will look like below
To create a new stored procedure click on New Stored procedure menu at the top and we
will
see a script window as shown in the screen below
Now we will write our customized stored procedure for the EmpDetails table which we
created in
our earlier tutorial( Check my previous article for table creation) as shown in the screen
below
Once we create the structure for the stored procedure as shown in the above screen we
need
to save it. Once save we can use the stored procedure to execute the same as shown in the
screen below. We need to navigate to the new query window in the Database section and
write
a execute command as shown below.
We can create n Number of stored procedure as per the requirement and use it across the
process which we normally do with the traditional SQL Server locally.