Skip to content

Commit 6c2d9ee

Browse files
author
Shefali
committed
bug fixes
1 parent 56c77e3 commit 6c2d9ee

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/ResourceManager/HDInsight/Commands.HDInsight/ManagementCommands/NewAzureHDInsightClusterCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ var storageAccount in
249249
parameters.HeadNodeSize = value.HeadNodeSize;
250250
parameters.ZookeeperNodeSize = value.ZookeeperNodeSize;
251251
HiveMetastore = value.HiveMetastore;
252-
OozieMetastore = value.HiveMetastore;
252+
OozieMetastore = value.OozieMetastore;
253253
CertificateFilePath = value.CertificateFilePath;
254254
AadTenantId = value.AADTenantId;
255255
ObjectId = value.ObjectId;
@@ -332,7 +332,7 @@ var storageAccount in
332332
if (HiveMetastore != null)
333333
{
334334
var metastore = HiveMetastore;
335-
parameters.OozieMetastore = new Metastore(metastore.SqlAzureServerName, metastore.DatabaseName, metastore.Credential.UserName, metastore.Credential.Password.ConvertToString());
335+
parameters.HiveMetastore = new Metastore(metastore.SqlAzureServerName, metastore.DatabaseName, metastore.Credential.UserName, metastore.Credential.Password.ConvertToString());
336336
}
337337
if (CertificateFilePath != null && CertificatePassword != null)
338338
{

src/ResourceManager/HDInsight/Commands.HDInsight/Models/Job/AzureHDInsightJob.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class AzureHDInsightJob
2828
/// <param name="cluster">The cluster that the jobDetails was created against.</param>
2929
public AzureHDInsightJob(JobDetailRootJsonObject jobDetails, string cluster)
3030
{
31-
Cluster = cluster.Substring(0, cluster.IndexOf('.') + 1);
31+
Cluster = cluster.Substring(0, cluster.IndexOf('.'));
3232
HttpEndpoint = cluster;
3333
State = jobDetails.Status.State;
3434
JobId = jobDetails.Id;
@@ -38,6 +38,7 @@ public AzureHDInsightJob(JobDetailRootJsonObject jobDetails, string cluster)
3838
User = jobDetails.User;
3939
Callback = jobDetails.Callback;
4040
Completed = jobDetails.Completed;
41+
StatusFolder = jobDetails.Userargs.Statusdir.ToString();
4142
}
4243

4344
/// <summary>
@@ -89,5 +90,10 @@ public AzureHDInsightJob(JobDetailRootJsonObject jobDetails, string cluster)
8990
/// Gets a string representing completed status, for example "done".
9091
/// </summary>
9192
public string Completed { get; set; }
93+
94+
/// <summary>
95+
/// Gets the status folder for the jobDetails.
96+
/// </summary>
97+
public string StatusFolder { get; set; }
9298
}
9399
}

0 commit comments

Comments
 (0)