This is an automated email from the ASF dual-hosted git repository.
ddanielr pushed a commit to branch 2.1
in repository https://gitbox.apache.org/repos/asf/accumulo.git
The following commit(s) were added to refs/heads/2.1 by this push:
new a8dd117d24 Fixes documentation for changeSecret command (#4901)
a8dd117d24 is described below
commit a8dd117d249e071a6d92258671481e6327e09fab
Author: Daniel Roberts <[email protected]>
AuthorDate: Mon Sep 23 13:40:28 2024 -0400
Fixes documentation for changeSecret command (#4901)
Updates documentation and log message to instruct users on how to
correctly run the changeSecret command.
---
core/src/main/java/org/apache/accumulo/core/conf/Property.java | 2 +-
.../base/src/main/java/org/apache/accumulo/server/init/Initialize.java | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/core/src/main/java/org/apache/accumulo/core/conf/Property.java
b/core/src/main/java/org/apache/accumulo/core/conf/Property.java
index f20631f532..469aa9fca1 100644
--- a/core/src/main/java/org/apache/accumulo/core/conf/Property.java
+++ b/core/src/main/java/org/apache/accumulo/core/conf/Property.java
@@ -116,7 +116,7 @@ public enum Property {
+ " everywhere. Before using the ChangeSecret tool, make sure
Accumulo is not"
+ " running and you are logged in as the user that controls Accumulo
files in"
+ " HDFS. To use the ChangeSecret tool, run the command:
`./bin/accumulo"
- + " org.apache.accumulo.server.util.ChangeSecret`.",
+ + " admin changeSecret`.",
"1.3.5"),
INSTANCE_VOLUMES("instance.volumes", "", PropertyType.STRING,
"A comma separated list of dfs uris to use. Files will be stored across"
diff --git
a/server/base/src/main/java/org/apache/accumulo/server/init/Initialize.java
b/server/base/src/main/java/org/apache/accumulo/server/init/Initialize.java
index 800dcc3a94..bd8d7d3fd5 100644
--- a/server/base/src/main/java/org/apache/accumulo/server/init/Initialize.java
+++ b/server/base/src/main/java/org/apache/accumulo/server/init/Initialize.java
@@ -55,7 +55,6 @@ import
org.apache.accumulo.server.fs.VolumeChooserEnvironmentImpl;
import org.apache.accumulo.server.fs.VolumeManager;
import org.apache.accumulo.server.fs.VolumeManagerImpl;
import org.apache.accumulo.server.security.SecurityUtil;
-import org.apache.accumulo.server.util.ChangeSecret;
import org.apache.accumulo.server.util.SystemPropUtil;
import org.apache.accumulo.start.spi.KeywordExecutable;
import org.apache.commons.lang3.StringUtils;
@@ -110,7 +109,7 @@ public class Initialize implements KeywordExecutable {
System.out.println();
System.out.println();
System.out.println("You can change the instance secret in accumulo by
using:");
- System.out.println(" bin/accumulo " + ChangeSecret.class.getName());
+ System.out.println(" bin/accumulo admin changeSecret");
System.out.println("You will also need to edit your secret in your
configuration"
+ " file by adding the property instance.secret to your"
+ " accumulo.properties. Without this accumulo will not operate
correctly");