private void SetStandardProperties(ClientJobRequest request, JobCreateParameters details)
 {
     foreach (var jobRequestParameter in request.Resources)
     {
         details.Files.Add(jobRequestParameter.Value.ToString());
     }
 }
 protected JobRequest(ClientJobRequest request)
 {
     this.Resources = request.Resources.Select(p => p.Value.ToString()).ToList();
     this.Parameters = request.Parameters.ToDictionary(i => i.Key, e => e.Value.ToString());
     this.Name = request.JobName;
     this.Parameters.Add(new KeyValuePair<string, string>(JobSubmissionConstants.JobNameDefine,request.JobName));
     this.OutputStorageAccount = request.OutputStorageLocation;
 }
Beispiel #3
0
 protected JobRequest(ClientJobRequest request)
 {
     this.Resources  = request.Resources.Select(p => p.Value.ToString()).ToList();
     this.Parameters = request.Parameters.ToDictionary(i => i.Key, e => e.Value.ToString());
     this.Name       = request.JobName;
     this.Parameters.Add(new KeyValuePair <string, string>(JobSubmissionConstants.JobNameDefine, request.JobName));
     this.OutputStorageAccount = request.OutputStorageLocation;
 }
 public static bool TryParse(ClientJobRequest request, out JobRequest output)
 {
     try
     {
         output = new MapReduceJobRequest(request);
         return true;
     }
     catch (Exception)
     {
         output = null;
         return false;
     }
 }
Beispiel #5
0
 public static bool TryParse(ClientJobRequest request, out JobRequest output)
 {
     try
     {
         output = new MapReduceJobRequest(request);
         return(true);
     }
     catch (Exception)
     {
         output = null;
         return(false);
     }
 }
 public MapReduceJobRequest(ClientJobRequest request) : base(request)
 {
     this.ApplicationName = request.ApplicationName;
     this.JarFile = request.JarFile;
     this.Arguments = request.Arguments;
 }
 public HiveJobRequest(ClientJobRequest request)
     : base(request)
 {
     this.Query = request.Query;
 }
Beispiel #8
0
 public MapReduceJobRequest(ClientJobRequest request) : base(request)
 {
     this.ApplicationName = request.ApplicationName;
     this.JarFile         = request.JarFile;
     this.Arguments       = request.Arguments;
 }
Beispiel #9
0
 public HiveJobRequest(ClientJobRequest request)
     : base(request)
 {
     this.Query = request.Query;
 }