Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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 @@ -18,6 +18,8 @@

package org.apache.hadoop.hdds.scm.server;

import java.io.IOException;
import java.util.List;
import java.util.Map;

import org.apache.hadoop.hdds.annotation.InterfaceAudience;
Expand Down Expand Up @@ -70,4 +72,9 @@ public interface SCMMXBean extends ServiceRuntimeInfo {
String getScmId();

String getClusterId();

List<String> getScmRatisRoles() throws IOException;

String getPrimordialNode();
Comment thread
sadanand48 marked this conversation as resolved.

}
Original file line number Diff line number Diff line change
Expand Up @@ -1708,4 +1708,17 @@ ContainerTokenSecretManager getContainerTokenSecretManager() {
return containerTokenMgr;
}

@Override
public List<String> getScmRatisRoles() throws IOException {
return getScmHAManager().getRatisServer().getRatisRoles();
Comment thread
sadanand48 marked this conversation as resolved.
Outdated
}

@Override
public String getPrimordialNode() {
if (SCMHAUtils.isSCMHAEnabled(configuration)) {
return SCMHAUtils.getPrimordialSCM(configuration);
}
return null;
Comment thread
sadanand48 marked this conversation as resolved.
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,14 @@ <h2>Status</h2>
<td>Node Manager: Safe mode status</td>
<td>{{$ctrl.overview.jmx.InSafeMode}}</td>
</tr>
<tr>
<td> SCM Roles (HA) </td>
<td>{{$ctrl.overview.jmx.ScmRatisRoles}}</td>
</tr>
<tr>
<td> Primordial Node (HA) </td>
<td>{{$ctrl.overview.jmx.PrimordialNode}}</td>
</tr>
</tbody>
</table>

Expand Down
1 change: 1 addition & 0 deletions hadoop-ozone/dist/src/main/compose/ozone-ha/docker-config
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ OZONE-SITE.XML_ozone.metadata.dirs=/data/metadata
OZONE-SITE.XML_hdds.datanode.dir=/data/hdds
OZONE-SITE.XML_ozone.datanode.pipeline.limit=1
OZONE-SITE.XML_hdds.scmclient.max.retry.timeout=30s
OZONE-SITE.XML_ozone.scm.primordial.node.id=scm1

OZONE_CONF_DIR=/etc/hadoop
OZONE_LOG_DIR=/var/log/hadoop
Expand Down