120 likes | 266 Views
COMP3019 Coursework Help. Steve Crouch s.crouch@software.ac.uk , stc@ecs School of Electronics and Computer Science. Need Help?. Coursework resources: http://www.ecs.soton.ac.uk/~stc/COMP3019 Some help pointers on page Email: s.crouch@software.ac.uk
E N D
COMP3019 Coursework Help Steve Crouch s.crouch@software.ac.uk, stc@ecs School of Electronics and Computer Science
Need Help? • Coursework resources: • http://www.ecs.soton.ac.uk/~stc/COMP3019 • Some help pointers on page • Email: s.crouch@software.ac.uk • Due handin date: 27th March 2014 at 4pm
General • Look out when using VPNs… • Often a problem when GridSAM connects to a local FTP server (e.g. GridSAM FTP server) • If having connecting problems, check & add temporary firewall exception rules for GridSAM/FTP ports
Part 1 – M-grid • Coursework page mentions we can load text file into applet by packaging it within jar – should we: • Pass single character in as parameter? Or • Pass both character and text file as parameters? • The second one… • Applet should have two arguments – can pass in character and text file name, or contents of text file – first is neater!
Part II – GridSAM and MapReduce • Running the remotecat-staging.jsdl example / 2(a)Could not connect to FTP server on "gridsam.lesc.doc.ic.ac.uk <http://gridsam.lesc.doc.ic.ac.uk>". • Change <URI></URI> elements to reflect where your own ftp instance is located • e.g. <URI>ftp://anonymous:anonymous@localhost:55521/concat.sh</URI>
Part II – GridSAM and MapReduce • Running the remotecat-staging.jsdl example / 2(a)java.net.MalformedURLException • Copying and pasting from example in slides won’t work, e.g. • …the ./gridsam.sh command to run example • …or just copying the GridSAM URL • Problem is the quotes around “https://localhost:8080/gridsam/services/gridsam?wsdl” • Type in manually!
Part II – GridSAM and MapReduce Should have the following in the gridsam-2.3.0-client directory after unpacking it: COMP3019-materials.tgz GridSAMClient.class GridSAMExample.class GridSAMExample.java GridSAMExampleCompile GridSAMExampleCompile.bat GridSAMExampleRun GridSAMExampleRun.bat LICENCE.txt MyProxyClient.class SetupGridSAM.class conf demos endorsed examples gridsam.sh lib myproxy.sh • 2(a)$ ./GridSAMExampleCompileCompiling the GridSAM client example... javac: file not found: GridSAMExample.java • Ensure you’ve unpacked the contents of COMP3019-materials.tgz into the omii-2.3.0-client directory… and not into a subdirectory of that directory • e.g. download COMP3019-materials.tgz • $ cd gridsam-2.3.0-client $ tar -xzf COMP3019-materials.tgz
Part II – GridSAM and MapReduce • 2(a) Running under Eclipse IDE (probably more hassle, up to you): • Exception in thread "main" org.icenigrid.gridsam.core.SubmissionException: failed to submit job: WSDoAllReceiver: Request does not contain required Security header • Need to include the gridsam-2.3.0-client/conf directory on classpath • Look at the GridSAMExampleRun script
Part II – GridSAM and MapReduce • 2(a) Exception in thread "main" org.icenigrid.gridsam.core.SubmissionException: failed to submit job: java.net.MalformedURLException: For input string: "port“ • Need to modify the GridSAMExampleRun script to point to the GridSAM service and your client FTP server • Essentially change the ftp.server and gridsam.server properties
Part II – GridSAM and MapReduce • 2(a) With GridSAM FTP server: • Exception in thread "main" java.lang.NoClassDefFoundError: Systems Caused by: java.lang.ClassNotFoundException: Systems at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Could not find the main class: Systems. Program will exit. • Install GridSAM to location without spaces in path & filename to avoid this
Part II – GridSAM and MapReduce • 2(a) With file staging, make sure you use username/password in ftp sources and targets e.g. ftp://anonymous:anonymous@localhost:55521/concat.sh. Otherwise you may see (after launching job): • mymachine:~/gridsam$ ./gridsam.shGridSAMStatus -sn me -j urn:gridsam:ff8081812fd3c742012fd3cb098f0001Job Progress 'urn:gridsam:ff8081812fd3c742012fd3cb098f0001': pending -> staging-in -> failed--- pending - 2011-05-09 09:06:29.547 --- job is being scheduled --- staging-in - 2011-05-09 09:06:30.603 --- staging files with private working directory... --- failed - 2011-05-09 09:08:31.092 --- FileJob failed after retry : 11 times : ftp://localhost:55521/concat.sh
Part II – GridSAM and MapReduce • 2(b) Pseudocode section doesn't mention a function for getting the job ID of a particular job • You are free to make assumptions on how the primitives work