Jawab Please Help!

  • Friday, April 27, 2012 7:36 PM
     
     

    I set this up exactly as shown : http://technet.microsoft.com/en-us/library/ee783565(v=ws.10).aspx  It ran fine yesterday, but this morning I get an error which is the following: 

    Unhandled Exception:  System.ArgumentNull Exception:  Value cannot be null.

    Parameter name  : cluster

    at Microsoft.Hpc.Scheduler.Util.CheckArgumentNullOrEmpty(String arg, String argName)

    at Microsoft.Hpc.Scheduler.Scheduler.Connect(String cluster)

    This is Microsoft code from the web so I'm not sure why it wouldn't run???  

    Thanks for your assistance!

All Replies

  • Friday, April 27, 2012 8:35 PM
     
     

    Here is an update....

    When I remove these 2 lines of code and replace them with hard coded variables shown below it runs.  Therefore, it must be due to one of these lines, but why???

    //String clusterName = System.Environment.GetEnvironmentVariable("CCP_CLUSTER_NAME");
     //int jobId = System.Convert.ToInt32(System.Environment.GetEnvironmentVariable("CCP_JOBID"));
                String clusterName = "xx12345001";
                int jobId = 7;

  • Monday, April 30, 2012 4:52 PM
     
     Answered

    Hi,

    Which version of HPC are you running? If you run a later version, you may want to replace CCP_CLUSTER_NAME with CCP_SCHEDULER.

    Also please note that CCP_JOBID is only visible to the job process at runtime, you have to run the exe you built as a job in HPC in order to see it.

    Does it solve your problem?

    Michael

  • Tuesday, May 01, 2012 2:03 PM
     
     
    Yes, this was the issue.  I am back up and running.  Thank you for your reply!