Package org.elasticsearch.common.settings.loader

Examples of org.elasticsearch.common.settings.loader.YamlSettingsLoader


        // Overwrite from a custom ElasticSearch config file.
        final String esConfigFilePath = conf.getElasticSearchConfigFile();
        if (esConfigFilePath != null) {
            try {
                final byte[] esSettings = Files.readAllBytes(Paths.get(esConfigFilePath));
                settings.putAll(new YamlSettingsLoader().load(esSettings));
            } catch (IOException e) {
                LOG.warn("Cannot read Elasticsearch configuration.");
            }
        }
View Full Code Here

TOP

Related Classes of org.elasticsearch.common.settings.loader.YamlSettingsLoader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.