Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove sed calls to replace KERBEROS_REALM as they are not needed any more when HBase is built against Hadoop 3 #531

Merged
merged 15 commits into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,14 @@
- Bump `stackable-operator` from `0.64.0` to `0.70.0` ([#524]).
- Bump `product-config` from `0.6.0` to `0.7.0` ([#524]).
- Bump other dependencies ([#527]).
- Remove sed calls to replace KRB REALM in configuration. IMPORTANT: This means the operator will ONLY work
with HBase versions that are compiled against Hadoop 3.x as of now ([#531])

[#506]: https://github.com/stackabletech/hbase-operator/pull/506
[#523]: https://github.com/stackabletech/hbase-operator/pull/523
[#524]: https://github.com/stackabletech/hbase-operator/pull/524
[#527]: https://github.com/stackabletech/hbase-operator/pull/527
[#531]: https://github.com/stackabletech/hbase-operator/pull/531

## [24.3.0] - 2024-03-20

Expand Down
8 changes: 2 additions & 6 deletions rust/operator-binary/src/kerberos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ use std::collections::BTreeMap;
use indoc::formatdoc;
use snafu::{OptionExt, ResultExt, Snafu};
use stackable_hbase_crd::{
HbaseCluster, HbaseRole, CONFIG_DIR_NAME, TLS_STORE_DIR, TLS_STORE_PASSWORD,
TLS_STORE_VOLUME_NAME,
HbaseCluster, HbaseRole, TLS_STORE_DIR, TLS_STORE_PASSWORD, TLS_STORE_VOLUME_NAME,
};
use stackable_operator::{
builder::pod::{
Expand Down Expand Up @@ -269,10 +268,7 @@ pub fn kerberos_container_start_commands(hbase: &HbaseCluster) -> String {
}

formatdoc! {"
export KERBEROS_REALM=$(grep -oP 'default_realm = \\K.*' /stackable/kerberos/krb5.conf)
sed -i -e 's/${{env.KERBEROS_REALM}}/'\"$KERBEROS_REALM/g\" {CONFIG_DIR_NAME}/core-site.xml
sed -i -e 's/${{env.KERBEROS_REALM}}/'\"$KERBEROS_REALM/g\" {CONFIG_DIR_NAME}/hbase-site.xml
sed -i -e 's/${{env.KERBEROS_REALM}}/'\"$KERBEROS_REALM/g\" {CONFIG_DIR_NAME}/hdfs-site.xml",
export KERBEROS_REALM=$(grep -oP 'default_realm = \\K.*' /stackable/kerberos/krb5.conf)"
}
}

Expand Down
Loading