try {
InitializationUtils.discoverNodesIfNeeded(settings, log);
InitializationUtils.discoverEsVersion(settings, log);
} catch (IOException ex) {
throw new EsHadoopIllegalStateException("Cannot discover Elasticsearch information", ex);
}
InitializationUtils.setValueWriterIfNotSet(settings, CascadingValueWriter.class, log);
InitializationUtils.setValueReaderIfNotSet(settings, JdkValueReader.class, log);
InitializationUtils.setBytesConverterIfNeeded(settings, CascadingLocalBytesConverter.class, log);