Skip to content

Commit 315565d

Browse files
committed
fix(docs): remove redudant module and function headers
1 parent 64f65c6 commit 315565d

2 files changed

Lines changed: 0 additions & 17 deletions

File tree

rust/operator-binary/src/controller/build/properties/core_site.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
//! Builder for `core-site.xml`.
2-
//!
3-
//! Only emitted when Kerberos is enabled without an HDFS backend (resolved during
4-
//! validation as [`ValidatedClusterConfig::needs_kerberos_core_site`]), in which case
5-
//! `hadoop.security.authentication=kerberos` is required.
62
73
use std::collections::BTreeMap;
84

95
use crate::controller::ValidatedClusterConfig;
106

117
const HADOOP_SECURITY_AUTHENTICATION: &str = "hadoop.security.authentication";
128

13-
/// Returns the `core-site.xml` properties, or `None` if the file should be omitted.
149
pub fn build(cluster_config: &ValidatedClusterConfig) -> Option<BTreeMap<String, String>> {
1510
if cluster_config.needs_kerberos_core_site {
1611
let mut data = BTreeMap::new();

rust/operator-binary/src/controller/build/properties/hive_site.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
11
//! Builder for `hive-site.xml`.
2-
//!
3-
//! Precedence:
4-
//! 1. Defaults: `hive.metastore.port=9083`.
5-
//! 2. Automatic / operator-injected: warehouse dir (hardcoded `/stackable/warehouse`),
6-
//! metrics enabled (`true`), JDBC driver/url/credentials, S3, Kerberos, OPA.
7-
//! 3. Spec: `warehouseDir` from the merged config overrides the hardcoded warehouse dir.
8-
//! 4. User `hive-site.xml` overrides (highest precedence).
9-
//!
10-
//! All inputs are read from the validated [`ValidatedClusterConfig`]; this builder never
11-
//! touches the raw `HiveCluster` spec.
12-
132
use std::collections::BTreeMap;
143

154
use snafu::{ResultExt, Snafu};
@@ -47,7 +36,6 @@ pub enum Error {
4736

4837
type Result<T, E = Error> = std::result::Result<T, E>;
4938

50-
/// Build the `hive-site.xml` key/value pairs.
5139
pub fn build(
5240
cluster_config: &ValidatedClusterConfig,
5341
product_version: &str,

0 commit comments

Comments
 (0)