Exercise 1 basic use1unpack the unicore client package if

Assignment Help Data Structure & Algorithms
Reference no: EM13346625

Exercise 1: Basic Use

1. Unpack the Unicore client package (if you haven't done already)

Copy the UCC preferences file from .../ucc-distribution-6.5.1/conf/preferences to ~/.ucc/preferences ("~/" refers to your home directory; see section 2.4 of the client manual for where to put it on Windows).

2. Edit that copy of the preferences file's keystore entry to specify the full location of the user-keystore.jks file instead of using the default relative path. (That is a pre-configured digital identity that the installed Unicore server already recognizes.)

3. Edit that copy of the preferences file's registry entry to specify the location of the Unicore service you will be using. This should be set to (one line):

https://eric.rcs.manchester.ac.uk:8000/DEMO-SITE/services/Registry?res=default_registry

4. In a terminal, put the ucc command on your PATH. On Unix, this is done with:

PATH=$PATH:.../ucc-distribution-6.5.1/bin

5. Issue this command, which you need to give once per session (i.e., after each time the virtual machine is booted up). ucc connect

6. Now you can discover information about the virtual machine configuration. Report the output of the two commands:
ucc list-sites
ucc list-applications

The first command describes what Unicore server installations are known about to the client; it should be a single long line with "DEMO-SITE" as the first part. The second command lists all the applications known to the site. Successfully executing the two commands indicates that you have a correctly configured installation.

Exercise: A simple Date job

This is the simplest possible job that produces meaningful output.

1.

Save this job definition to a JSON file called date.u:
{

ApplicationName: Date,

ApplicationVersion: 1.0,
}

2. Run this job definition with:

ucc run -b -o datejob date.u

3. Look in the datejob directory, which will be created with a number of files. The file with a .properties extension is an XML description of the job . The output of the job will be in the file stdout.

Exercise 3: A raytracing job

This exercise uses a raytracer program (POV-Ray) to render a simple picture. Raytracing is a technique that can produce images of extremely high quality, and works by simulating the physics of light. The objects in the scene are described mathematically. The scene used here is especially simple in order to keep rendering times short.

1. Save this job definition to a JSON file called povray.u:
{
#
# application name as defined in server IDB
#
ApplicationName: POVRay,

#
# environment settings used to pass parameters
#
Environment: [
"OUTPUT_FORMAT=PNG",
"SOURCE=input.pov",
"TARGET=output.png",
"WIDTH=320",
"HEIGHT=200",
],

#
# Import local files; note rename
#
Imports: [{

From: "sphere.pov",
To: "input.pov"
}],

#
# Export result file
#
Exports: [{
From: "output.png",
To: "sphere.png"
}],
}

 

Exercise 4: A graph-plotting job

This exercise uses a graph-plotting program (gnuplot) to convert tabular data into an image. This is a technique that is very widely used to visualize scientific data; with appropriate instructions, gnuplot can produce significantly more complex graphs than almost all of its competitors.

Note that povray and gnuplot have quite substantially different ways of being controlled. The povray executable (from the previous example) has a complex command line interface that has been configured into the Unicore server. By comparison, gnuplot is extremely simple (so much so that it doesn't need explicit support at the server level) but it has to have the name of associated files placed in its control file: this increased coupling tends to make code more fragile.

1. Save this job definition to a JSON file called gnuplot.u:

{
Executable: "/bin/sh",
Arguments: ["control.sh"],
Imports: [
{From: "control.sh", To: "control.sh"},
{From: "data.csv", To: "data.csv"},
],
Exports: [
{From: "output.png", To: "plot.png"}
],
}

2. Save this control description in a file called control.sh (this is a shell script that runs gnuplot from within itself):

gnuplot << EOF
set term png
set output "output.png"
set datafile separator ","
plot "data.csv" using 1:2 with lines
EOF

3. Save this data in a file called data.csv (the CSV format can be produced by many tools, including most spreadsheets).

0.0,0.0
1.0,0.0
1.0,1.0
1.1,1.0
0.5,1.6
-0.1,1.0
0.0,1.0
0.0,0.0

4. Run this job definition with:
ucc run -b -o gnuplotjob gnuplot.u

Reference no: EM13346625

Questions Cloud

Complete the recursive method matchstring x string y in the : complete the recursive method matchstring x string y in the code below which will determine whether or not two strings
1 let tn be the nth chebyshev polynomialtnx cosn cos-1x : 1. let tn be the nth chebyshev polynomialtnx cosn cos-1x xisin2 -1 1 n 0 1......show that the polynomials dened
The article study for the demand supply and the market : the article study for the demand supply and the market equilibriumdemand supply and market equilibriumthe economic
Sampling variability and standard errorproblem 1people in a : sampling variability and standard errorproblem 1people in a large population average 60 inches tall.nbsp you will take
Exercise 1 basic use1unpack the unicore client package if : exercise 1 basic use1.unpack the unicore client package if you havent done alreadycopy the ucc preferences file from
Submit the table creation statements for the database model : submit the table creation statements for the database model. submit them all in a single script file.also submit a
1 differentiate between disaster recovery and business : 1. differentiate between disaster recovery and business continuity. in your answer provide examples of the processes
Corporate governance a board of directorsbest buys board is : corporate governance a. board of directorsbest buys board is elected by the shareholders to oversee the business and
The class is international relation1-what are the essential : the class is international relation.1-what are the essential elements of revolutions? please use some real world

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd