nifi-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mariama Barr-Dallas <mbarrdal...@gmail.com>
Subject Re: Posting Process Group Entity JSON via Rest API
Date Fri, 22 Jul 2016 19:03:37 GMT
Adding them individually is exactly what I am trying out now, thanks!

Mariama Barr-Dallas
Meyerhoff Scholar/ NSA Scholar M23
Computer Science Major, History Major
University of Maryland Baltimore County
Class of 2015

On Fri, Jul 22, 2016 at 2:57 PM, Matt Gilman <matt.c.gilman@gmail.com>
wrote:

> Components can only be added to the Process Group once it's been created.
> Each one of these components would need to be sent in an individual
> request.
>
> If you want to do it in a single call, you'd have to build a template with
> these components and then instantiate this template on your canvas. You can
> build your template using NiFi and then download a copy. You then need to
> import that template in your target instance before you can instantiate it.
>
> Matt
>
> On Fri, Jul 22, 2016 at 12:20 PM, Mariama Barr-Dallas <
> mbarrdallas@gmail.com> wrote:
>
>> Thank you; I was able to look into the nifi-users.log and adjusted my
>> code accordingly, however, the ProcessGroup is not being shown correctly.
>> When I post a ProcessGroupEntity, the group appears, but all of its
>> internal contents (processors, ports, etc.) are missing, and no error is
>> shown in the logs for why the information I provided in the entity could
>> not be posted. What could be the issue?
>>
>> Mariama Barr-Dallas
>> Meyerhoff Scholar/ NSA Scholar M23
>> Computer Science Major, History Major
>> University of Maryland Baltimore County
>> Class of 2015
>>
>> On Fri, Jul 22, 2016 at 11:33 AM, Matt Gilman <matt.c.gilman@gmail.com>
>> wrote:
>>
>>> If you check the nifi-users.log there should be a message that contains
>>> details of the field that it was unable to unmarshal. The documentation
>>> does appear to indicate that every field is optional. I've updated this
>>> JIRA [1] to address the documentation for our upcoming release.
>>>
>>> Matt
>>>
>>> [1] https://issues.apache.org/jira/browse/NIFI-2237
>>>
>>> On Fri, Jul 22, 2016 at 11:27 AM, Mariama Barr-Dallas <
>>> mbarrdallas@gmail.com> wrote:
>>>
>>>> Hello,
>>>>
>>>> I am trying to create a Process Group by posting within the request a
>>>> ProcessGroupEntity JSON object. I created the ProcessGroupEntity JSON by
>>>> doing a previous get request, and I keep getting back a "Message body is
>>>> malformed. Unable to map into expected format" error.
>>>>
>>>> I have been able to use this method successfully before with creating
>>>> ProcessEntities and ConnectionEntities and changing certain fields
>>>> accordingly through trial and error. The error was solved in these
>>>> instances by deleting the id field and specifying parentGroupIds (for
>>>> ConnectionEntities) before posting.
>>>>
>>>> My question is are there certain fields that should not be in the
>>>> ProcessGroupEntity when sending a post request? I suspect this to be the
>>>> source of the error.
>>>> Where can I find a list/documentation of those fields? I have looked on
>>>> the main Nifi Rest API page, and for all of the Entities it says that all
>>>> of the fields are 'optional' but I have not found this to be the case.
>>>>
>>>
>>>
>>
>

Mime
View raw message