Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-2608

Incompatibility between Jackson1 version shipped with Phoenix, Yarn

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.7.0
    • None
    • None

    Description

      Phoenix fat client uses 1.8.8 (not shaded)
      Yarn uses 1.9.13 (not shaded, part of the timeline jar)
      Hive uses 1.9.2 (possibly shaded)

      This can cause jobs to fail when the fat phoenix client is included in the classpath. Jobs may fail with the following Exception

      016-01-14 15:41:38,893 [FATAL] [HistoryEventHandlingThread] |yarn.YarnUncaughtExceptionHandler|: Thread Thread[HistoryEventHandlingThread,5,main] threw an Error.  Shutting down now...
      java.lang.NoSuchMethodError: org.codehaus.jackson.map.ObjectMapper.setSerializationInclusion(Lorg/codehaus/jackson/map/annotate/JsonSerialize$Inclusion;)Lorg/codehaus/jackson/map/ObjectMapper;
      at org.apache.hadoop.yarn.webapp.YarnJacksonJaxbJsonProvider.configObjectMapper(YarnJacksonJaxbJsonProvider.java:59)
      at org.apache.hadoop.yarn.webapp.YarnJacksonJaxbJsonProvider.locateMapper(YarnJacksonJaxbJsonProvider.java:52)
      at org.codehaus.jackson.jaxrs.JacksonJsonProvider.writeTo(JacksonJsonProvider.java:501)
      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(URLConnectionClientHand
      

      Phoenix should either upgrade the jackson version, or (ideally) shade the jackson jar.

      Attachments

        1. PHOENIX-2608.v2.patch
          0.8 kB
          Ted Yu
        2. PHOENIX-2608.v1.patch
          0.8 kB
          Ted Yu

        Activity

          People

            yuzhihong@gmail.com Ted Yu
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: