@@ -588,6 +588,13 @@ fn build_rolegroup_config_map(
588588 hbase_site_config
589589 . extend ( hbase_opa_config. map_or ( vec ! [ ] , |config| config. hbase_site_config ( ) ) ) ;
590590
591+ // Get more useful stack traces...
592+ // The default Netty impl gives us netty garbage and nothing else
593+ hbase_site_config. insert (
594+ "hbase.rpc.client.impl" . to_string ( ) ,
595+ "org.apache.hadoop.hbase.ipc.BlockingRpcClient" . to_string ( ) ,
596+ ) ;
597+
591598 match hbase_role {
592599 HbaseRole :: Master => {
593600 hbase_site_config. insert (
@@ -597,7 +604,21 @@ fn build_rolegroup_config_map(
597604 hbase_site_config. insert (
598605 "hbase.listener.master.port" . to_string ( ) ,
599606 "${HBASE_SERVICE_PORT}" . to_string ( ) ,
600- )
607+ ) ;
608+ hbase_site_config. insert (
609+ "hbase.master.ipc.address" . to_string ( ) ,
610+ "0.0.0.0" . to_string ( ) ,
611+ ) ;
612+ hbase_site_config
613+ . insert ( "hbase.master.ipc.port" . to_string ( ) , "16000" . to_string ( ) ) ;
614+ hbase_site_config. insert (
615+ "hbase.master.hostname" . to_string ( ) ,
616+ "${HBASE_SERVICE_HOST}" . to_string ( ) ,
617+ ) ;
618+ hbase_site_config. insert (
619+ "hbase.master.port" . to_string ( ) ,
620+ "${HBASE_SERVICE_PORT}" . to_string ( ) ,
621+ ) ;
601622 }
602623 HbaseRole :: RegionServer => {
603624 hbase_site_config. insert (
@@ -607,9 +628,25 @@ fn build_rolegroup_config_map(
607628 hbase_site_config. insert (
608629 "hbase.listener.regionserver.port" . to_string ( ) ,
609630 "${HBASE_SERVICE_PORT}" . to_string ( ) ,
610- )
631+ ) ;
632+ hbase_site_config. insert (
633+ "hbase.regionserver.ipc.address" . to_string ( ) ,
634+ "0.0.0.0" . to_string ( ) ,
635+ ) ;
636+ hbase_site_config. insert (
637+ "hbase.regionserver.ipc.port" . to_string ( ) ,
638+ "16020" . to_string ( ) ,
639+ ) ;
640+ hbase_site_config. insert (
641+ "hbase.unsafe.regionserver.hostname" . to_string ( ) ,
642+ "${HBASE_SERVICE_HOST}" . to_string ( ) ,
643+ ) ;
644+ hbase_site_config. insert (
645+ "hbase.regionserver.port" . to_string ( ) ,
646+ "${HBASE_SERVICE_PORT}" . to_string ( ) ,
647+ ) ;
611648 }
612- HbaseRole :: RestServer => None ,
649+ HbaseRole :: RestServer => { }
613650 } ;
614651
615652 // configOverride come last
@@ -900,7 +937,13 @@ fn build_rolegroup_statefulset(
900937 role = role_name,
901938 domain = hbase_service_domain_name( hbase, rolegroup_ref, cluster_info) ?,
902939 port = hbase. service_port( hbase_role) . to_string( ) ,
903- port_name = hbase. ui_port_name( ) ,
940+ port_name = match hbase_role {
941+ HbaseRole :: Master => "master" ,
942+ HbaseRole :: RegionServer => "regionserver" ,
943+ HbaseRole :: RestServer => "restserver" ,
944+ }
945+ // port_name = hbase.ports(hbase_role, "").first().unwrap().1
946+ // port_name = hbase.ui_port_name(),
904947 } ] )
905948 . add_env_vars ( merged_env)
906949 // Needed for the `containerdebug` process to log it's tracing information to.
0 commit comments