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 @@ -80,4 +80,7 @@ public interface SCMMXBean extends ServiceRuntimeInfo {
*/
String getPrimordialNode();

String getRatisLogDirectory();

String getRocksDbDirectory();
}
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
import org.apache.hadoop.hdds.security.x509.certificate.authority.PKIProfiles.DefaultProfile;
import org.apache.hadoop.hdds.security.x509.certificate.client.SCMCertificateClient;
import org.apache.hadoop.hdds.security.x509.certificate.utils.CertificateCodec;
import org.apache.hadoop.hdds.server.ServerUtils;
import org.apache.hadoop.hdds.server.events.EventExecutor;
import org.apache.hadoop.hdds.server.events.FixedThreadPoolWithAffinityExecutor;
import org.apache.hadoop.hdds.server.http.RatisDropwizardExports;
Expand Down Expand Up @@ -2024,4 +2025,15 @@ public String getPrimordialNode() {
}
return null;
}

@Override
public String getRatisLogDirectory() {
return SCMHAUtils.getSCMRatisDirectory(configuration);
}

@Override
public String getRocksDbDirectory() {
return String.valueOf(ServerUtils.getScmDbDir(configuration));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,20 @@ <h2>Status</h2>
</tbody>
</table>

<h2>Meta-Data Volume Information</h2>
<table class="table table-bordered table-striped" class="col-md-6">
<tbody>
<tr>
<td>Ratis Directory</td>
<td>{{$ctrl.overview.jmx.RatisLogDirectory}}</td>
</tr>
<tr>
<td>RocksDB Directory</td>
<td>{{$ctrl.overview.jmx.RocksDbDirectory}}</td>
</tr>
</tbody>
</table>

<h2>Safemode rules statuses</h2>

<table class="table table-bordered table-striped" class="col-md-6">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,9 @@
public interface OMMXBean extends ServiceRuntimeInfo {

String getRpcPort();

String getRatisLogDirectory();

String getRocksDbDirectory();

}
Original file line number Diff line number Diff line change
Expand Up @@ -2960,6 +2960,16 @@ public String getRpcPort() {
return "" + omRpcAddress.getPort();
}

@Override
public String getRatisLogDirectory() {
return OzoneManagerRatisUtils.getOMRatisDirectory(configuration);
}

@Override
public String getRocksDbDirectory() {
return String.valueOf(OMStorage.getOmDbDir(configuration));
}

@VisibleForTesting
public OzoneManagerHttpServer getHttpServer() {
return httpServer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,17 @@ <h2>Status</h2>
</tr>
</tbody>
</table>

<h2>Meta-Data Volume Information</h2>
<table class="table table-bordered table-striped" class="col-md-6">
<tbody>
<tr>
<td>Ratis Log directory</td>
<td>{{$ctrl.overview.jmx.RatisLogDirectory}}</td>
</tr>
<tr>
<td>RocksDB Directory</td>
<td>{{$ctrl.overview.jmx.RocksDbDirectory}}</td>
</tr>
</tbody>
</table>