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