Package org.elasticsearch.hadoop.mr
Class EsMapReduceUtil
java.lang.Object
org.elasticsearch.hadoop.mr.EsMapReduceUtil
Utility functions for setting up Map Reduce Jobs to read and write from Elasticsearch.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidinitCredentials(JobConf jobConf) Given the settings contained within the job conf, retrieve an authentication token from either the currently logged in user or from the Elasticsearch cluster and add it to the job's credential set.static voidinitCredentials(Job job) Given the settings contained within a job object, retrieve an authentication token from either the currently logged in user or from the Elasticsearch cluster and add it to the job's credential set.
-
Method Details
-
initCredentials
Given the settings contained within a job object, retrieve an authentication token from either the currently logged in user or from the Elasticsearch cluster and add it to the job's credential set.- Parameters:
job- for collecting the settings to connect to Elasticsearch, as well as for storing the authentication token
-
initCredentials
Given the settings contained within the job conf, retrieve an authentication token from either the currently logged in user or from the Elasticsearch cluster and add it to the job's credential set.- Parameters:
jobConf- containing the settings to connect to Elasticsearch, as well as for storing the authentication token
-