Fixes Wonderdog Pig 0.10 compatability issues and issues 5, 6, 7 and PIG-2792 #8

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@rjurney
rjurney commented Jul 7, 2012

Two line commit that tries the conf object if the hadoop cache config call misses.

Fixes https://issues.apache.org/jira/browse/PIG-2792 #5 #6 #7

@matpalm matpalm commented on the diff Jul 9, 2012
...fochimps/elasticsearch/ElasticSearchOutputFormat.java
@@ -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));
@matpalm
matpalm Jul 9, 2012

use consts ES_CONFIG & ES_PLUGINS instead of "es.config" & "es.path.plugins" ?

@rjurney rjurney closed this Jul 9, 2012
@rjurney
rjurney commented Jul 9, 2012

I am going to use ES_CONFIG, etc. in the setter too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment