Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
using System.Reflection;
using System.Security.Cryptography.X509Certificates;
using System.Threading.Tasks;
using Microsoft.WindowsAzure.Management.HDInsight.ClusterProvisioning.Data;
using Microsoft.WindowsAzure.Management.HDInsight.Cmdlet.Commands.CommandInterfaces;
using Microsoft.WindowsAzure.Management.HDInsight.Cmdlet.DataObjects;
using Microsoft.WindowsAzure.Management.HDInsight.Cmdlet.GetAzureHDInsightClusters;
Expand Down Expand Up @@ -159,11 +160,19 @@ protected override void EndProcessing()
command.Location = cluster.Location;
if (ClusterSizeInNodes < cluster.ClusterSizeInNodes)
{
var task = ConfirmSetAction(
"You are requesting a cluster size that is less than the current cluster size. We recommend not running jobs till the operation is complete as all running jobs will fail at end of resize operation and may impact the health of your cluster. Do you want to continue?",
"Continuing with set cluster operation.",
ClusterSizeInNodes.ToString(CultureInfo.InvariantCulture),
action);
Task task;
if (cluster.ClusterType == ClusterType.Hadoop)
{
task = ConfirmSetAction(
"You are requesting a cluster size that is less than the current cluster size. We recommend not running jobs till the operation is complete as all running jobs will fail at end of resize operation and may impact the health of your cluster. Do you want to continue?",
"Continuing with set cluster operation.",
ClusterSizeInNodes.ToString(CultureInfo.InvariantCulture),
action);
}
else
{
task = action();
}
if (task == null)
{
throw new OperationCanceledException("The change cluster size operation was aborted.");
Expand Down