Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.49 KB | None | 0 0
  1. ===================== SOURCE =============================
  2. // config
  3. System.setProperty("saga.location", this.sagaLocation);
  4. System.setProperty("JobService.adaptor.name", "xosaga");
  5. System.setProperty("java.endorsed.dirs", this.sagaLocation + "/lib/adaptors/GridsamAdaptor/endorsed:" +
  6. this.sagaLocation + "/lib/endorsed");
  7. String server = "any://192.168.56.3";
  8.  
  9. logger.debug("createURL: server == " + server);
  10. URL serverURL = URLFactory.createURL(server);
  11. logger.debug("createSession");
  12. Session session = SessionFactory.createSession(true);
  13.  
  14. logger.debug("createJobService");
  15. JobService js = JobFactory.createJobService(serverURL);
  16.  
  17. logger.debug("Create a job: /bin/hostname executed on 1 nodes");
  18. JobDescription jd = JobFactory.createJobDescription();
  19. jd.setAttribute(JobDescription.EXECUTABLE, "/bin/hostname");
  20. // jd.setAttribute(JobDescription.NUMBEROFPROCESSES, "1"); //10
  21. jd.setAttribute(JobDescription.OUTPUT, "alage-xosaga-test.out");
  22. jd.setAttribute(JobDescription.ERROR, "alage-xosaga-test.err");
  23.  
  24. logger.debug("Create the job, run it, and wait for it");
  25. Job job = js.createJob(jd);
  26. job.addCallback(Job.JOB_STATE, null );
  27. job.addCallback(Job.JOB_STATEDETAIL, null );
  28. job.run();
  29. job.waitFor();
  30. //// logger.debug("after waitFor");
  31. //// System.exit(0);
  32.  
  33. } catch (Throwable e) {
  34. logger.debug("Got exception: ", e);
  35. e.printStackTrace();
  36. e.getCause().printStackTrace();
  37. }
  38.  
  39. ===================== OUTPUT =============================
  40. (...)
  41. Oct 29, 2010 2:39:44 PM org.ogf.saga.engine.AdaptorInvocationHandler <init>
  42. INFO: initAdaptor: instantiated JobServiceAdaptor for type JobService
  43. [WARN ] |Oct 29 14:39:44| [AnonymousIoService-6] mina.NetHandlerMINA - The peer xosd reports a different IP from its actual one. Reported: Address = [://192.168.56.3:60000(192.168.56.3)], actual: /131.254.15.98:41950
  44. [INFO ] |Oct 29 14:39:44| [main] xati.XATI - Restarting XATI.
  45. [ERROR] |Oct 29 14:39:44| [main] security.ServiceTrustStore - Truststore seems to be empty or non-existing: /etc/xos/truststore/certs/dixi_ssl
  46. [INFO ] |Oct 29 14:39:44| [main] xati.XATIBus - Guessing local address. If this is not coming out right, try setting the name of the preferred network adapter to networkInterface option of xosd config.
  47. [INFO ] |Oct 29 14:39:44| [main] xati.XATIBus - Using 131.254.15.98 as the local address.
  48. [INFO ] |Oct 29 14:39:44| [main] xati.XATIBus - Connecting to xosd at Address = [://192.168.56.3:60000]
  49. [INFO ] |Oct 29 14:39:44| [main] xati.XATI - Restarting XATI.
  50. [ERROR] |Oct 29 14:39:44| [main] security.ServiceTrustStore - Truststore seems to be empty or non-existing: /etc/xos/truststore/certs/dixi_ssl
  51. [INFO ] |Oct 29 14:39:44| [main] xati.XATIBus - Guessing local address. If this is not coming out right, try setting the name of the preferred network adapter to networkInterface option of xosd config.
  52. [INFO ] |Oct 29 14:39:44| [main] xati.XATIBus - Using 131.254.15.98 as the local address.
  53. [INFO ] |Oct 29 14:39:44| [main] xati.XATIBus - Connecting to xosd at Address = [://192.168.56.3:60000]
  54. Oct 29, 2010 2:39:44 PM org.ogf.saga.engine.AdaptorInvocationHandler <init>
  55. INFO: initAdaptor: instantiated JobServiceAdaptor for type JobService
  56. (...)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement