mirror of
https://github.com/Graylog2/graylog2-server.git
synced 2026-03-13 09:32:21 +08:00
DataNode: using hostname as node name default (#17025)
* using the hostname as the default node-name, if none was specified explicitly * using the hostname as the default node-name, if none was specified explicitly * using the hostname as the default node-name, if none was specified explicitly * nodeName is either set explicitly in the conf file or will be the result of the hostname setting otherwise * small refactoring
This commit is contained in:
@@ -310,7 +310,7 @@ public class Configuration extends BaseConfiguration {
|
||||
}
|
||||
|
||||
public String getDatanodeNodeName() {
|
||||
return datanodeNodeName;
|
||||
return datanodeNodeName != null && !datanodeNodeName.isBlank() ? datanodeNodeName : getHostname();
|
||||
}
|
||||
|
||||
public String getInitialManagerNodes() {
|
||||
|
||||
Reference in New Issue
Block a user