Skip to content
Merged
Show file tree
Hide file tree
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 @@ -24,7 +24,7 @@ public enum ClusterNodeType
WorkerNode,

/// <summary>
/// The zookeper nodes of the cluster.
/// The zookeeper nodes of the cluster.
/// </summary>
ZookeeperNode,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public KafkaRestProperties()
/// <param name="clientGroupInfo">The information of AAD security group.
/// </param>

/// <param name="configurationOverride">The configurations that need to be overriden.
/// <param name="configurationOverride">The configurations that need to be overridden.
/// </param>
public KafkaRestProperties(ClientGroupInfo clientGroupInfo = default(ClientGroupInfo), System.Collections.Generic.IDictionary<string, string> configurationOverride = default(System.Collections.Generic.IDictionary<string, string>))

Expand All @@ -51,7 +51,7 @@ public KafkaRestProperties()
public ClientGroupInfo ClientGroupInfo {get; set; }

/// <summary>
/// Gets or sets the configurations that need to be overriden.
/// Gets or sets the configurations that need to be overridden.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "configurationOverride")]
public System.Collections.Generic.IDictionary<string, string> ConfigurationOverride {get; set; }
Expand Down
2 changes: 1 addition & 1 deletion src/HDInsight/HDInsight/ClusterCreateHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ private static string GetDefaultVmSizeFromDictionary(string clusterType, string
{
if (!clusterTypeAndVmSizeDict.TryGetValue(clusterType, out vmSize))
{
// backend will use the string "*" to stand for it is applicable for all clsuter type.
// backend will use the string "*" to stand for it is applicable for all cluster type.
clusterTypeAndVmSizeDict.TryGetValue(Constants.ClusterType.AllClusterType, out vmSize);
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/HDInsight/HDInsight/HDInsightCmdletBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ protected string GetClusterConnection(string resourceGroupName, string clusterNa
state.Equals("Operational", StringComparison.OrdinalIgnoreCase)))
{
throw new NotSupportedException(
string.Format("The cluster {0} is in the {1} state and canot be used at this time.", clusterName,
string.Format("The cluster {0} is in the {1} state and cannot be used at this time.", clusterName,
state));
}

Expand Down Expand Up @@ -135,7 +135,7 @@ protected Dictionary<string, Dictionary<string, string>> GetDefaultVmsizesConfig
{
BillingResponseListResult billingResponseListResult = HDInsightManagementClient.ListBillingSpecs(location);

/* The result is KeyValuePair<ZOOKEEPERNODEROLE, KeyValulePair<SPARK, STANDARD_A2_V2>> */
/* The result is KeyValuePair<ZOOKEEPERNODEROLE, KeyValuePair<SPARK, STANDARD_A2_V2>> */
var nodeTypeAndClusterTypeAndVmSizePairs = billingResponseListResult.VMSizeFilters.Where(filter => filter.FilterMode.Equals(FilterMode.Default)).SelectMany(x =>
{
var clusterTypeAndVmSizePairs = x.ClusterFlavors.SelectMany(clusterType => x.VMSizes, (clusterType, vmSize) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class DisableAzureHDInsightMonitoringCommand : HDInsightCmdletBase
[Parameter(
Position = 0,
Mandatory = true,
HelpMessage = "Gets or sets the name of the cluster to disable monitroing.",
HelpMessage = "Gets or sets the name of the cluster to disable monitoring.",
ValueFromPipelineByPropertyName = true)]
[Alias("ClusterName")]
public string Name { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public AzureHDInsightAzureMonitor(AzureMonitorResponse azureMonitorResponse)
}

/// <summary>
/// Bool indicates whether the cluster has enabled montioring or not.
/// Bool indicates whether the cluster has enabled monitoring or not.
/// </summary>
public bool ClusterMonitoringEnabled { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public AzureHDInsightAzureMonitorAgent(AzureMonitorResponse azureMonitorResponse
}

/// <summary>
/// Bool indicates whether the cluster has enabled montioring or not.
/// Bool indicates whether the cluster has enabled monitoring or not.
/// </summary>
public bool ClusterMonitoringEnabled { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public enum AzureHDInsightClusterNodeType
WorkerNode=1,

/// <summary>
/// The zookeper nodes of the cluster.
/// The zookeeper nodes of the cluster.
/// </summary>
ZookeeperNode=2,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public AzureHDInsightMonitoring(ClusterMonitoringResponse clusterMonitoringRespo
}

/// <summary>
/// Bool indicates whether the cluster has enabled montioring or not.
/// Bool indicates whether the cluster has enabled monitoring or not.
/// </summary>
public bool ClusterMonitoringEnabled { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace Microsoft.Azure.Commands.HDInsight.Models
{

/// <summary>
/// Represents and AzureHDInsightSecurityProfile which contans the parameters to create secure cluster.
/// Represents and AzureHDInsightSecurityProfile which contains the parameters to create secure cluster.
/// </summary>
public class AzureHDInsightSecurityProfile
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public enum RuntimeScriptActionClusterNodeType
WorkerNode,

/// <summary>
/// The zookeper nodes of the cluster.
/// The zookeeper nodes of the cluster.
/// </summary>
ZookeeperNode,

Expand Down
2 changes: 1 addition & 1 deletion src/HPCCache/HPCCache.Test/Fixtures/HpcCacheTestContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ public void RegisterSubscriptionForResource(string providerName)
var reg = resourceManagementClient.Providers.Register(providerName);
StorageCacheTestUtilities.ThrowIfTrue(reg == null, $"Failed to register provider {providerName}");
var result = resourceManagementClient.Providers.Get(providerName);
StorageCacheTestUtilities.ThrowIfTrue(result == null, $"Failed to register provier {providerName}");
StorageCacheTestUtilities.ThrowIfTrue(result == null, $"Failed to register provider {providerName}");
}

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions src/HPCCache/HPCCache.Test/Helper/CacheHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class CacheHelper
private readonly VirtualNetwork virtualNetwork;

/// <summary>
/// Target subent.
/// Target subnet.
/// </summary>
private readonly Subnet subNet;

Expand Down Expand Up @@ -277,7 +277,7 @@ public StorageTarget GetStorageTarget(string cacheName, string storageTargetName
/// </summary>
/// <param name="storageAccountName">Storage account name.</param>
/// <param name="containerName"> Storage container name.</param>
/// <param name="namespacePath"> namepace path.</param>
/// <param name="namespacePath"> namespace path.</param>
/// <param name="subscriptionId">Subscription id.</param>
/// <param name="resourceGroupName">Resource group name.</param>
/// <returns>CLFS storage target parameters.</returns>
Expand Down
2 changes: 1 addition & 1 deletion src/HPCCache/HPCCache.Test/Helper/StorageAccountsHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public StorageAccountsHelper(StorageManagementClient client, ResourceGroup resou
/// <param name="storageAccountName">Storage account to be created.</param>
/// <param name="skuName">Storage SKU.</param>
/// <param name="storageKind">Storage kind.</param>
/// <returns>Stoprage account.</returns>
/// <returns>Storage account.</returns>
public StorageAccount CreateStorageAccount(string storageAccountName, string skuName = null, string storageKind = null)
{
var sku = string.IsNullOrEmpty(skuName) ? DefaultSkuName : skuName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function Test-New-Get-Remove-StorageTarget
Assert-AreEqual "Succeeded" $storageTargetGet.ProvisioningState
break
}
Assert-False {$i -eq 20} "StorageTarget is not done completeling after 10 minutes."
Assert-False {$i -eq 20} "StorageTarget is not done completing after 10 minutes."
}
}

Expand Down Expand Up @@ -65,7 +65,7 @@ function Test-SetStorageTarget
Assert-AreEqual "/abcdefgh" $storageTargetGet.Junctions.nameSpacePath
break
}
Assert-False {$i -eq 20} "StorageTarget is not done completeling after 10 minutes."
Assert-False {$i -eq 20} "StorageTarget is not done completing after 10 minutes."
}
}
}
4 changes: 2 additions & 2 deletions src/HPCCache/HPCCache.Test/Utilities/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ public static class Constants
/// </summary>
public const string StorageCacheResourceProviderPrincipalId = "831d4223-7a3c-4121-a445-1e423591e57b";

// If you want to use existing cache then uncomment below parameters and substitue proper values.
// If you want to use existing cache then uncomment below parameters and substitute proper values.

/// <summary>
/// Resouce group name.
/// Resource group name.
/// </summary>
// public static readonly string ResourceGroupName = "test-rg";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public static string GenerateName(
}

/// <summary>
/// Throw expception if the given condition is satisfied.
/// Throw exception if the given condition is satisfied.
/// </summary>
/// <param name="condition">Condition to verify.</param>
/// <param name="message">Exception message to raise.</param>
Expand Down
2 changes: 1 addition & 1 deletion src/HPCCache/HPCCache/Commands/SetAzHpcCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace Microsoft.Azure.Commands.HPCCache
using Newtonsoft.Json;

/// <summary>
/// SetHPCCache commandlet.
/// SetHPCCache cmdlet.
/// </summary>
[Cmdlet("Set", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "HpcCache", DefaultParameterSetName = FieldsParameterSet, SupportsShouldProcess = true)]
[OutputType(typeof(PSHPCCache))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Describe 'ClusterUpdate' {
$yarnServiceConfigProfile
}

# If you have donnot have a cluster, you can use this test to create a cluster, and then run other tests.
# If you do not have a cluster, you can use this test to create a cluster, and then run other tests.
It "New-AzHdInsightOnAksCluster_Spark" -skip{

{ $script:ManagedIdentity = New-AzHdInsightOnAksManagedIdentityObject -ClientId $env.msiClientId -ObjectId $env.msiObjectId -ResourceId $env.identityProfileMsiResourceId -Type cluster } | Should -Not -Throw
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Describe 'ClusterUpgrade' {
[Console]::WriteLine("New-AzHdInsightOnAksClusterPool done")
}

# If you have donnot have a cluster, you can use this test to create a cluster, and then run other tests.
# If you do not have a cluster, you can use this test to create a cluster, and then run other tests.
It "New-AzHdInsightOnAksCluster_Trino" {
{ $script:ManagedIdentity = New-AzHdInsightOnAksManagedIdentityObject -ClientId $env.msiClientId -ObjectId $env.msiObjectId -ResourceId $env.identityProfileMsiResourceId -Type cluster } | Should -Not -Throw

Expand Down
2 changes: 1 addition & 1 deletion src/helpers/ManagedIdentity/readme.noprofile.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ input-file:
subject-prefix: ''

directive:
# Remove unnedded cmdlets
# Remove unneeded cmdlets
- where:
subject: ^Operation$
remove: true
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/Storage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ subject-prefix: ''
# skip-model-cmdlets: true

directive:
# Remove unnedded cmdlets
# Remove unneeded cmdlets
- where:
subject: ^BlobContainerLegalHold$
remove: true
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/Storage/readme.noprofile.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ subject-prefix: ''
# skip-model-cmdlets: true

directive:
# Remove unnedded cmdlets
# Remove unneeded cmdlets
- where:
subject: ^BlobContainerLegalHold$
remove: true
Expand Down