Author: kamrul
Date: Wed Nov 14 01:17:18 2012
New Revision: 1409050
URL: http://svn.apache.org/viewvc?rev=1409050&view=rev
Log:
OOZIE-1052 HadoopAccessorService.createFileSystem throws exception in
map-reduce action, failing workflow.(ryota via mohammad).
Modified:
oozie/branches/hcat-intre/core/src/main/java/org/apache/oozie/action/hadoop/LauncherMapper.java
oozie/branches/hcat-intre/release-log.txt
Modified:
oozie/branches/hcat-intre/core/src/main/java/org/apache/oozie/action/hadoop/LauncherMapper.java
URL:
http://svn.apache.org/viewvc/oozie/branches/hcat-intre/core/src/main/java/org/apache/oozie/action/hadoop/LauncherMapper.java?rev=1409050&r1=1409049&r2=1409050&view=diff
==============================================================================
---
oozie/branches/hcat-intre/core/src/main/java/org/apache/oozie/action/hadoop/LauncherMapper.java
(original)
+++
oozie/branches/hcat-intre/core/src/main/java/org/apache/oozie/action/hadoop/LauncherMapper.java
Wed Nov 14 01:17:18 2012
@@ -316,8 +316,9 @@ public class LauncherMapper<K1, V1, K2,
Path p = getIdSwapPath(actionDir);
// log.debug("Checking for newId file in: [{0}]", p);
- FileSystem fs =
Services.get().get(HadoopAccessorService.class).createFileSystem(user,
p.toUri(),
-
new Configuration());
+ HadoopAccessorService has =
Services.get().get(HadoopAccessorService.class);
+ Configuration conf = has.createJobConf(p.toUri().getAuthority());
+ FileSystem fs = has.createFileSystem(user, p.toUri(), conf);
if (fs.exists(p)) {
log.debug("Hadoop Counters is null, but found newID file.");
Modified: oozie/branches/hcat-intre/release-log.txt
URL:
http://svn.apache.org/viewvc/oozie/branches/hcat-intre/release-log.txt?rev=1409050&r1=1409049&r2=1409050&view=diff
==============================================================================
--- oozie/branches/hcat-intre/release-log.txt (original)
+++ oozie/branches/hcat-intre/release-log.txt Wed Nov 14 01:17:18 2012
@@ -1,5 +1,6 @@
-- Oozie 3.4.0 release (trunk - unreleased)
+OOZIE-1052 HadoopAccessorService.createFileSystem throws exception in
map-reduce action, failing workflow.(ryota via mohammad).
OOZIE-1061 Add new EL functions to retrieve HCatalog server, DB and table
name(mohammad)
OOZIE-1056 Command to update push-based dependency (mohammad)
OOZIE-1059 Add static method to create URI String in HCatURI(ryota via
mohammad)