JPPF, java, parallel computing, distributed computing, grid computing, parallel, distributed, cluster, grid, cloud, open source, android, .net
JPPF

The open source
grid computing
solution

 Home   About   Features   Download   Documentation   On Github   Forums 
August 11, 2020, 08:36:57 PM *
Welcome,
Please login or register.

Login with username, password and session length
Advanced search  
News: New users, please read this message. Thank you!
  Home Help Search Login Register  
Pages: [1]   Go Down

Author Topic: Distribute JAR locally  (Read 4982 times)

Yu.Gao

  • Guest
Distribute JAR locally
« on: July 21, 2009, 01:25:52 AM »

Dear Laurent,

I heard that it's possible for JPPF to load dependent JAR files from each nodes locally instead of transferring them from server every time.  Can you elaborate the details or any requirement for this to happen?  I'm with for JJ to minimize the lead time caused by transferring JAR files.

Please feel free to contact me at yu.gao [at] zsassociates.com

Thanks in advance for your help.

Best Regards,
-Yu

Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2262
    • JPPF Web site
Re: Distribute JAR locally
« Reply #1 on: July 21, 2009, 07:09:31 AM »

Hello Yu,

There is no specific requirement to add jars to the nodes. You just add them to the node's classpath.
Are you seeing any error in that configuration?

Sincerely,
-Laurent
Logged

Yu.Gao

  • Guest
Re: Distribute JAR locally
« Reply #2 on: July 21, 2009, 07:06:44 PM »

Hi Laurent,

Thanks for your quick reply.

Can you elaborate a little bit on the class path of the node?  Is it the folder "jppf-1.9-node\lib" you're talking about?  Should I copy all dependent JAR files into this folder?  If so, is it necessary to keep the original folder structure (ex: org\apache\mavern etc)?

Thanks again for your help~

Best,
-Yu
Logged

Yu.Gao

  • Guest
Re: Distribute JAR locally
« Reply #3 on: July 21, 2009, 09:12:34 PM »

Hi Laurent,

After copying all the dependent JAR files into jppf-1.9-node\lib (without original folder structure), I had the following error message when launching the node:


C:\grid\jppf-1.9-node>ant run.node
Buildfile: build.xml

run.node:
     [java] JPPFClassLoader.init(): attempting connection to the class server
     [java] java.lang.RuntimeException: java.io.EOFException
     [java]     at org.jppf.node.JPPFClassLoader.init(JPPFClassLoader.java:151)
     [java]     at org.jppf.node.JPPFClassLoader.<init>(JPPFClassLoader.java:89)

     [java]     at org.jppf.node.NodeLauncher$2.run(NodeLauncher.java:162)
     [java]     at org.jppf.node.NodeLauncher$2.run(NodeLauncher.java:1)
     [java]     at java.security.AccessController.doPrivileged(Native Method)
     [java]     at org.jppf.node.NodeLauncher.getJPPFClassLoader(NodeLauncher.ja
va:158)
     [java]     at org.jppf.node.NodeLauncher.createNode(NodeLauncher.java:117)
     [java]     at org.jppf.node.NodeLauncher.main(NodeLauncher.java:79)
     [java] Caused by: java.io.EOFException
     [java]     at java.io.DataInputStream.readInt(DataInputStream.java:375)
     [java]     at org.jppf.comm.socket.AbstractSocketWrapper.receiveBytes(Abstr
actSocketWrapper.java:153)
     [java]     at org.jppf.comm.socket.BootstrapSocketClient.receive(BootstrapS
ocketClient.java:109)
     [java]     at org.jppf.comm.socket.AbstractSocketWrapper.receive(AbstractSo
cketWrapper.java:135)
     [java]     at org.jppf.node.JPPFClassLoader.init(JPPFClassLoader.java:142)
     [java]     ... 7 more

BUILD SUCCESSFUL
Total time: 1 second


Any suggestion/thoughts?

Thanks in advance ~!

Best,
-Yu
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2262
    • JPPF Web site
Re: Distribute JAR locally
« Reply #4 on: July 22, 2009, 06:21:51 AM »

Hello Yu,

From the stack trace, this exception is occurring at node startup.

I will need additional information to investigate this.
What can you see in the node's log file (JPPF-1.9-node/jppf-node.log)?
And in the driver's log file?
Could you post any relevant stack trace that you see in these log files?

Did this error start to happen as soon as you added jar files in the /lib folder?
If it is the case, can you try to narrow it down to as few jars as possible (ideally down to 1), and let me know which jar seems to trigger this problem?

Thanks for your time,
-Laurent
Logged

Yu.Gao

  • Guest
Re: Distribute JAR locally
« Reply #5 on: July 23, 2009, 12:04:00 AM »

Hi Laurent,

The local JAR distribution seems working for me now, and the improvement is tremendous -- model run-time is cut down by 75%~!

Thanks a lot for your help and guidance!

Best Regards,
-Yu
Logged
Pages: [1]   Go Up
 
JPPF Powered by SMF 2.0 RC5 | SMF © 2006–2011, Simple Machines LLC Get JPPF at SourceForge.net. Fast, secure and Free Open Source software downloads