[ 
https://issues.apache.org/jira/browse/FALCON-1052?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14340038#comment-14340038
 ] 

Pallavi Rao commented on FALCON-1052:
-------------------------------------

Cause: In the JAXB Element, two fields are mapped to the same name:
        @XmlElementWrapper(name = "list")
        public List<String> tag;
        @XmlElementWrapper(name = "list")
        public List<String> pipeline;

REST API returns:
<?xml version="1.0" encoding="UTF-8"?>
<entities>
...
   <entity>
      <type>PROCESS</type>
      <name>oozie-mr-process-2</name>
      <list>
         <tag>category=test</tag>
      </list>
      <list>
         <pipelines>test_1</pipelines>
         <pipelines>test</pipelines>
      </list>
   </entity>
</entities>

The Jersey response message body reader is unable to resolve this correctly. 
Hence, not able to display the pipelines field

> pipeline feature is not able to group by through CLI
> ----------------------------------------------------
>
>                 Key: FALCON-1052
>                 URL: https://issues.apache.org/jira/browse/FALCON-1052
>             Project: Falcon
>          Issue Type: Bug
>          Components: process
>    Affects Versions: 0.7
>         Environment: QA
>            Reporter: Pragya Mittal
>            Assignee: Pallavi Rao
>
> While hitting ui using pipeline tag it gives the following output :
> {code}
>  Request Url: 
> http://192.168.138.200:16000/api/entities/list/process?fields=pipelines&numResults=2147483647&user.name=pragyamittal
> 2015-02-25 18:49:41,518 INFO  - [main:] ~ The web service response is:
> <?xml version="1.0" encoding="UTF-8"?><entities>
>   <entity>
>     <type>PROCESS</type>
>     <name>EntitiesTest--agregator-coord16-b408e838</name>
>     <list/>
>   </entity>
>   <entity>
>     <type>PROCESS</type>
>     <name>EntitiesTest--agregator-coord16-b408e838-7</name>
>     <list>
>       <pipelines>pipeline4</pipelines>
>     </list>
>   </entity>
>   <entity>
>     <type>PROCESS</type>
>     <name>EntitiesTest--agregator-coord16-b408e838-8</name>
>     <list>
>       <pipelines>pipeline1</pipelines>
>       <pipelines>pipeline2</pipelines>
>       <pipelines>pipeline3</pipelines>
>     </list>
>   </entity>
>   <entity>
>     <type>PROCESS</type>
>     <name>EntitiesTest--agregator-coord16-b408e838-0</name>
>     <list>
>       <pipelines>pipeline4</pipelines>
>     </list>
>   </entity>
>   <entity>
>     <type>PROCESS</type>
>     <name>EntitiesTest--agregator-coord16-b408e838-5</name>
>     <list>
>       <pipelines>pipeline2</pipelines>
>     </list>
>   </entity>
>   <entity>
>     <type>PROCESS</type>
>     <name>EntitiesTest--agregator-coord16-b408e838-6</name>
>     <list>
>       <pipelines>pipeline3</pipelines>
>     </list>
>   </entity>
>   <entity>
>     <type>PROCESS</type>
>     <name>EntitiesTest--agregator-coord16-b408e838-3</name>
>     <list>
>       <pipelines>pipeline2</pipelines>
>     </list>
>   </entity>
>   <entity>
>     <type>PROCESS</type>
>     <name>EntitiesTest--agregator-coord16-b408e838-9</name>
>     <list>
>       <pipelines>pipeline2</pipelines>
>       <pipelines>pipeline3</pipelines>
>     </list>
>   </entity>
>   <entity>
>     <type>PROCESS</type>
>     <name>EntitiesTest--agregator-coord16-b408e838-1</name>
>     <list>
>       <pipelines>pipeline4</pipelines>
>     </list>
>   </entity>
>   <entity>
>     <type>PROCESS</type>
>     <name>EntitiesTest--agregator-coord16-b408e838-4</name>
>     <list>
>       <pipelines>pipeline4</pipelines>
>     </list>
>   </entity>
>   <entity>
>     <type>PROCESS</type>
>     <name>EntitiesTest--agregator-coord16-b408e838-2</name>
>     <list>
>       <pipelines>pipeline2</pipelines>
>       <pipelines>pipeline3</pipelines>
>     </list>
>   </entity>
> </entities>
> {code}
> But while using cli, it is not able to retrieve pipeline information:
> {code}
> dataqa@ip-192-168-138-200:~$ falcon entity -list -type process -fields 
> pipelines
> (PROCESS) EntitiesTest--agregator-coord16-b408e838
> (PROCESS) EntitiesTest--agregator-coord16-b408e838-7
> (PROCESS) EntitiesTest--agregator-coord16-b408e838-8
> (PROCESS) EntitiesTest--agregator-coord16-b408e838-0
> (PROCESS) EntitiesTest--agregator-coord16-b408e838-5
> (PROCESS) EntitiesTest--agregator-coord16-b408e838-6
> (PROCESS) EntitiesTest--agregator-coord16-b408e838-3
> (PROCESS) EntitiesTest--agregator-coord16-b408e838-9
> (PROCESS) EntitiesTest--agregator-coord16-b408e838-1
> (PROCESS) EntitiesTest--agregator-coord16-b408e838-4
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to