Commit 1eb09478 authored by Yann Mombrun's avatar Yann Mombrun

Hide JMX connection recheck error messages. Fix a few other logs

parent 30ab46f6
......@@ -188,11 +188,10 @@ public class Launcher {
} else if ("reset".equals(commandOrServerName)) {
Launcher.logger.info("Before resetting, stopping everything...");
serverManager.stop(null, force);
Launcher.logger.info("Before resetting, restarting only ActiveMQ, Zookeeper and Solr servers when enabled...");
Launcher.logger.info("Before resetting, starting only ActiveMQ, Zookeeper and Solr servers when enabled...");
Launcher.startAMQ();
Launcher.startAllZoo();
Launcher.startAllSolr();
Launcher.logger.info("Resetting...");
Launcher.reset();
Launcher.logger.info("Stopping everything....");
serverManager.stop(null, force);
......@@ -306,7 +305,7 @@ public class Launcher {
if (solrServers.isEmpty() || zooServers.isEmpty()) {
Launcher.logger.debug("No SOLR/ZOOKEEPER servers. No need to reset.");
} else {
Launcher.logger.info("Before resetting, check status of Solr and Zookeeper processed data.");
Launcher.logger.info("Before resetting, check status of Solr and Zookeeper servers.");
// solr index
HashMap<String, HashMap<String, String>> initCollections = null;
......
......@@ -644,6 +644,7 @@ public class ProcessUtils {
final JMXServiceURL url = new JMXServiceURL("service:jmx:rmi:///jndi/rmi://" + host + ":" + port + "/" + path);
final Hashtable<String, Object> env = new Hashtable<>();
env.put("java.naming.factory.initial", "com.sun.jndi.rmi.registry.RegistryContextFactory");
env.put("jmx.remote.x.client.connection.check.period", Long.valueOf(0));
if ((password != null) && !password.equals("")) {
env.put(JMXConnector.CREDENTIALS, new String[] { login, password });
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment