You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by Makoto Hashimoto <to...@gmail.com> on 2017/01/28 03:12:29 UTC

Deleting an empty group fails

Hi,

I'm trying to delete an empty group.

[image: 埋め込み画像 1]

However, it fails with the following error.

[image: 埋め込み画像 2]

Is something wrong with my operation and could someone would help to
solve this problem ?

Regards,
MH

Re: Deleting an empty group fails

Posted by Makoto Hashimoto <to...@gmail.com>.
Hi Andy,

Yes, I am looking forward the enhancement.


2017-01-28 16:43 GMT+09:00 Andy LoPresto <al...@gmail.com>:

> Makoto,
>
> Glad to hear that worked for you. We will make this process easier moving
> forward.
>
> Andy LoPresto
> alopresto@apache.org
> alopresto.apache@gmail.com
> PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69
>
> On Jan 27, 2017, at 22:06, Makoto Hashimoto <to...@gmail.com>
> wrote:
>
> I've tested my doubt. Only deleting referenced templates in a group
> enables deleting itself.
>
> Makoto
>
> 2017-01-28 14:30 GMT+09:00 Makoto Hashimoto <to...@gmail.com>:
>
>> Hi Andy,
>>
>> Actually, I did as you explained. There are more than 7 templates in my
>> Nifi environments
>> but I could delete the group after deleting  7 templates.
>>
>> One doubt is I have not used 7 templates in that group but I'm not sure.
>>
>> Makoto
>>
>> 2017-01-28 12:59 GMT+09:00 Andy LoPresto <al...@apache.org>:
>>
>>> Makoto,
>>>
>>> For future reference, you only need to delete the templates contained in
>>> the process group you are trying to delete. You can see the process group
>>> ID in the templates listing — any that match the UUID of the PG you are
>>> deleting need to be deleted, but others are fine.
>>>
>>> Andy LoPresto
>>> alopresto@apache.org
>>> *alopresto.apache@gmail.com <al...@gmail.com>*
>>> PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69
>>>
>>> On Jan 27, 2017, at 7:56 PM, Makoto Hashimoto <to...@gmail.com>
>>> wrote:
>>>
>>> Hi all,
>>>
>>> I could delete the process group after deleting all templates in my
>>> environment.
>>>
>>> MH
>>>
>>>
>>> 2017-01-28 12:38 GMT+09:00 Andy LoPresto <al...@apache.org>:
>>>
>>>> Created NIFI-3417 [1] to address this.
>>>>
>>>> [1] https://issues.apache.org/jira/browse/NIFI-3417
>>>>
>>>> Andy LoPresto
>>>> alopresto@apache.org
>>>> *alopresto.apache@gmail.com <al...@gmail.com>*
>>>> PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69
>>>>
>>>> On Jan 27, 2017, at 7:35 PM, Joe Witt <jo...@gmail.com> wrote:
>>>>
>>>> That certainly sounds JIRA worthy though.  Templates should not be able
>>>> to block the destruction of a process group.
>>>>
>>>> On Fri, Jan 27, 2017 at 10:32 PM, Andy LoPresto <al...@apache.org>
>>>> wrote:
>>>>
>>>>> Makoto,
>>>>>
>>>>> Templates are tied to process groups. Unfortunately, this means that
>>>>> to delete the group, you will have to delete the templates first. You can
>>>>> do this by using the “hamburger” global menu at the top right of the UI and
>>>>> selecting “Templates”, then deleting the templates which reside in this
>>>>> process group (export them to XML first if you want to save them).
>>>>>
>>>>> If you want to move those templates out of the PG, and you are
>>>>> comfortable working in XML, a less-enticing option is to stop the
>>>>> application, uncompress and open the flow.xml.gz file, and move the
>>>>> template entries out of the process group to root or another group, being
>>>>> sure to update any references in the XML. Then save and compress the file,
>>>>> and restart the application.
>>>>>
>>>>> I understand this is not an ideal solution. I’m going to file a Jira
>>>>> documenting this and suggest that the dialog allows you to select one of
>>>>> three options:
>>>>>
>>>>> 1. Delete process group and all contained templates
>>>>> 2. Delete process group and move templates to parent PG (this could
>>>>> cause issues because the components and connections will no longer be
>>>>> defined)
>>>>> 3. Cancel the delete operation.
>>>>>
>>>>> I’ll also suggest improving the documentation to make this situation
>>>>> clearer.
>>>>>
>>>>> <template_delete.png>
>>>>>
>>>>>
>>>>> Andy LoPresto
>>>>> alopresto@apache.org
>>>>> *alopresto.apache@gmail.com <al...@gmail.com>*
>>>>> PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69
>>>>>
>>>>> On Jan 27, 2017, at 7:12 PM, Makoto Hashimoto <to...@gmail.com>
>>>>> wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> I'm trying to delete an empty group.
>>>>>
>>>>> <image.png>
>>>>>
>>>>> However, it fails with the following error.
>>>>>
>>>>> <image.png>
>>>>>
>>>>> Is something wrong with my operation and could someone would help to
>>>>> solve this problem ?
>>>>>
>>>>> Regards,
>>>>> MH
>>>>>
>>>>>
>>>>
>>>
>>>
>>
>

Re: Deleting an empty group fails

Posted by Andy LoPresto <al...@gmail.com>.
Makoto,

Glad to hear that worked for you. We will make this process easier moving forward. 

Andy LoPresto
alopresto@apache.org
alopresto.apache@gmail.com
PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69

> On Jan 27, 2017, at 22:06, Makoto Hashimoto <to...@gmail.com> wrote:
> 
> I've tested my doubt. Only deleting referenced templates in a group enables deleting itself.
> 
> Makoto
> 
> 2017-01-28 14:30 GMT+09:00 Makoto Hashimoto <to...@gmail.com>:
>> Hi Andy,
>> 
>> Actually, I did as you explained. There are more than 7 templates in my Nifi environments
>> but I could delete the group after deleting  7 templates. 
>> 
>> One doubt is I have not used 7 templates in that group but I'm not sure. 
>> 
>> Makoto
>> 
>> 2017-01-28 12:59 GMT+09:00 Andy LoPresto <al...@apache.org>:
>>> Makoto,
>>> 
>>> For future reference, you only need to delete the templates contained in the process group you are trying to delete. You can see the process group ID in the templates listing — any that match the UUID of the PG you are deleting need to be deleted, but others are fine. 
>>> 
>>> Andy LoPresto
>>> alopresto@apache.org
>>> alopresto.apache@gmail.com
>>> PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69
>>> 
>>>> On Jan 27, 2017, at 7:56 PM, Makoto Hashimoto <to...@gmail.com> wrote:
>>>> 
>>>> Hi all,
>>>> 
>>>> I could delete the process group after deleting all templates in my environment.
>>>> 
>>>> MH
>>>> 
>>>> 
>>>> 2017-01-28 12:38 GMT+09:00 Andy LoPresto <al...@apache.org>:
>>>>> Created NIFI-3417 [1] to address this. 
>>>>> 
>>>>> [1] https://issues.apache.org/jira/browse/NIFI-3417
>>>>> 
>>>>> Andy LoPresto
>>>>> alopresto@apache.org
>>>>> alopresto.apache@gmail.com
>>>>> PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69
>>>>> 
>>>>>> On Jan 27, 2017, at 7:35 PM, Joe Witt <jo...@gmail.com> wrote:
>>>>>> 
>>>>>> That certainly sounds JIRA worthy though.  Templates should not be able to block the destruction of a process group.
>>>>>> 
>>>>>> On Fri, Jan 27, 2017 at 10:32 PM, Andy LoPresto <al...@apache.org> wrote:
>>>>>>> Makoto,
>>>>>>> 
>>>>>>> Templates are tied to process groups. Unfortunately, this means that to delete the group, you will have to delete the templates first. You can do this by using the “hamburger” global menu at the top right of the UI and selecting “Templates”, then deleting the templates which reside in this process group (export them to XML first if you want to save them). 
>>>>>>> 
>>>>>>> If you want to move those templates out of the PG, and you are comfortable working in XML, a less-enticing option is to stop the application, uncompress and open the flow.xml.gz file, and move the template entries out of the process group to root or another group, being sure to update any references in the XML. Then save and compress the file, and restart the application. 
>>>>>>> 
>>>>>>> I understand this is not an ideal solution. I’m going to file a Jira documenting this and suggest that the dialog allows you to select one of three options:
>>>>>>> 
>>>>>>> 1. Delete process group and all contained templates
>>>>>>> 2. Delete process group and move templates to parent PG (this could cause issues because the components and connections will no longer be defined)
>>>>>>> 3. Cancel the delete operation. 
>>>>>>> 
>>>>>>> I’ll also suggest improving the documentation to make this situation clearer. 
>>>>>>> 
>>>>>>> <template_delete.png>
>>>>>>> 
>>>>>>> 
>>>>>>> Andy LoPresto
>>>>>>> alopresto@apache.org
>>>>>>> alopresto.apache@gmail.com
>>>>>>> PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69
>>>>>>> 
>>>>>>>> On Jan 27, 2017, at 7:12 PM, Makoto Hashimoto <to...@gmail.com> wrote:
>>>>>>>> 
>>>>>>>> Hi,
>>>>>>>> 
>>>>>>>> I'm trying to delete an empty group. 
>>>>>>>> 
>>>>>>>> <image.png>
>>>>>>>> 
>>>>>>>> However, it fails with the following error.
>>>>>>>> 
>>>>>>>> <image.png>
>>>>>>>> 
>>>>>>>> Is something wrong with my operation and could someone would help to 
>>>>>>>> solve this problem ?
>>>>>>>> 
>>>>>>>> Regards,
>>>>>>>> MH
>>>>> 
>>>> 
>>> 
>> 
> 

Re: Deleting an empty group fails

Posted by Makoto Hashimoto <to...@gmail.com>.
I've tested my doubt. Only deleting referenced templates in a group enables
deleting itself.

Makoto

2017-01-28 14:30 GMT+09:00 Makoto Hashimoto <to...@gmail.com>:

> Hi Andy,
>
> Actually, I did as you explained. There are more than 7 templates in my
> Nifi environments
> but I could delete the group after deleting  7 templates.
>
> One doubt is I have not used 7 templates in that group but I'm not sure.
>
> Makoto
>
> 2017-01-28 12:59 GMT+09:00 Andy LoPresto <al...@apache.org>:
>
>> Makoto,
>>
>> For future reference, you only need to delete the templates contained in
>> the process group you are trying to delete. You can see the process group
>> ID in the templates listing — any that match the UUID of the PG you are
>> deleting need to be deleted, but others are fine.
>>
>> Andy LoPresto
>> alopresto@apache.org
>> *alopresto.apache@gmail.com <al...@gmail.com>*
>> PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69
>>
>> On Jan 27, 2017, at 7:56 PM, Makoto Hashimoto <to...@gmail.com>
>> wrote:
>>
>> Hi all,
>>
>> I could delete the process group after deleting all templates in my
>> environment.
>>
>> MH
>>
>>
>> 2017-01-28 12:38 GMT+09:00 Andy LoPresto <al...@apache.org>:
>>
>>> Created NIFI-3417 [1] to address this.
>>>
>>> [1] https://issues.apache.org/jira/browse/NIFI-3417
>>>
>>> Andy LoPresto
>>> alopresto@apache.org
>>> *alopresto.apache@gmail.com <al...@gmail.com>*
>>> PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69
>>>
>>> On Jan 27, 2017, at 7:35 PM, Joe Witt <jo...@gmail.com> wrote:
>>>
>>> That certainly sounds JIRA worthy though.  Templates should not be able
>>> to block the destruction of a process group.
>>>
>>> On Fri, Jan 27, 2017 at 10:32 PM, Andy LoPresto <al...@apache.org>
>>> wrote:
>>>
>>>> Makoto,
>>>>
>>>> Templates are tied to process groups. Unfortunately, this means that to
>>>> delete the group, you will have to delete the templates first. You can do
>>>> this by using the “hamburger” global menu at the top right of the UI and
>>>> selecting “Templates”, then deleting the templates which reside in this
>>>> process group (export them to XML first if you want to save them).
>>>>
>>>> If you want to move those templates out of the PG, and you are
>>>> comfortable working in XML, a less-enticing option is to stop the
>>>> application, uncompress and open the flow.xml.gz file, and move the
>>>> template entries out of the process group to root or another group, being
>>>> sure to update any references in the XML. Then save and compress the file,
>>>> and restart the application.
>>>>
>>>> I understand this is not an ideal solution. I’m going to file a Jira
>>>> documenting this and suggest that the dialog allows you to select one of
>>>> three options:
>>>>
>>>> 1. Delete process group and all contained templates
>>>> 2. Delete process group and move templates to parent PG (this could
>>>> cause issues because the components and connections will no longer be
>>>> defined)
>>>> 3. Cancel the delete operation.
>>>>
>>>> I’ll also suggest improving the documentation to make this situation
>>>> clearer.
>>>>
>>>> <template_delete.png>
>>>>
>>>>
>>>> Andy LoPresto
>>>> alopresto@apache.org
>>>> *alopresto.apache@gmail.com <al...@gmail.com>*
>>>> PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69
>>>>
>>>> On Jan 27, 2017, at 7:12 PM, Makoto Hashimoto <to...@gmail.com>
>>>> wrote:
>>>>
>>>> Hi,
>>>>
>>>> I'm trying to delete an empty group.
>>>>
>>>> <image.png>
>>>>
>>>> However, it fails with the following error.
>>>>
>>>> <image.png>
>>>>
>>>> Is something wrong with my operation and could someone would help to
>>>> solve this problem ?
>>>>
>>>> Regards,
>>>> MH
>>>>
>>>>
>>>
>>
>>
>

Re: Deleting an empty group fails

Posted by Makoto Hashimoto <to...@gmail.com>.
Hi Andy,

Actually, I did as you explained. There are more than 7 templates in my
Nifi environments
but I could delete the group after deleting  7 templates.

One doubt is I have not used 7 templates in that group but I'm not sure.

Makoto

2017-01-28 12:59 GMT+09:00 Andy LoPresto <al...@apache.org>:

> Makoto,
>
> For future reference, you only need to delete the templates contained in
> the process group you are trying to delete. You can see the process group
> ID in the templates listing — any that match the UUID of the PG you are
> deleting need to be deleted, but others are fine.
>
> Andy LoPresto
> alopresto@apache.org
> *alopresto.apache@gmail.com <al...@gmail.com>*
> PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69
>
> On Jan 27, 2017, at 7:56 PM, Makoto Hashimoto <to...@gmail.com>
> wrote:
>
> Hi all,
>
> I could delete the process group after deleting all templates in my
> environment.
>
> MH
>
>
> 2017-01-28 12:38 GMT+09:00 Andy LoPresto <al...@apache.org>:
>
>> Created NIFI-3417 [1] to address this.
>>
>> [1] https://issues.apache.org/jira/browse/NIFI-3417
>>
>> Andy LoPresto
>> alopresto@apache.org
>> *alopresto.apache@gmail.com <al...@gmail.com>*
>> PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69
>>
>> On Jan 27, 2017, at 7:35 PM, Joe Witt <jo...@gmail.com> wrote:
>>
>> That certainly sounds JIRA worthy though.  Templates should not be able
>> to block the destruction of a process group.
>>
>> On Fri, Jan 27, 2017 at 10:32 PM, Andy LoPresto <al...@apache.org>
>> wrote:
>>
>>> Makoto,
>>>
>>> Templates are tied to process groups. Unfortunately, this means that to
>>> delete the group, you will have to delete the templates first. You can do
>>> this by using the “hamburger” global menu at the top right of the UI and
>>> selecting “Templates”, then deleting the templates which reside in this
>>> process group (export them to XML first if you want to save them).
>>>
>>> If you want to move those templates out of the PG, and you are
>>> comfortable working in XML, a less-enticing option is to stop the
>>> application, uncompress and open the flow.xml.gz file, and move the
>>> template entries out of the process group to root or another group, being
>>> sure to update any references in the XML. Then save and compress the file,
>>> and restart the application.
>>>
>>> I understand this is not an ideal solution. I’m going to file a Jira
>>> documenting this and suggest that the dialog allows you to select one of
>>> three options:
>>>
>>> 1. Delete process group and all contained templates
>>> 2. Delete process group and move templates to parent PG (this could
>>> cause issues because the components and connections will no longer be
>>> defined)
>>> 3. Cancel the delete operation.
>>>
>>> I’ll also suggest improving the documentation to make this situation
>>> clearer.
>>>
>>> <template_delete.png>
>>>
>>>
>>> Andy LoPresto
>>> alopresto@apache.org
>>> *alopresto.apache@gmail.com <al...@gmail.com>*
>>> PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69
>>>
>>> On Jan 27, 2017, at 7:12 PM, Makoto Hashimoto <to...@gmail.com>
>>> wrote:
>>>
>>> Hi,
>>>
>>> I'm trying to delete an empty group.
>>>
>>> <image.png>
>>>
>>> However, it fails with the following error.
>>>
>>> <image.png>
>>>
>>> Is something wrong with my operation and could someone would help to
>>> solve this problem ?
>>>
>>> Regards,
>>> MH
>>>
>>>
>>
>
>

Re: Deleting an empty group fails

Posted by Andy LoPresto <al...@apache.org>.
Makoto,

For future reference, you only need to delete the templates contained in the process group you are trying to delete. You can see the process group ID in the templates listing — any that match the UUID of the PG you are deleting need to be deleted, but others are fine.

Andy LoPresto
alopresto@apache.org
alopresto.apache@gmail.com
PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69

> On Jan 27, 2017, at 7:56 PM, Makoto Hashimoto <to...@gmail.com> wrote:
> 
> Hi all,
> 
> I could delete the process group after deleting all templates in my environment.
> 
> MH
> 
> 
> 2017-01-28 12:38 GMT+09:00 Andy LoPresto <alopresto@apache.org <ma...@apache.org>>:
> Created NIFI-3417 [1] to address this.
> 
> [1] https://issues.apache.org/jira/browse/NIFI-3417 <https://issues.apache.org/jira/browse/NIFI-3417>
> 
> Andy LoPresto
> alopresto@apache.org <ma...@apache.org>
> alopresto.apache@gmail.com <ma...@gmail.com>
> PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69
> 
>> On Jan 27, 2017, at 7:35 PM, Joe Witt <joe.witt@gmail.com <ma...@gmail.com>> wrote:
>> 
>> That certainly sounds JIRA worthy though.  Templates should not be able to block the destruction of a process group.
>> 
>> On Fri, Jan 27, 2017 at 10:32 PM, Andy LoPresto <alopresto@apache.org <ma...@apache.org>> wrote:
>> Makoto,
>> 
>> Templates are tied to process groups. Unfortunately, this means that to delete the group, you will have to delete the templates first. You can do this by using the “hamburger” global menu at the top right of the UI and selecting “Templates”, then deleting the templates which reside in this process group (export them to XML first if you want to save them).
>> 
>> If you want to move those templates out of the PG, and you are comfortable working in XML, a less-enticing option is to stop the application, uncompress and open the flow.xml.gz file, and move the template entries out of the process group to root or another group, being sure to update any references in the XML. Then save and compress the file, and restart the application.
>> 
>> I understand this is not an ideal solution. I’m going to file a Jira documenting this and suggest that the dialog allows you to select one of three options:
>> 
>> 1. Delete process group and all contained templates
>> 2. Delete process group and move templates to parent PG (this could cause issues because the components and connections will no longer be defined)
>> 3. Cancel the delete operation.
>> 
>> I’ll also suggest improving the documentation to make this situation clearer.
>> 
>> <template_delete.png>
>> 
>> 
>> Andy LoPresto
>> alopresto@apache.org <ma...@apache.org>
>> alopresto.apache@gmail.com <ma...@gmail.com>
>> PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69
>> 
>>> On Jan 27, 2017, at 7:12 PM, Makoto Hashimoto <tokomakoma123@gmail.com <ma...@gmail.com>> wrote:
>>> 
>>> Hi,
>>> 
>>> I'm trying to delete an empty group.
>>> 
>>> <image.png>
>>> 
>>> However, it fails with the following error.
>>> 
>>> <image.png>
>>> 
>>> Is something wrong with my operation and could someone would help to
>>> solve this problem ?
>>> 
>>> Regards,
>>> MH
> 
> 


Re: Deleting an empty group fails

Posted by Makoto Hashimoto <to...@gmail.com>.
Hi all,

I could delete the process group after deleting all templates in my
environment.

MH


2017-01-28 12:38 GMT+09:00 Andy LoPresto <al...@apache.org>:

> Created NIFI-3417 [1] to address this.
>
> [1] https://issues.apache.org/jira/browse/NIFI-3417
>
> Andy LoPresto
> alopresto@apache.org
> *alopresto.apache@gmail.com <al...@gmail.com>*
> PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69
>
> On Jan 27, 2017, at 7:35 PM, Joe Witt <jo...@gmail.com> wrote:
>
> That certainly sounds JIRA worthy though.  Templates should not be able to
> block the destruction of a process group.
>
> On Fri, Jan 27, 2017 at 10:32 PM, Andy LoPresto <al...@apache.org>
> wrote:
>
>> Makoto,
>>
>> Templates are tied to process groups. Unfortunately, this means that to
>> delete the group, you will have to delete the templates first. You can do
>> this by using the “hamburger” global menu at the top right of the UI and
>> selecting “Templates”, then deleting the templates which reside in this
>> process group (export them to XML first if you want to save them).
>>
>> If you want to move those templates out of the PG, and you are
>> comfortable working in XML, a less-enticing option is to stop the
>> application, uncompress and open the flow.xml.gz file, and move the
>> template entries out of the process group to root or another group, being
>> sure to update any references in the XML. Then save and compress the file,
>> and restart the application.
>>
>> I understand this is not an ideal solution. I’m going to file a Jira
>> documenting this and suggest that the dialog allows you to select one of
>> three options:
>>
>> 1. Delete process group and all contained templates
>> 2. Delete process group and move templates to parent PG (this could cause
>> issues because the components and connections will no longer be defined)
>> 3. Cancel the delete operation.
>>
>> I’ll also suggest improving the documentation to make this situation
>> clearer.
>>
>> <template_delete.png>
>>
>>
>> Andy LoPresto
>> alopresto@apache.org
>> *alopresto.apache@gmail.com <al...@gmail.com>*
>> PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69
>>
>> On Jan 27, 2017, at 7:12 PM, Makoto Hashimoto <to...@gmail.com>
>> wrote:
>>
>> Hi,
>>
>> I'm trying to delete an empty group.
>>
>> <image.png>
>>
>> However, it fails with the following error.
>>
>> <image.png>
>>
>> Is something wrong with my operation and could someone would help to
>> solve this problem ?
>>
>> Regards,
>> MH
>>
>>
>

Re: Deleting an empty group fails

Posted by Andy LoPresto <al...@apache.org>.
Created NIFI-3417 [1] to address this.

[1] https://issues.apache.org/jira/browse/NIFI-3417

Andy LoPresto
alopresto@apache.org
alopresto.apache@gmail.com
PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69

> On Jan 27, 2017, at 7:35 PM, Joe Witt <jo...@gmail.com> wrote:
> 
> That certainly sounds JIRA worthy though.  Templates should not be able to block the destruction of a process group.
> 
> On Fri, Jan 27, 2017 at 10:32 PM, Andy LoPresto <alopresto@apache.org <ma...@apache.org>> wrote:
> Makoto,
> 
> Templates are tied to process groups. Unfortunately, this means that to delete the group, you will have to delete the templates first. You can do this by using the “hamburger” global menu at the top right of the UI and selecting “Templates”, then deleting the templates which reside in this process group (export them to XML first if you want to save them).
> 
> If you want to move those templates out of the PG, and you are comfortable working in XML, a less-enticing option is to stop the application, uncompress and open the flow.xml.gz file, and move the template entries out of the process group to root or another group, being sure to update any references in the XML. Then save and compress the file, and restart the application.
> 
> I understand this is not an ideal solution. I’m going to file a Jira documenting this and suggest that the dialog allows you to select one of three options:
> 
> 1. Delete process group and all contained templates
> 2. Delete process group and move templates to parent PG (this could cause issues because the components and connections will no longer be defined)
> 3. Cancel the delete operation.
> 
> I’ll also suggest improving the documentation to make this situation clearer.
> 
> <template_delete.png>
> 
> 
> Andy LoPresto
> alopresto@apache.org <ma...@apache.org>
> alopresto.apache@gmail.com <ma...@gmail.com>
> PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69
> 
>> On Jan 27, 2017, at 7:12 PM, Makoto Hashimoto <tokomakoma123@gmail.com <ma...@gmail.com>> wrote:
>> 
>> Hi,
>> 
>> I'm trying to delete an empty group.
>> 
>> <image.png>
>> 
>> However, it fails with the following error.
>> 
>> <image.png>
>> 
>> Is something wrong with my operation and could someone would help to
>> solve this problem ?
>> 
>> Regards,
>> MH


Re: Deleting an empty group fails

Posted by Joe Witt <jo...@gmail.com>.
That certainly sounds JIRA worthy though.  Templates should not be able to
block the destruction of a process group.

On Fri, Jan 27, 2017 at 10:32 PM, Andy LoPresto <al...@apache.org>
wrote:

> Makoto,
>
> Templates are tied to process groups. Unfortunately, this means that to
> delete the group, you will have to delete the templates first. You can do
> this by using the “hamburger” global menu at the top right of the UI and
> selecting “Templates”, then deleting the templates which reside in this
> process group (export them to XML first if you want to save them).
>
> If you want to move those templates out of the PG, and you are comfortable
> working in XML, a less-enticing option is to stop the application,
> uncompress and open the flow.xml.gz file, and move the template entries out
> of the process group to root or another group, being sure to update any
> references in the XML. Then save and compress the file, and restart the
> application.
>
> I understand this is not an ideal solution. I’m going to file a Jira
> documenting this and suggest that the dialog allows you to select one of
> three options:
>
> 1. Delete process group and all contained templates
> 2. Delete process group and move templates to parent PG (this could cause
> issues because the components and connections will no longer be defined)
> 3. Cancel the delete operation.
>
> I’ll also suggest improving the documentation to make this situation
> clearer.
>
>
>
> Andy LoPresto
> alopresto@apache.org
> *alopresto.apache@gmail.com <al...@gmail.com>*
> PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69
>
> On Jan 27, 2017, at 7:12 PM, Makoto Hashimoto <to...@gmail.com>
> wrote:
>
> Hi,
>
> I'm trying to delete an empty group.
>
> <image.png>
>
> However, it fails with the following error.
>
> <image.png>
>
> Is something wrong with my operation and could someone would help to
> solve this problem ?
>
> Regards,
> MH
>
>
>

Re: Deleting an empty group fails

Posted by Andy LoPresto <al...@apache.org>.
Makoto,

Templates are tied to process groups. Unfortunately, this means that to delete the group, you will have to delete the templates first. You can do this by using the “hamburger” global menu at the top right of the UI and selecting “Templates”, then deleting the templates which reside in this process group (export them to XML first if you want to save them).

If you want to move those templates out of the PG, and you are comfortable working in XML, a less-enticing option is to stop the application, uncompress and open the flow.xml.gz file, and move the template entries out of the process group to root or another group, being sure to update any references in the XML. Then save and compress the file, and restart the application.

I understand this is not an ideal solution. I’m going to file a Jira documenting this and suggest that the dialog allows you to select one of three options:

1. Delete process group and all contained templates
2. Delete process group and move templates to parent PG (this could cause issues because the components and connections will no longer be defined)
3. Cancel the delete operation.

I’ll also suggest improving the documentation to make this situation clearer.




Andy LoPresto
alopresto@apache.org
alopresto.apache@gmail.com
PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69

> On Jan 27, 2017, at 7:12 PM, Makoto Hashimoto <to...@gmail.com> wrote:
> 
> Hi,
> 
> I'm trying to delete an empty group.
> 
> <image.png>
> 
> However, it fails with the following error.
> 
> <image.png>
> 
> Is something wrong with my operation and could someone would help to
> solve this problem ?
> 
> Regards,
> MH