1 / 12

COMP3019 Coursework Help

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

shayna
Download Presentation

COMP3019 Coursework Help

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. COMP3019 Coursework Help Steve Crouch s.crouch@software.ac.uk, stc@ecs School of Electronics and Computer Science

  2. 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

  3. 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

  4. 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!

  5. 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>

  6. 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!

  7. 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

  8. 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

  9. 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

  10. 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

  11. 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

  12. 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

More Related