stackabletech / hbase-operator

Kubernetes Operator for Apache HBase built by Stackable for the Stackable Data Platform
https://stackable.tech
Other
16 stars 4 forks source link

Support Azure Data Lake Storage Gen2 (ADLS) #539

Closed siegfriedweber closed 1 month ago

siegfriedweber commented 3 months ago

Support Azure Data Lake Storage Gen2 (ADLS)

Required changes in the cluster spec

ADLS replaces HDFS. A custom "HDFS" ConfigMap can be used instead of the one provided by an HDFS cluster.

---
apiVersion: v1
kind: ConfigMap
metadata:
  name: adls
data:
  core-site.xml: |-
    <?xml version="1.0"?>
    <configuration>
      <property>
        <name>fs.defaultFS</name>
        <value>abfs://<container-name>@<storage-account>.dfs.core.windows.net/</value>
      </property>
      <property>
        <name>fs.azure.account.auth.type.<storage-account>.dfs.core.windows.net</name>
        <value>SAS</value>
      </property>
      <property>
        <name>fs.azure.sas.fixed.token.<storage-account>.dfs.core.windows.net</name>
        <value>${env.SAS_TOKEN}</value>
      </property>
      <!-- further properties, e.g.: -->
      <property>
        <name>hadoop.rpc.protection</name>
        <value>privacy</value>
      </property>
      <property>
        <name>hadoop.security.authentication</name>
        <value>kerberos</value>
      </property>
    </configuration>
  hdfs-site.xml: |-
    <?xml version="1.0"?>
    <configuration>
    </configuration>

Required changes in the image

These changes were already made as a test in https://github.com/stackabletech/docker-images/commit/7314d4f194603408f00b555c2e98ff956c212d85.

Tasks