Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Semester II
Cloud and
Ubiquitous
Computing
Name
Implement Windows / Linux Cluster
Implement VMWAre ESXi Server.
Developing application for Windows Azure.
Implementing VMs on Xen Server.
Implement Hadoop
Implementing IaaS with Eucalyptus.
4. Enter the names of all the servers that will be part of the cluster. Note:
More that none node can be specified at a time using comma separation.
Example: MyServer1, MyServer2, MyServer3
5. If the nodes specified have not been validated, the following page in
the wizard will be shown. Its highly recommended to validate the
configuration before you create the cluster. This will help ensure that the
servers are connected and configured correctly and that it can be
supported by Microsoft:
is created:
The following command is an example that would put the cluster account
put into an existing Active Directory OU called Clusters that is in the
Contoso.local domain.
Youll now install Java, Python, and MSFT C++ run time. Windows Server 2012 already has
the up to date .NET runtime, so you can skip that step.
Lets download the C++ run time, and install that by double clicking the downloaded MSI.
Download Python 2.7.x, and double click the downloaded MSI to install the package.
Once youve installed, youll need to ensure HDP can find Python by updating the PATH
System Environment variable.
Go to Computer > Properties > Advanced System Settings > Environment variables.
Then append the install path to Python, for example C:\Python27, to this path after a ;:
Verify your path is setup by entering a new Powershell or Command Prompt and typing:
python, which should run the python interpreter. Type quit() to exit.
Setup Java, which you can get here. You will also need to setup JAVA_HOME, which
Hadoop requires. Make sure to install Java to somewhere without a space in the path
Program Files will not work!
To setup JAVA_HOME, in Explorer > right click Computer > Properties > Advanced
System Settings > Environment variables. Then setup a new System variable called
JAVA_HOME that points to your Java install (in this case, C:\java\jdk1.6.0_31).
Now we have all the pre-requisites installed. The next step is to install the HDP 2.0 for
Windows package.
Extract the MSI from the zip package you downloaded earlier. Open a Powershell prompt in
Administrator (Run as Administrator) mode, and execute the MSI through this command:
> msiexec /i "hdp-2.0.6.0.winpkg.msi"
The HDP Setup window appears pre-populated with the host name of the server, as well as
default installation parameters. Now, complete the form with your parameters:
Set the Hadoop User Password. This enables you to log in as the
administrative user and perform administrative actions. This must match
your local Windows Server password requirements. We recommend a
strong pasword. Note the password you set well use this later.
Check Delete Existing HDP Data. This ensures that HDFS will be
formatted and ready to use after you install.
Set the Hive and Oozie database credentials. Set hive for all Hive
Metastore entries, and oozie for all Oozie Metastore entries.
When you have finished setting the installation parameters, click Install to install HDP.
The HDP Setup window will close, and a progress indicator will be displayed while the
installer is running. The installation will take a few minutes disregard the progress bar
expected time display.
The MSI installer window will display an info prompt when the installation is finished and
successful.
Once the install is successful, you will start the HDP services on the single node.
Open a command prompt, and navigate to the HDP install directory. By default, the location
is C:\hdp, unless you set a different location:
> cd C:\hdp
> start_local_hdp_services
Validate the install by running the full suite of smoke tests. Its easiest to run the smoke tests
as the HDP super user: hadoop.
In a command prompt, switch to using the hadoop user:
> runas /user:hadoop cmd
When prompted, enter the password you had set up during install.
Run the provided smoke tests as the hadoop user to verify that the HDP 2.0 services work as
expected:
> cd C:\hdp
> Run-SmokeTests hadoop
This will fire up a Mapreduce job on your freshly set up cluster. If it fails the first time, try
running it again with the same command Run-SmokeTests hadoop.
domain. You can share your application with the world, or limit access to members of your
organization.
Google App Engine supports apps written in several programming languages. With App
Engine's Java runtime environment, you can build your app using standard Java technologies
including the JVM, Java servlets, and the Java programming languageor any other
language using a JVM-based interpreter or compiler, such as JavaScript or Ruby. App Engine
also features a dedicated Python runtime environment, which includes a fast Python
interpreter and the Python standard library. The Java and Python runtime environments are
built to ensure that your application runs quickly, securely, and without interference with
other apps on the system.
With App Engine, you only pay for what you use. There are no set-up costs and no recurring
fees. The resources your application uses, such as storage and bandwidth, are measured in
gigabyte, and billed at competitive rates. You control the maximum amount of resources your
app can consume, so it always stays within your budget.
App Engine costs nothing to get started. All applications can use up to 500 MB of storage and
enough CPU and bandwidth to support an efficient app serving around 5 million page views a
month, absolutely free. When you enable billing for your application, your free limits are
raised and you only pay for resources you use above the free levels.
Requirements:
b. Click Next to review the list of items to be installed, click Next again to read and
accept the license agreements, then click Finish. Eclipse will then install any
external dependencies, and add the chosen components to the Eclipse installation.
c. When asked, restart Eclipse.
The plugin should now be installed!
Simple Hello World Application:
1. Select the File menu > New > Web Application Project (If you do not see
this menu option, select the Window menu > Reset Perspective..., click
OK, then try the File menu again.) Alternatively, click the New Web
Application Project button on the toolbar.
Click 'Next'
For this tutorial, you should probably elect to use the free appspot.com domain name, and so
the full URL for the application will be http://your_app_id.appspot.com/. You can also
purchase a top-level domain name for your app, or use one that you have already registered.
For Authentication Options (Advanced), the default option, "Open to all Google Accounts
users", is the simplest choice for this tutorial. If you choose "Restricted to the following
Google Apps domain", then your domain administrator must add your new app as a service
on that domain. If you choose the Google Apps domain authentication option, then failure to
add your app to your Google Apps domain will result in an HTTP 500 where the stack trace
shows the error "Unexpected exception from servlet: java.lang.IllegalArgumentException:
The requested URL was not allowed: /guestbook.jsp". If you see this error, add the app to
your domain. See Configuring Google Apps to Authenticate on Appspot for instructions.
If you have an App Engine Premier account, you can specify that your new application
should reside in the European Union rather than the United States. This is especially useful if
your application's users are closer to Europe than to the United States. There is less network
latency and the End User Content will be stored at rest in the European Union. You must
specify this location when you register the application; you cannot change it later. Click the
Edit link in the Location Options section; select a location option, either United States or
European Union.
You can upload your application code and files from within Eclipse using the Google Plugin.
To upload your application from Eclipse, click on the Google button
toolbar, then select "Deploy to App Engine."
in the Eclipse
If prompted, follow the instructions to provide the Application ID from the App Engine
console that you would like to use for this app, your Google account username (your email
address), and your password. Then click the Deploy button. Eclipse will then automatically
upload the contents of the war/ directory.
Uploading Using the Command Prompt
You can upload your application code and files using a command included in the SDK named
appcfg.cmd (Windows) or appcfg.sh (Mac OS X, Linux).
AppCfg is a multi-purpose tool for interacting with your app on App Engine. The command
takes the name of an action, the path to your app's war/ directory, and other options. To
upload the app code and files to App Engine, you use the update action.
After your application is uploaded, its Datastore Indexes will be automatically generated.
This operation may take some time, and any visitors to your site will receive a
DatastoreNeedIndexException until the indexes have been built. You can monitor the
progress of the operation by visiting the App Engine console, selecting your application, and
then selecting the Datastore Indexes link.
Accessing Your Application
You can now see your application running on App Engine. If you set up a free appspot.com
domain name, the URL for your website begins with your application ID:
http://your_app_id.appspot.com/