Skip to content

Commit

Permalink
Fixed Wonderdog for Pig 0.10 by checking the conf object if the call …
Browse files Browse the repository at this point in the history
…to the hadoop cache misses
  • Loading branch information
rjurney committed Jul 9, 2012
1 parent 9db09cf commit d061ee5
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ public ElasticSearchRecordWriter(TaskAttemptContext context) {
this.objType = conf.get(ES_OBJECT_TYPE);

//
// Fetches elasticsearch.yml and the plugins directory from the distributed cache
// Fetches elasticsearch.yml and the plugins directory from the distributed cache, or
// from the local config.
//
try {
String taskConfigPath = HadoopUtils.fetchFileFromCache(ES_CONFIG_NAME, conf);
Expand All @@ -130,7 +131,8 @@ public ElasticSearchRecordWriter(TaskAttemptContext context) {
System.setProperty(ES_CONFIG, taskConfigPath);
System.setProperty(ES_PLUGINS, taskPluginsPath+SLASH+ES_PLUGINS_NAME);
} catch (Exception e) {
throw new RuntimeException(e);
System.setProperty(ES_CONFIG,conf.get(ES_CONFIG));
System.setProperty(ES_PLUGINS,conf.get(ES_PLUGINS));
}

start_embedded_client();
Expand Down

1 comment on commit d061ee5

@alexmc6
Copy link

@alexmc6 alexmc6 commented on d061ee5 Nov 5, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can anyone confirm this has actually fixed the problem and that it works fine in Pig 0.10? I am getting a versioning error which suggests it isn't

Please sign in to comment.