Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 764489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T16:44:06+00:00 2026-05-14T16:44:06+00:00

Does anybody know a Java implementation of the DRMAA-API that is known to work

  • 0

Does anybody know a Java implementation of the DRMAA-API that is known to work with PBS/Torque cluster software?

The background behind this: I would like to submit jobs to a newly set-up linux cluster from Java using a DRMAA compliant API. The cluster is managed by PBS/Torque. Torque includes PBS DRMAA 1.0 library for Torque/PBS that contains a DRMA-C binding and provides in libdrmaa.so and .a binaries. I know that Sun grid engine includes a drmaa.jar providing a Java-DRMAA API. In fact I opted to use SGE but it was decided to try PBS first.

The theory behind that decision was:
‘DRMAA is a standard and therefore a Java API needs only a standards compliant drmaa-c binding.’ However, I couldn’t find such ‘general DRMAA-C-java API’ and now assume that this assumption is wrong and that the Java libraries are engine specific.

Edit:
I just experimented with the drmaa.jar from sun grid engine package and tried to cross-use it with the pbs libdrmaa.so. Not surprisingly, that failed (JNI unsatisfied link error).

Conclusion: It does not work that way! After some search I see only these few options:

  1. Install GridWay ontop of Globus
    toolkit. Installed ontop of PBS,
    GridWay claims to provide DRMAA in
    Java. Looks far too complex for my
    setting.
  2. Scrap DRMAA, submit to PBS by
    calling system command qsub, qstat,
    etc. from Java. Simple but not so
    nice.
  3. Implement a drmaa binding myself.
    Way too complex…

  4. Switch to Grid Engine. GE in my
    opinion is superior over PBS
    with respect to language bindings.

I tend to prefer option 2. or 4. Any recommendations?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T16:44:07+00:00Added an answer on May 14, 2026 at 4:44 pm

    After some more searching it looks like I have to write something myself. There seems to be not optimal answer yet, but it can serve as a warning for those attempting the same.

    The best place to ask these questions is possibly the Torque mailing list: http://www.clusterresources.com/resources/mailing-lists.php

    First of all, the reason why you cannot just use any DRMAA-Java library and use it with any DRMAA-C implementation is:
    DRMAA describes the interface of the resource control, not how it is implemented. The vendor could use a DRMAA-C implementation and use only these functions, but they do not have to. It can use whatever is there in the engine. So one important message is: if you need certain language bindings, make sure they are there for all languages required.

    Regarding the options mentioned:

    1. Using GridWay/Globus Toolkit: http://www.gridway.org/doku.php?id=start
      Advantage: Gridway is a meta scheduler that supports many resource management systems (SGE, PBS,…). Possibly, the only way to get a DRMAA interface to work with PBS at the moment.
      Disadvantage: It seems like an inflation of layers and complexity. Have no experience with that.

    2. Using system commands, qsub, qstat, qdel.
      Advantage: quick hack
      Disadvantages: dirty hack, need to implement parsers for the output, might not notice if something goes wrong, pass around messages from stdin/stdout/stderr, not portable

    3. Using JNI it should be possible to create a binding for each c-function in drmaa.c
      Advantage: would provide a full drmaa implementation (hopefully)
      Disadvanteges: involves compiled code, lot of manual wrapping of C-functions (maybe this can be automated)

    4. Switch to another grid engine. Possibly, we should have done this analysis before. However, we already have one other Torque cluster, and there is experience with this. Operating two would create more heterogeneous infrastructure.

    5. Changing an existing drmaa library from a different vendor. No idea if that is feasible… We will look into that too.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 396k
  • Answers 396k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer >>> a = [1,2,3] >>> a[:0] = [4] >>> a… May 15, 2026 at 3:03 am
  • Editorial Team
    Editorial Team added an answer It's not sorting because you have specified the keys that… May 15, 2026 at 3:03 am
  • Editorial Team
    Editorial Team added an answer Normally, LaTeX accepts figure file formats different from PDFLaTeX. That… May 15, 2026 at 3:03 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.