There might be a better way to approach this. 

You can add the following to the top-level pom.xml in the repositories section: 

    <repository>
      <id>cloudera-repo</id>
      <name>Cloudera Repository</name>
      <url>https://repository.cloudera.com/artifactory/cloudera-repos</url>
      <releases>
        <enabled>true</enabled>
      </releases>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
    </repository>

Change hadoop.version in the pom.xml to match the CDH 5.2 release. 

Build tez using the following: “-Phadoop24 -P\!hadoop26” i.e. run with the 
hadoop-2.4 profile which is compatible with 2.4 and 2.5. 

The jackson issue might still hold but you should be able to easily modify the 
jackson version in the top level pom as needed. 

Feel free to contribute the above back to Tez by creating a patch that put 
these changes under a maven profile. 

thanks
— Hitesh 


On Jun 4, 2015, at 6:00 PM, Jianfeng (Jeff) Zhang <jzh...@hortonworks.com> 
wrote:

> 
> Tez use jackson 1.9.13, maybe you could try to use 1.9.13 replace 1.8.8. 
> Please backup the 1.8.8 jars before you replace it :)
> 
> 
> 
> Best Regard,
> Jeff Zhang
> 
> 
> From: "r7raul1...@163.com" <r7raul1...@163.com>
> Reply-To: user <user@tez.apache.org>
> Date: Friday, June 5, 2015 at 8:38 AM
> To: user <user@tez.apache.org>
> Subject: Re: Re: hive 1.1.0+tez0.7+hadoop2.5.0-cdh5.2.0 when use TEZ UI throw 
> exception
> 
> /opt/cloudera/parcels/CDH-5.2.0-1.cdh5.2.0.p0.36/lib/hadoop-yarn/lib/jackson-mapper-asl-1.8.8.jar
>  
> /opt/cloudera/parcels/CDH-5.2.0-1.cdh5.2.0.p0.36/lib/hadoop-yarn/lib/jackson-jaxrs-1.8.8.jar
>  
> /opt/cloudera/parcels/CDH-5.2.0-1.cdh5.2.0.p0.36/lib/hadoop-yarn/lib/jackson-core-asl-1.8.8.jar
>  
> /opt/cloudera/parcels/CDH-5.2.0-1.cdh5.2.0.p0.36/lib/hadoop-yarn/lib/jackson-xc-1.8.8.jar
>  
> 
> r7raul1...@163.com
>  
> From: Prakash Ramachandran
> Date: 2015-06-04 17:21
> To: user
> Subject: Re: hive 1.1.0+tez0.7+hadoop2.5.0-cdh5.2.0 when use TEZ UI throw 
> exception
> I have faced this issue when there was a mismatch in the jackson version 
> (jackson 1.8 api not compatible with 1.9 api – due to abstract class)
> Not sure what the exact problem is in this case – can you check the version 
> used by hive against the one in hadoop2.5.0-cdh5.2.0
> 
> From: "r7raul1...@163.com"
> Reply-To: user
> Date: Thursday, June 4, 2015 at 2:05 PM
> To: user
> Subject: hive 1.1.0+tez0.7+hadoop2.5.0-cdh5.2.0 when use TEZ UI throw 
> exception
> 
> My tez-site.xml is :
> ....
> <property> 
> <description>Log history using the Timeline Server</description> 
> <name>tez.history.logging.service.class</name> 
> <value>org.apache.tez.dag.history.logging.ats.ATSHistoryLoggingService</value>
>  
> </property> 
> <property> 
> <description>Publish configuration information to Timeline 
> server.-XX:+UseParallelGC -XX:+UseG1GC </description> 
> <name>tez.runtime.convert.user-payload.to.history-text</name> 
> <value>true</value> 
> </property> 
> <property> 
> <name>tez.allow.disabled.timeline-domains</name> 
> <value>true</value> 
> </property>
> .....
> 
> When run query . I see error in log:
> 2015-06-04 16:28:15,246 INFO 
> [ServiceThread:org.apache.tez.dag.app.web.WebUIService] mortbay.log: 
> jetty-6.1.26
> 2015-06-04 16:28:15,265 INFO 
> [ServiceThread:org.apache.tez.dag.app.web.WebUIService] mortbay.log: Extract 
> jar:file:/yarn/nm/filecache/50/tez-0.7.0.tar.gz/lib/hadoop-yarn-common-2.5.0-cdh5.2.5.jar!/webapps/
>  to /tmp/Jetty_0_0_0_0_62340_webapps____.pc2ela/webapp
> 2015-06-04 16:28:15,320 FATAL [HistoryEventHandlingThread] 
> yarn.YarnUncaughtExceptionHandler: Thread 
> Thread[HistoryEventHandlingThread,5,main] threw an Error.  Shutting down 
> now...
> java.lang.AbstractMethodError: 
> org.codehaus.jackson.map.AnnotationIntrospector.findSerializer(Lorg/codehaus/jackson/map/introspect/Annotated;)Ljava/lang/Object;
>       at 
> org.codehaus.jackson.map.ser.BasicSerializerFactory.findSerializerFromAnnotation(BasicSerializerFactory.java:362)
>       at 
> org.codehaus.jackson.map.ser.BeanSerializerFactory.createSerializer(BeanSerializerFactory.java:252)
>       at 
> org.codehaus.jackson.map.ser.StdSerializerProvider._createUntypedSerializer(StdSerializerProvider.java:782)
>       at 
> org.codehaus.jackson.map.ser.StdSerializerProvider._createAndCacheUntypedSerializer(StdSerializerProvider.java:735)
>       at 
> org.codehaus.jackson.map.ser.StdSerializerProvider.findValueSerializer(StdSerializerProvider.java:344)
>       at 
> org.codehaus.jackson.map.ser.StdSerializerProvider.findTypedValueSerializer(StdSerializerProvider.java:420)
>       at 
> org.codehaus.jackson.map.ser.StdSerializerProvider._serializeValue(StdSerializerProvider.java:601)
>       at 
> org.codehaus.jackson.map.ser.StdSerializerProvider.serializeValue(StdSerializerProvider.java:256)
>       at 
> org.codehaus.jackson.map.ObjectMapper.writeValue(ObjectMapper.java:1604)
>       at 
> org.codehaus.jackson.jaxrs.JacksonJsonProvider.writeTo(JacksonJsonProvider.java:527)
>       at 
> com.sun.jersey.api.client.RequestWriter.writeRequestEntity(RequestWriter.java:300)
>       at 
> com.sun.jersey.client.urlconnection.URLConnectionClientHandler._invoke(URLConnectionClientHandler.java:204)
>       at 
> com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:147)
>       at com.sun.jersey.api.client.Client.handle(Client.java:648)
>       at com.sun.jersey.api.client.WebResource.handle(WebResource.java:670)
>       at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
>       at 
> com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:563)
>       at 
> org.apache.hadoop.yarn.client.api.impl.TimelineClientImpl.doPostingEntities(TimelineClientImpl.java:175)
>       at 
> org.apache.hadoop.yarn.client.api.impl.TimelineClientImpl.putEntities(TimelineClientImpl.java:141)
>       at 
> org.apache.tez.dag.history.logging.ats.ATSHistoryLoggingService.handleEvents(ATSHistoryLoggingService.java:342)
>       at 
> org.apache.tez.dag.history.logging.ats.ATSHistoryLoggingService.access$700(ATSHistoryLoggingService.java:52)
>       at 
> org.apache.tez.dag.history.logging.ats.ATSHistoryLoggingService$1.run(ATSHistoryLoggingService.java:186)
>       at java.lang.Thread.run(Thread.java:745)
> 
> 
> BTW I build tez0.7 on hadoop2.5.0-cdh5.2.5 and comment 
> <!--<module>tez-yarn-timeline-history-with-acls</module>--> in 
> tez-plugins/pom.xml. 
> r7raul1...@163.com

Reply via email to