Note: Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation. To learn more about these changes please visit the announcement which can be found HERE.

السؤال How to call ToDsc method??

  • 08/ذو الحجة/1432 03:46 ص
     
     

    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");

جميع الردود

  • 20/ذو الحجة/1432 06:22 م
     
     

    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?