I tried including this to workflow.xml. But still I'm getting the same
result.
<property>
<name>oozie.launcher.mapreduce.task.classpath.user.precedence</name>
<value>true</value>
</property>
On Mon, Jan 18, 2016 at 6:01 PM, Asanka Sanjaya Herath <[email protected]>
wrote:
> Hi,
>
> It seems like at the begining of the Oozie launcher, Oozie
> copy httpcore-4.2.4.jar which is located in
> hdfs://ip:port/user/oozie/share/lib/lib_20151027124452/oozie/ to the class
> path. But EWS java API is requesting httpcore-4.4.1.jar. So there are two
> different versions of jar files loaded in class path. Is there a way to
> ignore the jar file loaded by Oozie?
>
> On Mon, Jan 18, 2016 at 10:08 AM, Asanka Sanjaya Herath <
> [email protected]> wrote:
>
>> Hi,
>>
>> I'm trying to run an Oozie job which try to create a connection to
>> Microsoft exchange server. But I get following exception. When I run it
>> without Oozie it works just fine. Any help is appreciated.
>>
>> Failing Oozie Launcher, Main class
>> [org.apache.oozie.action.hadoop.JavaMain], main() threw exception,
>> java.lang.NoSuchFieldError: INSTANCE
>> org.apache.oozie.action.hadoop.JavaMainException:
>> java.lang.NoSuchFieldError: INSTANCE
>> at org.apache.oozie.action.hadoop.JavaMain.run(JavaMain.java:59)
>> at org.apache.oozie.action.hadoop.LauncherMain.run(LauncherMain.java:47)
>> at org.apache.oozie.action.hadoop.JavaMain.main(JavaMain.java:35)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:606)
>> at
>> org.apache.oozie.action.hadoop.LauncherMapper.map(LauncherMapper.java:236)
>> at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:54)
>> at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:453)
>> at org.apache.hadoop.mapred.MapTask.run(MapTask.java:343)
>> at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:164)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at javax.security.auth.Subject.doAs(Subject.java:415)
>> at
>> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
>> at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:158)
>> Caused by: java.lang.NoSuchFieldError: INSTANCE
>> at
>> org.apache.http.conn.ssl.SSLConnectionSocketFactory.<clinit>(SSLConnectionSocketFactory.java:144)
>> at
>> microsoft.exchange.webservices.data.core.ExchangeServiceBase.createConnectionSocketFactoryRegistry(ExchangeServiceBase.java:244)
>> at
>> microsoft.exchange.webservices.data.core.ExchangeServiceBase.initializeHttpClient(ExchangeServiceBase.java:198)
>> at
>> microsoft.exchange.webservices.data.core.ExchangeServiceBase.<init>(ExchangeServiceBase.java:174)
>> at
>> microsoft.exchange.webservices.data.core.ExchangeServiceBase.<init>(ExchangeServiceBase.java:179)
>> at
>> microsoft.exchange.webservices.data.core.ExchangeService.<init>(ExchangeService.java:3729)
>> at
>> com.sonasoft.sonacloud.email.dispatcher.conn.EwsConnection.getConnection(EwsConnection.java:16)
>> at
>> com.sonasoft.sonacloud.email.dispatcher.conn.EwsConnection.getConnection(EwsConnection.java:10)
>> at
>> com.sonasoft.sonacloud.email.dispatcher.utils.EwsOperations.<init>(EwsOperations.java:47)
>> at
>> com.sonasoft.sonacloud.email.dispatcher.utils.EwsOperations.getInstance(EwsOperations.java:53)
>> at
>> com.sonasoft.sonacloud.email.dispatcher.main.MainClass.main(MainClass.java:41)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:606)
>> at org.apache.oozie.action.hadoop.JavaMain.run(JavaMain.java:56)
>> ... 15 more
>>
>>
>> --
>> Thanks,
>> Regards,
>> ASH
>>
>
>
>
> --
> Thanks,
> Regards,
> ASH
>
--
Thanks,
Regards,
ASH