Microsoft HPC Scheduler 未连接
我有这段代码:
static void Main(string[] args)
{
Microsoft.Hpc.Scheduler.Scheduler scheduler =
new Microsoft.Hpc.Scheduler.Scheduler();
Console.Write(scheduler.ClusterParameters + "\n" +
scheduler.EnvironmentVariables + "\n");
}
这正在生成异常。创建调度程序对象后,属性 ClusterParameters 和 EnvironmentVariables 出现异常。
例外情况是“Microsoft.Hpc.Scheduler.SchedulerException - 操作失败,因为您未连接到调度程序”
有什么想法吗?
I have this code:
static void Main(string[] args)
{
Microsoft.Hpc.Scheduler.Scheduler scheduler =
new Microsoft.Hpc.Scheduler.Scheduler();
Console.Write(scheduler.ClusterParameters + "\n" +
scheduler.EnvironmentVariables + "\n");
}
This is generating an exception. After the scheduler object is created, the properties ClusterParameters and EnvironmentVariables are holding exceptions.
The exception is, "Microsoft.Hpc.Scheduler.SchedulerException - The operation failed because you are not connected to the scheduler"
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
文档建议您不直接使用
Scheduler
类。请执行此操作:完成此操作后,您必须 连接以便能够使用属性。这就是为什么你会得到这个例外。
The docs suggest you do not use the
Scheduler
class directly. Do this instead:Once you've done this you would have to Connect to be able to use the properties. That's why you get that exception.