public final class EsMapReduceUtil extends Object
Modifier and Type | Method and Description |
---|---|
static void |
initCredentials(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.
|
static void |
initCredentials(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.
|
public static void initCredentials(Job job)
job
- for collecting the settings to connect to Elasticsearch, as well as for storing the authentication tokenpublic static void initCredentials(JobConf jobConf)
jobConf
- containing the settings to connect to Elasticsearch, as well as for storing the authentication token