Hi Dewei, Unfortunately, simply changing that field in the main pom isn’t enough to switch Hadoop versions; though there not too much else that has to change.
However, we actually have a “hadoop-2” profile that takes care of this. Instead of changing <hadoop.version> manually, try activating the “hadoop-2” profile. As of OOZIE-1551, which was committed to trunk on Oct 24, this profile should be pointing at the 2.2.0 GA. - Robert On Mon, Nov 11, 2013 at 9:27 PM, DEWEI SUN <[email protected]> wrote: > Hi all, > > I tried to build Oozie 4.1.0 from the trunk and change the pom.xml to > compile against Hadoop 2.2.0: > > <hadoop.version>2.2.0</hadoop.version> > > > Here is the error I got and looks like the Oozie source code depends on the > UserGroupInformation class that has changed the constructor singature. > > Is it possible to fix this from the Oozie dev side? > > Thanks. > > Dewei > > > Tests in error: > testCoordStore(org.apache.oozie.store.TestCoordinatorStore): Could not > initialize class org.apache.hadoop.security.UserGroupInformation > testGenerateCreateScript(org.apache.oozie.util.db.TestSchema): Could not > initialize class org.apache.hadoop.security.UserGroupInformation > testRegisterUnregister(org.apache.oozie.service.TestZKLocksService): > Could not initialize class org.apache.hadoop.security.UserGroupInformation > testWaitWriteLockOozies(org.apache.oozie.service.TestZKLocksService): > Could not initialize class org.apache.hadoop.security.UserGroupInformation > testNoWaitWriteLockThreads(org.apache.oozie.service.TestZKLocksService): > Could not initialize class org.apache.hadoop.security.UserGroupInformation > testNoWaitWriteLockOozies(org.apache.oozie.service.TestZKLocksService): > Could not initialize class org.apache.hadoop.security.UserGroupInformation > > > testTimeoutWaitingWriteLockThreads(org.apache.oozie.service.TestZKLocksService): > Could not initialize class org.apache.hadoop.security.UserGroupInformation > > > testTimeoutWaitingWriteLockOozies(org.apache.oozie.service.TestZKLocksService): > Could not initialize class org.apache.hadoop.security.UserGroupInformation > > > testTimeoutTimingOutWriteLockThreads(org.apache.oozie.service.TestZKLocksService): > Could not initialize class org.apache.hadoop.security.UserGroupInformation > > > testTimeoutTimingOutWriteLockOozies(org.apache.oozie.service.TestZKLocksService): > Could not initialize class org.apache.hadoop.security.UserGroupInformation > testReadLockOozies(org.apache.oozie.service.TestZKLocksService): Could > not initialize class org.apache.hadoop.security.UserGroupInformation > testReadWriteLockThreads(org.apache.oozie.service.TestZKLocksService): > Could not initialize class org.apache.hadoop.security.UserGroupInformation >
