File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/HDInsight/HDInsight/JobCommands Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -109,19 +109,19 @@ public override void ExecuteCmdlet()
109
109
var resourceGroup =
110
110
SessionState . PSVariable . Get ( UseAzureHDInsightClusterCommand . CurrentResourceGroup ) . Value . ToString ( ) ;
111
111
112
- _credential = new BasicAuthenticationCloudCredentials
113
- {
114
- Username = clusterCred . UserName ,
115
- Password = clusterCred . Password . ConvertToString ( )
116
- } ;
117
-
118
112
if ( clusterConnection == null || clusterCred == null )
119
113
{
120
114
throw new NullReferenceException (
121
115
string . Format (
122
116
"The cluster or resource group specified is null. Please use the Use-AzHDInsightCluster command to connect to a cluster." ) ) ;
123
117
}
124
118
119
+ _credential = new BasicAuthenticationCloudCredentials
120
+ {
121
+ Username = clusterCred . UserName ,
122
+ Password = clusterCred . Password . ConvertToString ( )
123
+ } ;
124
+
125
125
//get hive job
126
126
var hivejob = hiveJobDefinitionCommand . GetHiveJob ( ) ;
127
127
You can’t perform that action at this time.
0 commit comments