Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Commit

Permalink
update to latest Spring Hadoop changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Costin Leau committed Oct 1, 2012
1 parent 8fe98e8 commit 850c942
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -126,7 +126,7 @@ public String script(@CliOption(key = { "", "location" }, mandatory = true, help
StringBuilder sb = new StringBuilder();

try {
sb.append(StringUtils.collectionToDelimitedString(hiveTemplate.execute(resource),
sb.append(StringUtils.collectionToDelimitedString(hiveTemplate.executeScript(resource),
StringUtils.LINE_SEPARATOR));
} catch (Exception ex) {
return "Script [" + uri + "] failed - " + ex;
Expand Down
Expand Up @@ -189,7 +189,7 @@ public String script(@CliOption(key = { "", "location" }, mandatory = true, help
init();
}

List<ExecJob> results = pigTemplate.execute(resource);
List<ExecJob> results = pigTemplate.executeScript(resource);
ExecJob result = results.get(0);
Exception exception = result.getException();
StringBuilder sb = new StringBuilder(result.getStatus().name());
Expand Down

0 comments on commit 850c942

Please sign in to comment.