[GE users] Java DRMAA : org.ggf.drmaa.DeniedByDrmException: Unknown option ?

umanga aumanga at biggjapan.com
Thu Nov 12 08:38:52 GMT 2009


Greetings all,

I use Java DRMAA to submit jobs .My code is as follows ,which worked 
well in a testing code but not working in my application , it throws the 
exception :

"Caused by: org.ggf.drmaa.DeniedByDrmException: Unknown option
Unknown option
Unknown option
Unknown option
Unknown option
Unknown option

    at com.sun.grid.drmaa.SessionImpl.nativeRunJob(Native Method)
    at com.sun.grid.drmaa.SessionImpl.runJob(SessionImpl.java:349)
    at 
com.bigg.metagenome.grid.BulkJobDispatcher.submitAndWait(BulkJobDispatcher.java:46)
    ... 4 more"

###########################################################
MY CODE IS

SessionFactory factory = SessionFactory.getFactory();
        Session session = factory.getSession();
        JobTemplate jt = null;
        try {
            session.init("");

            //submit jobs
            for (AbstractJob job : jobs) {

                jt = session.createJobTemplate();
                jt.setNativeSpecification("-b no -S /usr/bin/perl");  
//job.getNativeCommand());
                
jt.setWorkingDirectory(job.getWorkDir().getAbsolutePath());               
                jt.setRemoteCommand("clustering.pl");  
//job.getRemoteCommand()
                System.out.println("wd> 
"+job.getWorkDir().getAbsolutePath());
                System.out.println("nc>"+job.getNativeCommand());
                System.out.println("args>"+job.getArgs());
                System.out.println("rcmd>"+job.getRemoteCommand());
                jt.setArgs(job.getArgs());
               
                System.out.println("About to RUN!");
                String sgeid=session.runJob(jt);
                job.setSgeJobId(sgeid);
                System.out.println("Job Submitted");
            }
           
            //wait for jobs
            for(int i=0;i<jobs.size();i++){
                JobInfo info=session.wait(Session.JOB_IDS_SESSION_ANY, 
Session.TIMEOUT_WAIT_FOREVER);
                AbstractJob 
finishedJob=getJobBySGEID(info.getJobId());               
                for(JobHandler h:handlers){
                    h.onJobFinish(finishedJob);
                }               
            }
            session.exit();
           
        } catch (DrmaaException e) {
            throw new GridException(e);

        }


What seems to be the problem?
Thanks in advance.

------------------------------------------------------
http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=38&dsMessageId=226404

To unsubscribe from this discussion, e-mail: [users-unsubscribe at gridengine.sunsource.net].



More information about the gridengine-users mailing list