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

The configuration of the hbaseRootdir at the role level is ignored #555

Open
siegfriedweber opened this issue Sep 4, 2024 · 1 comment
Labels

Comments

@siegfriedweber
Copy link
Member

Affected Stackable version

24.7.0

Affected Apache HBase version

2.4.18, 2.6.0

Current and expected behavior

The configuration of the hbaseRootdir at the role level is ignored:

---
apiVersion: hbase.stackable.tech/v1alpha1
kind: HbaseCluster
spec:
  masters:
    config:
      hbaseRootdir: /test

The hbase-operator generates the following ConfigMap:

---
apiVersion: v1
kind: ConfigMap
data:
  hbase-site.xml: |-
    <?xml version="1.0"?>
    <configuration>
      <property>
        <name>hbase.rootdir</name>
        <value>/hbase</value>
      </property>
    </configuration>

The configuration at the role-group level works as expected:

---
apiVersion: hbase.stackable.tech/v1alpha1
kind: HbaseCluster
spec:
  masters:
    roleGroups:
      default:
        config:
          hbaseRootdir: /test

The hbase-operator generates the following ConfigMap:

---
apiVersion: v1
kind: ConfigMap
data:
  hbase-site.xml: |-
    <?xml version="1.0"?>
    <configuration>
      <property>
        <name>hbase.rootdir</name>
        <value>/test</value>
      </property>
    </configuration>

Other configuration properties could be affected as well.

Possible solution

No response

Additional context

No response

Environment

No response

Would you like to work on fixing this bug?

None

@sbernauer
Copy link
Member

sbernauer commented Oct 2, 2024

Issues is still present, was not fixed by stackabletech/operator-rs#841
Bug is related to product-config and is here:

result.insert(
HBASE_ROOTDIR.to_string(),
Some(
self.hbase_rootdir
.as_deref()
.unwrap_or(HBASE_ROOT_DIR_DEFAULT)
.to_string(),
),
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants