zjffdu commented on a change in pull request #3390: [ZEPPELIN-3784] Cluster 
management web page
URL: https://github.com/apache/zeppelin/pull/3390#discussion_r299527947
 
 

 ##########
 File path: 
zeppelin-interpreter/src/main/java/org/apache/zeppelin/cluster/ClusterManagerServer.java
 ##########
 @@ -210,6 +208,14 @@ public BroadcastService getBroadcastService() {
         messagingService.registerHandler(CLUSTER_AUTH_EVENT_TOPIC,
             subscribeClusterAuthEvent, MoreExecutors.directExecutor());
 
+        HashMap<String, Object> meta = new HashMap<String, Object>();
+        String nodeName = getClusterNodeName();
+        meta.put(ClusterMeta.NODE_NAME, nodeName);
+        meta.put(ClusterMeta.SERVER_HOST, zeplServerHost);
+        meta.put(ClusterMeta.SERVER_PORT, raftServerPort);
+        meta.put(ClusterMeta.SERVER_START_TIME, new Date());
 
 Review comment:
   We should not use old date api java.util.Date, either we use the new Date 
api in java 8 or joda 
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to