Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-9554

TimelineEntity DAO has java.util.Set interface which JAXB can't handle

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.3.0
    • Fix Version/s: 3.3.0
    • Component/s: timelineservice
    • Labels:
      None

      Description

      TimelineEntity DAO has java.util.Set interface which JAXB can't handle. This breaks the fix of YARN-7266.

      Caused by: com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
      java.util.Set is an interface, and JAXB can't handle interfaces.
      	this problem is related to the following location:
      		at java.util.Set
      		at public java.util.HashMap org.apache.hadoop.yarn.api.records.timeline.TimelineEntity.getPrimaryFiltersJAXB()
      		at org.apache.hadoop.yarn.api.records.timeline.TimelineEntity
      		at public java.util.List org.apache.hadoop.yarn.api.records.timeline.TimelineEntities.getEntities()
      		at org.apache.hadoop.yarn.api.records.timeline.TimelineEntities
      
      	at com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:91)
      	at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:445)
      	at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:277)
      	at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:124)
      	at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1123)
      	at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:147)
      

        Attachments

        1. YARN-9554-002.patch
          10 kB
          Prabhu Joseph
        2. YARN-9554-001.patch
          10 kB
          Prabhu Joseph

          Issue Links

            Activity

              People

              • Assignee:
                prabhujoseph Prabhu Joseph
                Reporter:
                prabhujoseph Prabhu Joseph
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: