@@ -77,10 +77,11 @@ use crate::{
77
77
construct_role_specific_non_heap_jvm_args,
78
78
} ,
79
79
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,
84
85
} ,
85
86
discovery:: { build_discovery_configmap, build_endpoint_configmap} ,
86
87
kerberos:: {
@@ -597,20 +598,14 @@ fn build_rolegroup_config_map(
597
598
598
599
match hbase_role {
599
600
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
- ) ;
608
601
hbase_site_config. insert (
609
602
"hbase.master.ipc.address" . to_string ( ) ,
610
603
"0.0.0.0" . to_string ( ) ,
611
604
) ;
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
+ ) ;
614
609
hbase_site_config. insert (
615
610
"hbase.master.hostname" . to_string ( ) ,
616
611
"${HBASE_SERVICE_HOST}" . to_string ( ) ,
@@ -621,21 +616,13 @@ fn build_rolegroup_config_map(
621
616
) ;
622
617
}
623
618
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
- ) ;
632
619
hbase_site_config. insert (
633
620
"hbase.regionserver.ipc.address" . to_string ( ) ,
634
621
"0.0.0.0" . to_string ( ) ,
635
622
) ;
636
623
hbase_site_config. insert (
637
624
"hbase.regionserver.ipc.port" . to_string ( ) ,
638
- "16020" . to_string ( ) ,
625
+ HBASE_REGIONSERVER_PORT . to_string ( ) ,
639
626
) ;
640
627
hbase_site_config. insert (
641
628
"hbase.unsafe.regionserver.hostname" . to_string ( ) ,
@@ -928,6 +915,7 @@ fn build_rolegroup_statefulset(
928
915
929
916
let role_name = hbase_role. cli_role_name ( ) ;
930
917
let mut hbase_container = ContainerBuilder :: new ( "hbase" ) . expect ( "ContainerBuilder not created" ) ;
918
+
931
919
hbase_container
932
920
. image_from_product_image ( resolved_product_image)
933
921
. command ( command ( ) )
@@ -940,10 +928,8 @@ fn build_rolegroup_statefulset(
940
928
port_name = match hbase_role {
941
929
HbaseRole :: Master => "master" ,
942
930
HbaseRole :: RegionServer => "regionserver" ,
943
- HbaseRole :: RestServer => "restserver " ,
931
+ HbaseRole :: RestServer => "rest-http " ,
944
932
}
945
- // port_name = hbase.ports(hbase_role, "").first().unwrap().1
946
- // port_name = hbase.ui_port_name(),
947
933
} ] )
948
934
. add_env_vars ( merged_env)
949
935
// Needed for the `containerdebug` process to log it's tracing information to.
0 commit comments