Manno15 commented on a change in pull request #2228:
URL: https://github.com/apache/accumulo/pull/2228#discussion_r686238655



##########
File path: 
server/base/src/main/java/org/apache/accumulo/server/init/Initialize.java
##########
@@ -279,9 +267,8 @@ static boolean checkInit(VolumeManager fs, 
SiteConfiguration sconf, Configuratio
       return false;
     }
     if 
(sconf.get(Property.INSTANCE_SECRET).equals(Property.INSTANCE_SECRET.getDefaultValue()))
 {
-      LineReader c = getLineReader();
-      var w = c.getTerminal().writer();
-      c.getTerminal().puts(InfoCmp.Capability.bell);
+      Console c = System.console();

Review comment:
       I was more thinking of something like this: 
   
   ```java
         System.out.println();
         System.out.println();
         System.out.println("Warning!!! Your instance secret is still set to 
the default,"
             + " this is not secure. We highly recommend you change it.");
         System.out.println();
         System.out.println();
         System.out.println("You can change the instance secret in accumulo by 
using:");
         System.out.println("   bin/accumulo " + 
org.apache.accumulo.server.util.ChangeSecret.class.getName());
         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");
   
   
   ```
   
   since all this is trying to do is print those messages to screen. 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to