Skip to content

Commit b73e4e0

Browse files
committed
cleanup
1 parent eae44cc commit b73e4e0

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

rust/operator-binary/src/container.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,6 @@ impl ContainerConfig {
666666
}
667667
ContainerConfig::FormatNameNodes { container_name, .. } => {
668668
args.push_str(&bash_capture_shell_helper(container_name));
669-
args.push_str("start_capture\n");
670669

671670
if let Some(container_config) = merged_config.as_namenode().map(|node| {
672671
node.logging
@@ -733,7 +732,6 @@ impl ContainerConfig {
733732
}
734733
ContainerConfig::FormatZooKeeper { container_name, .. } => {
735734
args.push_str(&bash_capture_shell_helper(container_name));
736-
args.push_str("start_capture\n");
737735

738736
if let Some(container_config) = merged_config.as_namenode().map(|node| {
739737
node.logging
@@ -770,7 +768,6 @@ impl ContainerConfig {
770768
}
771769
ContainerConfig::WaitForNameNodes { container_name, .. } => {
772770
args.push_str(&bash_capture_shell_helper(container_name));
773-
args.push_str("start_capture\n");
774771

775772
if let Some(container_config) = merged_config.as_datanode().map(|node| {
776773
node.logging
@@ -794,7 +791,7 @@ impl ContainerConfig {
794791
for namenode_id in {pod_names}
795792
do
796793
echo -n "Checking pod $namenode_id... "
797-
794+
798795
# We only redirect 2 (stderr) to 4 (console).
799796
# We leave 1 (stdout) alone so the $(...) can catch it.
800797
SERVICE_STATE=$({hadoop_home}/bin/hdfs haadmin -getServiceState "$namenode_id" 2>&4 | tail -n1 || true)
@@ -1613,6 +1610,8 @@ fn bash_capture_shell_helper(container_name: &str) -> String {
16131610
exit $exit_code
16141611
fi
16151612
}}
1613+
1614+
start_capture
16161615
"###
16171616
}
16181617
}

0 commit comments

Comments
 (0)