@@ -588,6 +588,13 @@ fn build_rolegroup_config_map(
588
588
hbase_site_config
589
589
. extend ( hbase_opa_config. map_or ( vec ! [ ] , |config| config. hbase_site_config ( ) ) ) ;
590
590
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
+
591
598
match hbase_role {
592
599
HbaseRole :: Master => {
593
600
hbase_site_config. insert (
@@ -597,7 +604,21 @@ fn build_rolegroup_config_map(
597
604
hbase_site_config. insert (
598
605
"hbase.listener.master.port" . to_string ( ) ,
599
606
"${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
+ ) ;
601
622
}
602
623
HbaseRole :: RegionServer => {
603
624
hbase_site_config. insert (
@@ -607,9 +628,25 @@ fn build_rolegroup_config_map(
607
628
hbase_site_config. insert (
608
629
"hbase.listener.regionserver.port" . to_string ( ) ,
609
630
"${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
+ ) ;
611
648
}
612
- HbaseRole :: RestServer => None ,
649
+ HbaseRole :: RestServer => { }
613
650
} ;
614
651
615
652
// configOverride come last
@@ -900,7 +937,13 @@ fn build_rolegroup_statefulset(
900
937
role = role_name,
901
938
domain = hbase_service_domain_name( hbase, rolegroup_ref, cluster_info) ?,
902
939
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(),
904
947
} ] )
905
948
. add_env_vars ( merged_env)
906
949
// Needed for the `containerdebug` process to log it's tracing information to.
0 commit comments