Example usage for org.apache.hadoop.mapred JobConf reloadConfiguration

List of usage examples for org.apache.hadoop.mapred JobConf reloadConfiguration

Introduction

In this page you can find the example usage for org.apache.hadoop.mapred JobConf reloadConfiguration.

Prototype

public synchronized void reloadConfiguration() 

Source Link

Document

Reload configuration from previously added resources.

Usage

From source file:org.wonderbee.elasticsearch.hive.ElasticSearchHiveInputFormat.java

License:Apache License

@Override
public RecordReader getRecordReader(InputSplit inputSplit, JobConf conf, Reporter reporter) throws IOException {
    ElasticSearchRecordReader reader = new ElasticSearchRecordReader();
    LOG.info("getRecordReader called with conf containing hostport " + conf.get(ES_HOSTPORT));
    conf.reloadConfiguration();
    reader.initialize(inputSplit, conf);
    return reader;
}