@@ -77,10 +77,11 @@ use crate::{
7777 construct_role_specific_non_heap_jvm_args,
7878 } ,
7979 crd:: {
80- APP_NAME , AnyServiceConfig , Container , HBASE_ENV_SH , HBASE_REST_PORT_NAME_HTTP ,
81- HBASE_REST_PORT_NAME_HTTPS , HBASE_SITE_XML , HbaseClusterStatus , HbasePodRef , HbaseRole ,
82- JVM_SECURITY_PROPERTIES_FILE , LISTENER_VOLUME_DIR , LISTENER_VOLUME_NAME , SSL_CLIENT_XML ,
83- SSL_SERVER_XML , merged_env, v1alpha1,
80+ APP_NAME , AnyServiceConfig , Container , HBASE_ENV_SH , HBASE_MASTER_PORT ,
81+ HBASE_REGIONSERVER_PORT , HBASE_REST_PORT_NAME_HTTP , HBASE_REST_PORT_NAME_HTTPS ,
82+ HBASE_SITE_XML , HbaseClusterStatus , HbasePodRef , HbaseRole , JVM_SECURITY_PROPERTIES_FILE ,
83+ LISTENER_VOLUME_DIR , LISTENER_VOLUME_NAME , SSL_CLIENT_XML , SSL_SERVER_XML , merged_env,
84+ v1alpha1,
8485 } ,
8586 discovery:: { build_discovery_configmap, build_endpoint_configmap} ,
8687 kerberos:: {
@@ -597,20 +598,14 @@ fn build_rolegroup_config_map(
597598
598599 match hbase_role {
599600 HbaseRole :: Master => {
600- hbase_site_config. insert (
601- "hbase.listener.master.hostname" . to_string ( ) ,
602- "${HBASE_SERVICE_HOST}" . to_string ( ) ,
603- ) ;
604- hbase_site_config. insert (
605- "hbase.listener.master.port" . to_string ( ) ,
606- "${HBASE_SERVICE_PORT}" . to_string ( ) ,
607- ) ;
608601 hbase_site_config. insert (
609602 "hbase.master.ipc.address" . to_string ( ) ,
610603 "0.0.0.0" . to_string ( ) ,
611604 ) ;
612- hbase_site_config
613- . insert ( "hbase.master.ipc.port" . to_string ( ) , "16000" . to_string ( ) ) ;
605+ hbase_site_config. insert (
606+ "hbase.master.ipc.port" . to_string ( ) ,
607+ HBASE_MASTER_PORT . to_string ( ) ,
608+ ) ;
614609 hbase_site_config. insert (
615610 "hbase.master.hostname" . to_string ( ) ,
616611 "${HBASE_SERVICE_HOST}" . to_string ( ) ,
@@ -621,21 +616,13 @@ fn build_rolegroup_config_map(
621616 ) ;
622617 }
623618 HbaseRole :: RegionServer => {
624- hbase_site_config. insert (
625- "hbase.listener.regionserver.hostname" . to_string ( ) ,
626- "${HBASE_SERVICE_HOST}" . to_string ( ) ,
627- ) ;
628- hbase_site_config. insert (
629- "hbase.listener.regionserver.port" . to_string ( ) ,
630- "${HBASE_SERVICE_PORT}" . to_string ( ) ,
631- ) ;
632619 hbase_site_config. insert (
633620 "hbase.regionserver.ipc.address" . to_string ( ) ,
634621 "0.0.0.0" . to_string ( ) ,
635622 ) ;
636623 hbase_site_config. insert (
637624 "hbase.regionserver.ipc.port" . to_string ( ) ,
638- "16020" . to_string ( ) ,
625+ HBASE_REGIONSERVER_PORT . to_string ( ) ,
639626 ) ;
640627 hbase_site_config. insert (
641628 "hbase.unsafe.regionserver.hostname" . to_string ( ) ,
@@ -928,6 +915,7 @@ fn build_rolegroup_statefulset(
928915
929916 let role_name = hbase_role. cli_role_name ( ) ;
930917 let mut hbase_container = ContainerBuilder :: new ( "hbase" ) . expect ( "ContainerBuilder not created" ) ;
918+
931919 hbase_container
932920 . image_from_product_image ( resolved_product_image)
933921 . command ( command ( ) )
@@ -940,10 +928,8 @@ fn build_rolegroup_statefulset(
940928 port_name = match hbase_role {
941929 HbaseRole :: Master => "master" ,
942930 HbaseRole :: RegionServer => "regionserver" ,
943- HbaseRole :: RestServer => "restserver " ,
931+ HbaseRole :: RestServer => "rest-http " ,
944932 }
945- // port_name = hbase.ports(hbase_role, "").first().unwrap().1
946- // port_name = hbase.ui_port_name(),
947933 } ] )
948934 . add_env_vars ( merged_env)
949935 // Needed for the `containerdebug` process to log it's tracing information to.
0 commit comments