String clustername = config.getString(CLUSTER_NAME_KEY, CLUSTER_NAME_DEFAULT);
Preconditions.checkArgument(StringUtils.isNotBlank(clustername), "Invalid cluster name: %s", clustername);
builder.clusterName(clustername);
}
node = builder.client(clientOnly).data(!clientOnly).local(local).node();
client = node.client();
} else {
ImmutableSettings.Builder settings = ImmutableSettings.settingsBuilder();
if (config.containsKey(CLUSTER_NAME_KEY)) {