Skip to content

Commit b98af46

Browse files
authored
Update NameNodeScript.java
1 parent ac2b0db commit b98af46

File tree

1 file changed

+1
-8
lines changed
  • bigtop-manager-stack/bigtop-manager-stack-bigtop/src/main/java/org/apache/bigtop/manager/stack/bigtop/v3_3_0/hadoop

1 file changed

+1
-8
lines changed

bigtop-manager-stack/bigtop-manager-stack-bigtop/src/main/java/org/apache/bigtop/manager/stack/bigtop/v3_3_0/hadoop/NameNodeScript.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,6 @@ public ShellResult start(Params params) {
7979
}
8080
}
8181

82-
/**
83-
* 在启用 HA 流程中由 server 侧通过 custom command 调用:初始化 shared edits
84-
*/
8582
public ShellResult initializeSharedEdits(Params params) {
8683
configure(params);
8784
HadoopParams hadoopParams = (HadoopParams) params;
@@ -96,18 +93,14 @@ public ShellResult initializeSharedEdits(Params params) {
9693

9794
String cmd = MessageFormat.format(
9895
"{0}/hdfs --config {1} namenode -initializeSharedEdits -nonInteractive",
99-
hadoopParams.binDir(),
100-
hadoopParams.confDir());
96+
hadoopParams.binDir(), hadoopParams.confDir());
10197
try {
10298
return LinuxOSUtils.sudoExecCmd(cmd, hadoopParams.user());
10399
} catch (Exception e) {
104100
throw new StackException(e);
105101
}
106102
}
107103

108-
/**
109-
* 在启用 HA 流程中由 server 侧通过 custom command 调用:bootstrap standby
110-
*/
111104
public ShellResult bootstrapStandby(Params params) {
112105
configure(params);
113106
HadoopParams hadoopParams = (HadoopParams) params;

0 commit comments

Comments
 (0)