Skip to content

Commit 4ceb588

Browse files
committed
updated env-vars based on patch changes
1 parent a51003c commit 4ceb588

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

rust/operator-binary/src/hbase_controller.rs

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -556,14 +556,19 @@ fn build_rolegroup_config_map(
556556
"org.apache.hadoop.hbase.ipc.BlockingRpcClient".to_string(),
557557
);
558558

559-
// Set listener endpoint information with generic properties
559+
// Set listener endpoint information
560560
hbase_site_config.insert(
561561
"hbase.listener.endpoint".to_string(),
562562
"${HBASE_LISTENER_ENDPOINT}".to_string(),
563563
);
564+
565+
// Set flag to override default behaviour, which is that the
566+
// RPC client should bind the client address (forcing outgoing
567+
// RPC traffic to happen from the same network interface that
568+
// the RPC server is bound on).
564569
hbase_site_config.insert(
565-
"hbase.info.port".to_string(),
566-
"${HBASE_INFO_PORT}".to_string(),
570+
"hbase.client.rpc.bind.address".to_string(),
571+
"false".to_string(),
567572
);
568573

569574
match hbase_role {
@@ -584,6 +589,10 @@ fn build_rolegroup_config_map(
584589
"hbase.master.port".to_string(),
585590
"${HBASE_SERVICE_PORT}".to_string(),
586591
);
592+
hbase_site_config.insert(
593+
"hbase.master.bound.info.port".to_string(),
594+
"${HBASE_INFO_PORT}".to_string(),
595+
);
587596
}
588597
HbaseRole::RegionServer => {
589598
hbase_site_config.insert(
@@ -602,6 +611,10 @@ fn build_rolegroup_config_map(
602611
"hbase.regionserver.port".to_string(),
603612
"${HBASE_SERVICE_PORT}".to_string(),
604613
);
614+
hbase_site_config.insert(
615+
"hbase.regionserver.bound.info.port".to_string(),
616+
"${HBASE_INFO_PORT}".to_string(),
617+
);
605618
}
606619
HbaseRole::RestServer => {}
607620
};

0 commit comments

Comments
 (0)