Difference between revisions of "CSC352 Homework 5 2013"
(Created page with "--~~~~ ---- <bluebox>This assignment is due on 11/14 at 11:59 p.m.</bluebox> =Assignment= Run an MPI program on Amazon AWS that identifies some number ''I'' of images. Act...") |
(→Misc. Information) |
||
Line 11: | Line 11: | ||
=Misc. Information= | =Misc. Information= | ||
− | In case you wanted to have the MPI program store the image geometry in | + | In case you wanted to have the MPI program store the image geometry in your database, you'd have to follow the process described in [[Tutorial:_C_%2B_MySQL_%2B_MPI#Verify_that_the_MySQL_API_works| this tutorial]]. However, if you were to create the program '''mysqlTest.c''' on your AWS cluster, you'd find that the command '''mysql_config''' is not installed on the default AMI used by starcluster to create the MPI cluster. |
To install the '''mysql_config''' utility, run the following commands on the master node of your cluster as root: | To install the '''mysql_config''' utility, run the following commands on the master node of your cluster as root: |
Revision as of 20:07, 4 November 2013
--D. Thiebaut (talk) 20:06, 4 November 2013 (EST)
Assignment
Run an MPI program on Amazon AWS that identifies some number I of images. Actually entering the image geometry in a database will be skipped for this assignment.
Misc. Information
In case you wanted to have the MPI program store the image geometry in your database, you'd have to follow the process described in this tutorial. However, if you were to create the program mysqlTest.c on your AWS cluster, you'd find that the command mysql_config is not installed on the default AMI used by starcluster to create the MPI cluster.
To install the mysql_config utility, run the following commands on the master node of your cluster as root:
apt-get update apt-get build-dep python-mysqldb
Edit the constants in mysqlTest.c that define the address of the database server (hadoop0), as well as the credentials of your account on the mysql server.
You can then compile and run program:
gcc -o mysqlTest $(mysql_config --cflags) mysqlTest.c $(mysql_config --libs) ./mysqlTest MySQL Tables in mysql database: images images2 pics1