HDDS-1710. Fix checkstyle errors
Signed-off-by: Anu Engineer <aengineer@apache.org>
This commit is contained in:
parent
4317d33232
commit
278390f5bf
|
@ -480,13 +480,13 @@ public final class HddsUtils {
|
|||
}
|
||||
|
||||
/**
|
||||
* Initialize hadoop metrics systen for Ozone servers.
|
||||
* @param configuration OzoneConfiguration to use.
|
||||
* @param serverName The logical name of the server components. (eg.
|
||||
* Initialize hadoop metrics system for Ozone servers.
|
||||
* @param configuration OzoneConfiguration to use.
|
||||
* @param serverName The logical name of the server components.
|
||||
* @return
|
||||
*/
|
||||
public static MetricsSystem initializeMetrics(OzoneConfiguration configuration,
|
||||
String serverName) {
|
||||
public static MetricsSystem initializeMetrics(
|
||||
OzoneConfiguration configuration, String serverName) {
|
||||
MetricsSystem metricsSystem = DefaultMetricsSystem.initialize(serverName);
|
||||
JvmMetrics.create(serverName,
|
||||
configuration.get(DFSConfigKeys.DFS_METRICS_SESSION_ID_KEY),
|
||||
|
|
|
@ -36,7 +36,6 @@ import org.apache.hadoop.hdds.security.x509.certificate.client.DNCertificateClie
|
|||
import org.apache.hadoop.hdds.security.x509.certificates.utils.CertificateSignRequest;
|
||||
import org.apache.hadoop.hdds.tracing.TracingUtil;
|
||||
import org.apache.hadoop.hdfs.DFSConfigKeys;
|
||||
import org.apache.hadoop.metrics2.lib.DefaultMetricsSystem;
|
||||
import org.apache.hadoop.ozone.container.common.helpers.ContainerUtils;
|
||||
import org.apache.hadoop.ozone.container.common.statemachine.DatanodeStateMachine;
|
||||
import org.apache.hadoop.security.SecurityUtil;
|
||||
|
|
|
@ -81,13 +81,10 @@ import org.apache.hadoop.hdds.security.x509.certificate.authority.DefaultCAServe
|
|||
import org.apache.hadoop.hdds.server.ServiceRuntimeInfoImpl;
|
||||
import org.apache.hadoop.hdds.server.events.EventPublisher;
|
||||
import org.apache.hadoop.hdds.server.events.EventQueue;
|
||||
import org.apache.hadoop.hdfs.DFSConfigKeys;
|
||||
import org.apache.hadoop.hdfs.DFSUtil;
|
||||
import org.apache.hadoop.io.IOUtils;
|
||||
import org.apache.hadoop.ipc.RPC;
|
||||
import org.apache.hadoop.metrics2.MetricsSystem;
|
||||
import org.apache.hadoop.metrics2.lib.DefaultMetricsSystem;
|
||||
import org.apache.hadoop.metrics2.source.JvmMetrics;
|
||||
import org.apache.hadoop.metrics2.util.MBeans;
|
||||
import org.apache.hadoop.ozone.OzoneConfigKeys;
|
||||
import org.apache.hadoop.ozone.OzoneSecurityUtil;
|
||||
|
|
|
@ -65,7 +65,6 @@ import org.apache.hadoop.hdds.security.x509.certificate.utils.CertificateCodec;
|
|||
import org.apache.hadoop.hdds.security.x509.certificates.utils.CertificateSignRequest;
|
||||
import org.apache.hadoop.hdds.server.ServiceRuntimeInfoImpl;
|
||||
import org.apache.hadoop.hdds.tracing.TracingUtil;
|
||||
import org.apache.hadoop.hdfs.DFSConfigKeys;
|
||||
import org.apache.hadoop.hdfs.DFSUtil;
|
||||
import org.apache.hadoop.hdfs.util.PersistentLongFile;
|
||||
import org.apache.hadoop.io.Text;
|
||||
|
@ -74,7 +73,6 @@ import org.apache.hadoop.ipc.Client;
|
|||
import org.apache.hadoop.ipc.ProtobufRpcEngine;
|
||||
import org.apache.hadoop.ipc.RPC;
|
||||
import org.apache.hadoop.ipc.Server;
|
||||
import org.apache.hadoop.metrics2.source.JvmMetrics;
|
||||
import org.apache.hadoop.ozone.OzoneAcl;
|
||||
import org.apache.hadoop.ozone.OzoneConfigKeys;
|
||||
import org.apache.hadoop.ozone.OzoneIllegalArgumentException;
|
||||
|
|
Loading…
Reference in New Issue