@@ -901,19 +901,12 @@ fn build_rolegroup_statefulset(
901
901
. image_from_product_image ( resolved_product_image)
902
902
. command ( command ( ) )
903
903
. args ( vec ! [ formatdoc! { "
904
- {wait}
905
- {list}
906
- {update_host}
907
- {update_port}
908
- {entrypoint} {role} {domain} {port}" ,
909
- wait = "until [ -f /stackable/conf/hbase-site.xml ]; do sleep 1; done;" . to_string( ) ,
910
- list = "ls -al /stackable/conf/hbase-site.xml" . to_string( ) ,
911
- update_host = "sed -i 's|\\ ${HBASE_SERVICE_HOST}|${HBASE_SERVICE_HOST}|g' /stackable/conf/hbase-site.xml" . to_string( ) ,
912
- update_port = "sed -i 's|\\ ${HBASE_SERVICE_PORT}|${HBASE_SERVICE_PORT}|g' /stackable/conf/hbase-site.xml" . to_string( ) ,
904
+ {entrypoint} {role} {domain} {port} {port_name}" ,
913
905
entrypoint = "/stackable/hbase/bin/hbase-entrypoint.sh" . to_string( ) ,
914
906
role = role_name,
915
907
domain = hbase_service_domain_name( hbase, rolegroup_ref, cluster_info) ?,
916
908
port = hbase. service_port( hbase_role) . to_string( ) ,
909
+ port_name = hbase. ui_port_name( ) ,
917
910
} ] )
918
911
. add_env_vars ( merged_env)
919
912
// Needed for the `containerdebug` process to log it's tracing information to.
@@ -1177,16 +1170,6 @@ fn build_hbase_env_sh(
1177
1170
let role_specific_non_heap_jvm_args =
1178
1171
construct_role_specific_non_heap_jvm_args ( hbase, hbase_role, role_group, product_version)
1179
1172
. context ( ConstructJvmArgumentSnafu ) ?;
1180
- let port_name = & hbase. ui_port_name ( ) ;
1181
-
1182
- result. insert (
1183
- "HBASE_SERVICE_HOST" . to_owned ( ) ,
1184
- format ! ( "$(cat {LISTENER_VOLUME_DIR}/default-address/address)" ) ,
1185
- ) ;
1186
- result. insert (
1187
- "HBASE_SERVICE_PORT" . to_owned ( ) ,
1188
- format ! ( "$(cat {LISTENER_VOLUME_DIR}/default-address/ports/{port_name})" ) ,
1189
- ) ;
1190
1173
1191
1174
match hbase_role {
1192
1175
HbaseRole :: Master => {
0 commit comments