locked
How to call ToDsc method?? RRS feed

  • Question

  • I got a problem when I tried to call the ToDsc method,the exception  is "LINQ to HPC job 10780 failed with job state Failed."

    but I can do other HPC program well. How can I resolve the problem????

    Please see the code Below Thanks very much!!

     

      var config = new HpcLinqConfiguration(HeadNode);

                var context = new HpcLinqContext(config);

      string classFileSetName = "MyFirstToDSC";

                List<OrderedItem> itemList = new List<OrderedItem>();

                itemList.Add(new OrderedItem { Timestamp = DateTime.Now, transactionNO = "132", ActionType = "transaction", UserNo = "952718", AdminNo = "12345", Amount = 5000 });

                itemList.Add(new OrderedItem { Timestamp = DateTime.Now, transactionNO = "133", ActionType = "transaction", UserNo = "532717", AdminNo = "12345", Amount = 5000 });

                itemList.Add(new OrderedItem { Timestamp = DateTime.Now, transactionNO = "134", ActionType = "transaction", UserNo = "955518", AdminNo = "12345", Amount = 5000 });

                itemList.Add(new OrderedItem { Timestamp = DateTime.Now, transactionNO = "135", ActionType = "transaction", UserNo = "963216", AdminNo = "12345", Amount = 5000 });

                itemList.Add(new OrderedItem { Timestamp = DateTime.Now, transactionNO = "136", ActionType = "transaction", UserNo = "952712", AdminNo = "12345", Amount = 5000 });

                context.FromEnumerable(itemList).ToDsc(classFileSetName).SubmitAndWait(context);

                Console.WriteLine("done");

    Friday, November 4, 2011 3:46 AM

All replies

  • Hi,

    Could you provide more detailed information about the exception? Could you go to HPC Job Manager and get the log for your Job 10780?

    It is also possible that you do not have dsc properly installed, could also try "dsc node list" in cmd on your headnode?

    Wednesday, November 16, 2011 6:22 PM