示例#1
0
 /// <summary>
 /// Cancels a running spark batch job.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='batchId'>
 /// Identifier for the batch job.
 /// </param>
 /// <param name='requestedBy'>
 /// Add default value for X-Requested-By in header.
 /// </param>
 public static SparkJobDeletedResult DeleteSparkBatchJob(this IJobOperations operations, int batchId, string requestedBy = "ambari")
 {
     return(operations.DeleteSparkBatchJobAsync(batchId, requestedBy).GetAwaiter().GetResult());
 }