<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Nifi toolkit pg-list fails with message : Error executing command 'pg-list' : null in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nifi-toolkit-pg-list-fails-with-message-Error-executing/m-p/378119#M243430</link>
    <description>&lt;P&gt;Hello&lt;BR /&gt;I'm running Nifi toolkit v1.12.1 with JDK 8&lt;BR /&gt;&lt;BR /&gt;I'm running into a problem when running the following command&lt;BR /&gt;cli.sh nifi pg-list -p /nifi.properties --verbose&lt;BR /&gt;&lt;BR /&gt;I can do a&lt;BR /&gt;wget --certificate=./my.pem --private-key=./my.key --ca-certificate=./myca.pem &lt;A href="https://xxx/nifi-api/flow/process-groups/root" target="_blank" rel="noopener"&gt;https://xxx/nifi-api/flow/process-groups/root&lt;/A&gt;&lt;BR /&gt;and get a correct output&lt;BR /&gt;&lt;BR /&gt;Can you help me get the corret output with the toolkit ?&lt;/P&gt;&lt;P&gt;Is it possible to log the toolkit requests / responses ?&lt;BR /&gt;&lt;BR /&gt;The stack trace I get with the toolkit is:&amp;nbsp;&lt;BR /&gt;org.apache.nifi.toolkit.cli.api.CommandException: Error executing command 'pg-list' : null&lt;BR /&gt;at org.apache.nifi.toolkit.cli.impl.command.nifi.AbstractNiFiCommand.doExecute(AbstractNiFiCommand.java:65)&lt;BR /&gt;at org.apache.nifi.toolkit.cli.impl.command.AbstractPropertyCommand.execute(AbstractPropertyCommand.java:74)&lt;BR /&gt;at org.apache.nifi.toolkit.cli.impl.command.CommandProcessor.processCommand(CommandProcessor.java:252)&lt;BR /&gt;at org.apache.nifi.toolkit.cli.impl.command.CommandProcessor.processGroupCommand(CommandProcessor.java:233)&lt;BR /&gt;at org.apache.nifi.toolkit.cli.impl.command.CommandProcessor.process(CommandProcessor.java:188)&lt;BR /&gt;at org.apache.nifi.toolkit.cli.CLIMain.runSingleCommand(CLIMain.java:145)&lt;BR /&gt;at org.apache.nifi.toolkit.cli.CLIMain.main(CLIMain.java:72)&lt;BR /&gt;Caused by: java.lang.NullPointerException&lt;BR /&gt;at java.util.Comparator.lambda$comparing$77a9974f$1(Comparator.java:469)&lt;BR /&gt;at java.util.TimSort.countRunAndMakeAscending(TimSort.java:355)&lt;BR /&gt;at java.util.TimSort.sort(TimSort.java:220)&lt;BR /&gt;at java.util.Arrays.sort(Arrays.java:1512)&lt;BR /&gt;at java.util.ArrayList.sort(ArrayList.java:1462)&lt;BR /&gt;at org.apache.nifi.toolkit.cli.impl.result.nifi.ProcessGroupsResult.&amp;lt;init&amp;gt;(ProcessGroupsResult.java:50)&lt;BR /&gt;at org.apache.nifi.toolkit.cli.impl.command.nifi.pg.PGList.doExecute(PGList.java:78)&lt;BR /&gt;at org.apache.nifi.toolkit.cli.impl.command.nifi.pg.PGList.doExecute(PGList.java:40)&lt;BR /&gt;at org.apache.nifi.toolkit.cli.impl.command.nifi.AbstractNiFiCommand.doExecute(AbstractNiFiCommand.java:63)&lt;BR /&gt;... 6 more&lt;BR /&gt;&lt;BR /&gt;Regards&lt;/P&gt;</description>
    <pubDate>Wed, 25 Oct 2023 09:42:59 GMT</pubDate>
    <dc:creator>Alf015</dc:creator>
    <dc:date>2023-10-25T09:42:59Z</dc:date>
    <item>
      <title>Nifi toolkit pg-list fails with message : Error executing command 'pg-list' : null</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-toolkit-pg-list-fails-with-message-Error-executing/m-p/378119#M243430</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;I'm running Nifi toolkit v1.12.1 with JDK 8&lt;BR /&gt;&lt;BR /&gt;I'm running into a problem when running the following command&lt;BR /&gt;cli.sh nifi pg-list -p /nifi.properties --verbose&lt;BR /&gt;&lt;BR /&gt;I can do a&lt;BR /&gt;wget --certificate=./my.pem --private-key=./my.key --ca-certificate=./myca.pem &lt;A href="https://xxx/nifi-api/flow/process-groups/root" target="_blank" rel="noopener"&gt;https://xxx/nifi-api/flow/process-groups/root&lt;/A&gt;&lt;BR /&gt;and get a correct output&lt;BR /&gt;&lt;BR /&gt;Can you help me get the corret output with the toolkit ?&lt;/P&gt;&lt;P&gt;Is it possible to log the toolkit requests / responses ?&lt;BR /&gt;&lt;BR /&gt;The stack trace I get with the toolkit is:&amp;nbsp;&lt;BR /&gt;org.apache.nifi.toolkit.cli.api.CommandException: Error executing command 'pg-list' : null&lt;BR /&gt;at org.apache.nifi.toolkit.cli.impl.command.nifi.AbstractNiFiCommand.doExecute(AbstractNiFiCommand.java:65)&lt;BR /&gt;at org.apache.nifi.toolkit.cli.impl.command.AbstractPropertyCommand.execute(AbstractPropertyCommand.java:74)&lt;BR /&gt;at org.apache.nifi.toolkit.cli.impl.command.CommandProcessor.processCommand(CommandProcessor.java:252)&lt;BR /&gt;at org.apache.nifi.toolkit.cli.impl.command.CommandProcessor.processGroupCommand(CommandProcessor.java:233)&lt;BR /&gt;at org.apache.nifi.toolkit.cli.impl.command.CommandProcessor.process(CommandProcessor.java:188)&lt;BR /&gt;at org.apache.nifi.toolkit.cli.CLIMain.runSingleCommand(CLIMain.java:145)&lt;BR /&gt;at org.apache.nifi.toolkit.cli.CLIMain.main(CLIMain.java:72)&lt;BR /&gt;Caused by: java.lang.NullPointerException&lt;BR /&gt;at java.util.Comparator.lambda$comparing$77a9974f$1(Comparator.java:469)&lt;BR /&gt;at java.util.TimSort.countRunAndMakeAscending(TimSort.java:355)&lt;BR /&gt;at java.util.TimSort.sort(TimSort.java:220)&lt;BR /&gt;at java.util.Arrays.sort(Arrays.java:1512)&lt;BR /&gt;at java.util.ArrayList.sort(ArrayList.java:1462)&lt;BR /&gt;at org.apache.nifi.toolkit.cli.impl.result.nifi.ProcessGroupsResult.&amp;lt;init&amp;gt;(ProcessGroupsResult.java:50)&lt;BR /&gt;at org.apache.nifi.toolkit.cli.impl.command.nifi.pg.PGList.doExecute(PGList.java:78)&lt;BR /&gt;at org.apache.nifi.toolkit.cli.impl.command.nifi.pg.PGList.doExecute(PGList.java:40)&lt;BR /&gt;at org.apache.nifi.toolkit.cli.impl.command.nifi.AbstractNiFiCommand.doExecute(AbstractNiFiCommand.java:63)&lt;BR /&gt;... 6 more&lt;BR /&gt;&lt;BR /&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 09:42:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-toolkit-pg-list-fails-with-message-Error-executing/m-p/378119#M243430</guid>
      <dc:creator>Alf015</dc:creator>
      <dc:date>2023-10-25T09:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi toolkit pg-list fails with message : Error executing command 'pg-list' : null</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-toolkit-pg-list-fails-with-message-Error-executing/m-p/378125#M243435</link>
      <description>&lt;P&gt;The problem seemed to be caused by wrong access policies on PG under the root.&lt;BR /&gt;With the wrong credentials the name attribute of certain PG was not returned&lt;BR /&gt;in the response which caused pg-list to fail.&lt;BR /&gt;Adding read policy for the credentials on the PGs solved the case. ?!&lt;BR /&gt;&lt;BR /&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 12:35:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-toolkit-pg-list-fails-with-message-Error-executing/m-p/378125#M243435</guid>
      <dc:creator>Alf015</dc:creator>
      <dc:date>2023-10-25T12:35:38Z</dc:date>
    </item>
  </channel>
</rss>

