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 
December 13, 2019, 04:34:18 AM *
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: the first taste problem  (Read 4490 times)

ygzx_114

  • Guest
the first taste problem
« on: December 06, 2011, 11:07:29 AM »

when I follow the user-guier and try the first taste of JPPF.
I didn't change anything of the demo. But at the step 3,the result is not the same as the document.
Step 1: start a server   
   the result is:
   run:
[echo] starting the JPPF driver
[java] Class Server initialized - listening on port 11111
[java] Client Server initialized - listening on port 11112
[java] Tasks Server initialized - listening on port 11113
[java] JPPF Driver management initialized
[java] JPPF Driver initialization complete

Step 2: start a node
run:
     [java] node process id: 7824
     [java] Attempting connection to the class server at localhost:11111
     [java] Reconnected to the class server
     [java] JPPF Node management initialized
     [java] Attempting connection to the node server at localhost:11113
     [java] Reconnected to the node server
     [java] Node sucessfully initialized

Step 3: run the application
clean:
   [delete] Deleting directory D:\JPPF\JPPF-Tutorial\JPPF-2.5.4-application-temp
late\classes

init:
    [mkdir] Created dir: D:\JPPF\JPPF-Tutorial\JPPF-2.5.4-application-template\c
lasses

compile:
    [javac] D:\JPPF\JPPF-Tutorial\JPPF-2.5.4-application-template\build.xml:66:
warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last;
 set to false for repeatable builds
    [javac] Compiling 2 source files to D:\JPPF\JPPF-Tutorial\JPPF-2.5.4-applica
tion-template\classes

build:

run:


there is nothing after "run:", I did this at the same PC(windows xp), and the result is
not the same as the documents. :'(
Logged

bfurner

  • JPPF Padawan
  • *
  • Posts: 5
Re: the first taste problem
« Reply #1 on: December 29, 2011, 12:05:49 AM »

I am experiencing exactly the same problem.  Did you discover any workaround or fix for this?

Thanks,

Brian
Logged

ygzx_114

  • Guest
Re: the first taste problem
« Reply #2 on: December 29, 2011, 02:12:02 AM »

Hello Brian
at step2 , you should run "startNode.bat", then run the application at step3.
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2258
    • JPPF Web site
Re: the first taste problem
« Reply #3 on: December 29, 2011, 09:58:55 AM »

Hi Brian, DoubleT,

Could you let us know which version of Ant you are using in your environment? It looks like yours is much more recent than mine :)

Thanks,
-Laurent
Logged

bfurner

  • JPPF Padawan
  • *
  • Posts: 5
Re: the first taste problem
« Reply #4 on: December 29, 2011, 05:31:20 PM »

Hello Brian
at step2 , you should run "startNode.bat", then run the application at step3.

Thanks for posting.  Since I am running CentOS I ran `sh startNode.sh` at step 2 rather than startNode.bat.  When I then proceeded to step 3, the result was the same, compilation warning about 'includeantruntime' and the process hanging at 'run:'.
 
Logged

bfurner

  • JPPF Padawan
  • *
  • Posts: 5
Re: the first taste problem
« Reply #5 on: December 29, 2011, 05:32:59 PM »

Hi Brian, DoubleT,

Could you let us know which version of Ant you are using in your environment? It looks like yours is much more recent than mine :)

Thanks,
-Laurent

Laurent,

I am using Ant version 1.8.2

Thanks,

Brian
Logged

bfurner

  • JPPF Padawan
  • *
  • Posts: 5
Re: the first taste problem
« Reply #6 on: December 29, 2011, 08:43:57 PM »

Through the use of copious System.out.println's I have located the point within the code where execution halts for me.

It is in the method TemplateApplicationRunner.executeBlockingJob() at the following line:

     List<JPPFTask> results = jppfClient.submit(job);

Apparently execution is blocked and i would assume nothing is ever returned and so execution never resumes.

Any idea why this might be happening?  I have verified that both Driver and Node are running and I am able to connect to those ports manually.

Thanks,

Brian
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2258
    • JPPF Web site
Re: the first taste problem
« Reply #7 on: December 30, 2011, 08:58:56 AM »

Hi Brian,

Thanks for this information.
I also tried with Ant 1.8.2, and it's still working for me.
It looks like the JPPF client is unable to connect to the server. Can you confirm that you are not seeing the connection messages similar to these:

Code: [Select]
  [java] [client: driver-1 (<ip_address>:11198)] ClassServerDelegate.init(): Attempting connection to the class server
  [java] [client: driver-1 (<ip_address>:11198)] ClassServerDelegate.init(): Reconnected to the class server
  [java] [client: driver-1 (<ip_address>:11198)] : Attempting connection to the JPPF task server
  [java] [client: driver-1 (<ip_address>:11198)] : Reconnected to the JPPF task server

In the default configuration, the client uses automatic discovery of the server via UDP multicast.
Could you try and disable this behavior by adding the following line in the file JPPF-2.x.y-application-template/config/jppf.properties:
Code: [Select]
jppf.discovery.enabled = false
Does this change anything?

Thanks,
-Laurent
Logged

bfurner

  • JPPF Padawan
  • *
  • Posts: 5
Re: the first taste problem
« Reply #8 on: January 03, 2012, 05:24:35 PM »

Laurent --

Prior to getting your message, I installed JPPF from the Java Web Start installer and everything works as it should now.  Previously I had installed from the zipped binaries and this was giving me the behavior I described.

I could try to install again from the zipped binaries if you'd like.

Thanks,

Brian
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2258
    • JPPF Web site
Re: the first taste problem
« Reply #9 on: January 09, 2012, 07:42:44 AM »

Hi Brian,

Thanks for the information. I'm happy to read that one way at least is working for you.
On my side, I am still trying to reproduce what you observed, but to no effect. Everything is working fine on my Ubuntu machine, no matter what combination of shell vs. Ant script I use.
I  believe I have a CentOS virtual box image somewhere, I will give it a try as well.

Sincerely,
-Laurent
Logged

UomoFurioso

  • JPPF Padawan
  • *
  • Posts: 6
Re: the first taste problem
« Reply #10 on: June 06, 2012, 04:49:30 PM »

Hello,

I'm new on this forum and I know this post is a bit old, but it describes exactly the problem I was having going through the tutorial. I'm trying to understand if I can use JPPF for a project and having a problem on first steps was slowing me a bit  :)

The problem is that with default configuration the client wasn't able to establish a connection (I was getting a "null" from JPPFClient checking methods) and changes in client configuration seemed to have no effect at all until I set the key

Code: [Select]
jppf.discovery.enabled = false
as per suggestion, getting a

Code: [Select]
[java] [client: driver1] Attempting connection to the class server at localhost:11112
message, but still unable to get past this point.

From this it was easy to find that the base client template configuration was pointing to the wrong port:

Code: [Select]
driver1.jppf.server.port = 11112
I set this to 11111 and all worked fine as described in the user guide tutorial.

I hope this can be useful.

Thanks,
UF

P.S.: I used the .zip download
« Last Edit: June 06, 2012, 05:27:03 PM by UomoFurioso »
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2258
    • JPPF Web site
Re: the first taste problem
« Reply #11 on: June 07, 2012, 06:45:09 AM »

Hello,

Thank you very much for reporting this. We will make the appropriate corrections for the next version v3.1, due very soon.

Sincerely,
-Laurent
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