@@ -61,14 +61,12 @@ use crate::{
6161 AnyNodeConfig , DataNodeContainer , HdfsNodeRole , HdfsPodRef , NameNodeContainer ,
6262 UpgradeState ,
6363 constants:: {
64- DATANODE_ROOT_DATA_DIR_PREFIX , DEFAULT_DATA_NODE_METRICS_PORT ,
65- DEFAULT_JOURNAL_NODE_METRICS_PORT , DEFAULT_NAME_NODE_METRICS_PORT , LISTENER_VOLUME_DIR ,
66- LISTENER_VOLUME_NAME , LIVENESS_PROBE_FAILURE_THRESHOLD ,
67- LIVENESS_PROBE_INITIAL_DELAY_SECONDS , LIVENESS_PROBE_PERIOD_SECONDS , LOG4J_PROPERTIES ,
68- NAMENODE_ROOT_DATA_DIR , READINESS_PROBE_FAILURE_THRESHOLD ,
69- READINESS_PROBE_INITIAL_DELAY_SECONDS , READINESS_PROBE_PERIOD_SECONDS ,
70- SERVICE_PORT_NAME_HTTP , SERVICE_PORT_NAME_HTTPS , SERVICE_PORT_NAME_IPC ,
71- SERVICE_PORT_NAME_RPC , STACKABLE_ROOT_DATA_DIR ,
64+ DATANODE_ROOT_DATA_DIR_PREFIX , LISTENER_VOLUME_DIR , LISTENER_VOLUME_NAME ,
65+ LIVENESS_PROBE_FAILURE_THRESHOLD , LIVENESS_PROBE_INITIAL_DELAY_SECONDS ,
66+ LIVENESS_PROBE_PERIOD_SECONDS , LOG4J_PROPERTIES , NAMENODE_ROOT_DATA_DIR ,
67+ READINESS_PROBE_FAILURE_THRESHOLD , READINESS_PROBE_INITIAL_DELAY_SECONDS ,
68+ READINESS_PROBE_PERIOD_SECONDS , SERVICE_PORT_NAME_HTTP , SERVICE_PORT_NAME_HTTPS ,
69+ SERVICE_PORT_NAME_IPC , SERVICE_PORT_NAME_RPC , STACKABLE_ROOT_DATA_DIR ,
7270 } ,
7371 storage:: DataNodeStorageConfig ,
7472 v1alpha1,
@@ -164,8 +162,6 @@ pub enum ContainerConfig {
164162 web_ui_http_port_name : & ' static str ,
165163 /// Port name of the web UI HTTPS port, used for the liveness probe.
166164 web_ui_https_port_name : & ' static str ,
167- /// The JMX Exporter metrics port.
168- metrics_port : u16 ,
169165 } ,
170166 Zkfc {
171167 /// The provided custom container name.
@@ -1226,9 +1222,7 @@ wait_for_termination $!
12261222 resources : Option < & ResourceRequirements > ,
12271223 ) -> Result < String , Error > {
12281224 match self {
1229- ContainerConfig :: Hdfs {
1230- role, metrics_port, ..
1231- } => {
1225+ ContainerConfig :: Hdfs { role, .. } => {
12321226 let cvd = ContainerVolumeDirs :: from ( role) ;
12331227 let config_dir = cvd. final_config ( ) ;
12341228 construct_role_specific_jvm_args (
@@ -1238,7 +1232,6 @@ wait_for_termination $!
12381232 hdfs. has_kerberos_enabled ( ) ,
12391233 resources,
12401234 config_dir,
1241- * metrics_port,
12421235 )
12431236 . with_context ( |_| ConstructJvmArgumentsSnafu {
12441237 role : role. to_string ( ) ,
@@ -1379,7 +1372,6 @@ impl From<HdfsNodeRole> for ContainerConfig {
13791372 ipc_port_name : SERVICE_PORT_NAME_RPC ,
13801373 web_ui_http_port_name : SERVICE_PORT_NAME_HTTP ,
13811374 web_ui_https_port_name : SERVICE_PORT_NAME_HTTPS ,
1382- metrics_port : DEFAULT_NAME_NODE_METRICS_PORT ,
13831375 } ,
13841376 HdfsNodeRole :: Data => Self :: Hdfs {
13851377 role,
@@ -1388,7 +1380,6 @@ impl From<HdfsNodeRole> for ContainerConfig {
13881380 ipc_port_name : SERVICE_PORT_NAME_IPC ,
13891381 web_ui_http_port_name : SERVICE_PORT_NAME_HTTP ,
13901382 web_ui_https_port_name : SERVICE_PORT_NAME_HTTPS ,
1391- metrics_port : DEFAULT_DATA_NODE_METRICS_PORT ,
13921383 } ,
13931384 HdfsNodeRole :: Journal => Self :: Hdfs {
13941385 role,
@@ -1397,7 +1388,6 @@ impl From<HdfsNodeRole> for ContainerConfig {
13971388 ipc_port_name : SERVICE_PORT_NAME_RPC ,
13981389 web_ui_http_port_name : SERVICE_PORT_NAME_HTTP ,
13991390 web_ui_https_port_name : SERVICE_PORT_NAME_HTTPS ,
1400- metrics_port : DEFAULT_JOURNAL_NODE_METRICS_PORT ,
14011391 } ,
14021392 }
14031393 }
0 commit comments