<?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 Re: Nifi CLI toolkit errors in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nifi-CLI-toolkit-errors/m-p/354630#M236952</link>
    <description>&lt;P&gt;I am using CLI version 1.16.3&lt;/P&gt;&lt;P&gt;So, I was thinking in this direction that this CLI supports only HTTPS connections.&lt;/P&gt;&lt;P&gt;and I must use&amp;nbsp;&lt;SPAN&gt;truststore and without it there is no way..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(But I don't want to complicate things by using truststore etc. as the remote server can only be accessed by secure ssh.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please let me know if i am thinking in right direction...&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Oct 2022 13:04:15 GMT</pubDate>
    <dc:creator>SandyClouds</dc:creator>
    <dc:date>2022-10-12T13:04:15Z</dc:date>
    <item>
      <title>Nifi CLI toolkit errors</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-CLI-toolkit-errors/m-p/354618#M236949</link>
      <description>&lt;P&gt;Hello Supporters,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use NIFI CLI toolkit so that I can load 100 parameters using parameter context. (doing it using UI is a tedious job and not appropriate for deployments as well)&amp;nbsp;&lt;/P&gt;&lt;P&gt;I installed Nifi toolkit on remote server. I generally ssh into this server from local and run my commands.&lt;/P&gt;&lt;P&gt;To see the UI, I use ssh tunnel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is only one user for this Nifi Instance (admin) and it don't have https certificates. (&lt;FONT size="2"&gt;Single User Authentication&lt;/FONT&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i start CLI prompt it works fine (below)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# sh cli.sh&lt;BR /&gt;CLI v1.16.3&lt;/P&gt;&lt;P&gt;Type 'help' to see a list of available commands, use tab to auto-complete.&lt;/P&gt;&lt;P&gt;Session loaded from /root/.nifi-cli.config&lt;/P&gt;&lt;P&gt;#&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I use any Nifi commands, it throws below error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#&amp;gt; nifi list-param-contexts -u &lt;A href="http://localhost:8443/" target="_blank" rel="noopener"&gt;http://localhost:8443/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;ERROR: Error executing command 'list-param-contexts' : Unexpected end of file from server&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if I use https ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;#&amp;gt; nifi list-param-contexts -u &lt;A href="https://localhost:8443/" target="_blank" rel="noopener"&gt;https://localhost:8443/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;ERROR: Error executing command 'list-param-contexts' : truststore, truststoreType, and truststorePasswd are required when using an https url&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I don't use truststore or passwords for single admin user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also commands related to Registry working fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#&amp;gt; registry current-user -u &lt;A href="http://localhost:18080" target="_blank" rel="noopener"&gt;http://localhost:18080&lt;/A&gt;&lt;BR /&gt;anonymous&lt;BR /&gt;&lt;BR /&gt;#&amp;gt; registry list-buckets -u &lt;A href="http://localhost:18080" target="_blank" rel="noopener"&gt;http://localhost:18080&lt;/A&gt;&lt;/P&gt;&lt;P&gt;# Name Id Description&lt;BR /&gt;- ------------ ------------------------------------ -----------&lt;BR /&gt;1 First-bucket 8a3da253-f635-4b01-941f-bfb6437cead7&lt;BR /&gt;2 delete 4df052fd-fddc-4e7b-b4ea-bb3b8b691385&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this something related to https/URI&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;I don't find much information online for this issue and I was struck from many days..&lt;/P&gt;&lt;P&gt;Please help me solve this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/31438"&gt;@TimothySpann&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/11191"&gt;@araujo&lt;/a&gt;&amp;nbsp;Sincere request to help me find the problem..&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 10:23:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-CLI-toolkit-errors/m-p/354618#M236949</guid>
      <dc:creator>SandyClouds</dc:creator>
      <dc:date>2022-10-12T10:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi CLI toolkit errors</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-CLI-toolkit-errors/m-p/354630#M236952</link>
      <description>&lt;P&gt;I am using CLI version 1.16.3&lt;/P&gt;&lt;P&gt;So, I was thinking in this direction that this CLI supports only HTTPS connections.&lt;/P&gt;&lt;P&gt;and I must use&amp;nbsp;&lt;SPAN&gt;truststore and without it there is no way..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(But I don't want to complicate things by using truststore etc. as the remote server can only be accessed by secure ssh.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please let me know if i am thinking in right direction...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 13:04:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-CLI-toolkit-errors/m-p/354630#M236952</guid>
      <dc:creator>SandyClouds</dc:creator>
      <dc:date>2022-10-12T13:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi CLI toolkit errors</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-CLI-toolkit-errors/m-p/354776#M236984</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Update&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So i copied the details of nifi.security.keystore&lt;/P&gt;&lt;P&gt;nifi.security.truststore&lt;/P&gt;&lt;P&gt;nifi.security.truststorePasswd&lt;/P&gt;&lt;P&gt;nifi.security.truststoreType&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;from&amp;nbsp;nifi.properties file of my nifi installation and pasted them in the properties file of toolkit&lt;/P&gt;&lt;P&gt;nifi-toolkit-1.16.3/conf/cli.properties&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now when i try to run the cli commands i get a new error.. seems I am close but not yet done...&lt;/P&gt;&lt;P&gt;below is the error:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"ERROR: Error executing command 'list-param-contexts' : Error retrieving parameter contexts: Client certificate for (CN=localhost) is expired."&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I renew this expired certificate ?&amp;nbsp; I wonder why CLI is not so straight forward!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me in this regards..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 15:05:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-CLI-toolkit-errors/m-p/354776#M236984</guid>
      <dc:creator>SandyClouds</dc:creator>
      <dc:date>2022-10-13T15:05:55Z</dc:date>
    </item>
  </channel>
</rss>

