Skip to content

Commit

Permalink
Use constants consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernauer committed May 31, 2023
1 parent 42e2dec commit 93e0a7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion rust/crd/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ pub const DFS_HA_NAMENODES: &str = "dfs.ha.namenodes";
// core-site.xml
pub const FS_DEFAULT_FS: &str = "fs.defaultFS";
pub const HA_ZOOKEEPER_QUORUM: &str = "ha.zookeeper.quorum";
pub const HADOOP_SECURITY_AUTHENTICATION: &str = "hadoop.security.authentication";

pub const STACKABLE_ROOT_DATA_DIR: &str = "/stackable/data";
pub const NAMENODE_ROOT_DATA_DIR: &str = "/stackable/data/namenode";
Expand Down
4 changes: 2 additions & 2 deletions rust/operator/src/kerberos.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use stackable_hdfs_crd::{
constants::{HADOOP_SECURITY_AUTHENTICATION, SSL_CLIENT_XML, SSL_SERVER_XML},
constants::{SSL_CLIENT_XML, SSL_SERVER_XML},
HdfsCluster,
};
use stackable_operator::commons::product_image_selection::ResolvedProductImage;
Expand Down Expand Up @@ -116,7 +116,7 @@ impl CoreSiteConfigBuilder {

pub fn security_discovery_config(&mut self, hdfs: &HdfsCluster) -> &mut Self {
if hdfs.has_kerberos_enabled() {
self.add(HADOOP_SECURITY_AUTHENTICATION, "kerberos");
self.add("hadoop.security.authentication", "kerberos");
self.add_wire_encryption_settings();
}
self
Expand Down

0 comments on commit 93e0a7c

Please sign in to comment.