[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Condor-users] problem with running condor script from Java code using birdbath



Hello,

I was wondering if there is any documentation available anywhere to find the parameters to run the condor script.

 

I am using the following code but that does not seem to work.

public static void main(String[] args) {

            // TODO Auto-generated method stub

            try

            {

           

             Schedd schedd = new Schedd(new URL("http.."));

             Transaction xact = schedd.createTransaction();

             xact.begin(30);

             int cluster = xact.createCluster();

             int job = xact.createJob(cluster);

     

             ClassAdStructAttr[] extraAttributes =

             {

             new ClassAdStructAttr("Out", ClassAdAttrType.value3,"/home/bb.out"),

            // new ClassAdStructAttr("GridResource", ClassAdAttrType.value3,"gt2 login-co.ncsa.teragrid.org/jobmanager"),

            // new ClassAdStructAttr("x509userproxy", ClassAdAttrType.value3,"/tmp/x509up_u501")

             };

           

     

xact.submit(cluster, job,"dray",UniverseType.VANILLA,"/home/condor_sc",null,"OpSys==\"Linux\"",extraAttributes,null);

             xact.commit();

            }

            catch(Exception e){

                  System.out.println("e:"+e);

            }

      }

 

Thanks,

D