Tip:
Highlight text to annotate it
X
Vishwa video tutorial
Go to DOS lab website at http://dos.iitm.ac.in
Access the Vishwa webpage
To get the latest Vishwa middleware, go to the "Downloads" section
Fill in your usage details
Make sure you fill in your full details
Click download after accepting the terms and conditions
Save the downloadVishwa.zip file
Unzip the downloaded file
It contains both Vishwa grid and zonal server jars
.
Open a terminal and check your java version
Since, we are using this machine as client, the java version in the grid nodes should be above 1.6.0_18 (openjdk)
In this tutorial, we will use 3 more nodes
1 zonal server and 2 grid nodes will be used
Login to the zonal server at IP: 10.6.9.50
Check the java version at the Zonal server
The version is 1.6.0_20 which is above the version at the client(correct)
Login to the 2 grid nodes at 10.6.9.51 and 10.6.9.52
Check the java versions in these machines also
The verions are above the version in the client machine(correct)
Otherwise you need to upgrade the java version in these machines
Copy ZonalServer.jar to the Zonal server at 10.6.9.50 using scp
Copy JVishwa.jar to the grid nodes at 10.6.9.51 and 10.6.9.52 using scp
Note the ZonalServer IP first
Start the zonal server at 10.6.9.50 (set initial parameters as 0,0)
Start the grid nodes at 10.6.9.51 and 10.6.9.52 with the zonal server IP as commandline argument
Now the Vishwa grid has started with the 2 grid nodes and 1 zonal server
But we don't have a job to submit to the grid yet! :)
For tutorial purpose, we will download and run one of the examples from the website
Go to the "Examples" page in the website
Download the Square generation example
It is "toy" grid job which computes the square of all the integers between 1 and 100
The job is spit into 10 sub-tasks(1-10, 11-20, 21-30 etc.)
Unzip square.zip
It contains the Vishwa job source files: PrimeClient.java and Prime.java
We will not go into the details of the file now. But will make it run quick :)
For details check the "Programming Vishwa" page in the website
Set the grid node IP to one of the grid nodes in SquareClient.java
Save the file after modification.
Compile the Vishwa job source files
Now we are ready to submit our Vishwa job
Start the Vishwa job using java command
The jobs are now executing on the two grid nodes
The jobs are now executing on the two grid nodes
The program finished execution after the results are obtained from the grid nodes
The computed results are available at "squareresult.txt"
We can stop the Vishwa grid now by terminating all the grid and zonal server processes
You can go to the "Programming Vishwa" page to have a step-by-step tutorial on writing Vishwa jobs.
Vishwa is designed to scale across thousands of nodes and handles failures seamlessly.
THANK YOU