<?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: scaling node on cluster with open id and ca-cert server in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/scaling-node-on-cluster-with-open-id-and-ca-cert-server/m-p/199758#M76699</link>
    <description>&lt;P&gt;I use puppet to provision my server I cannot use Ambari (AFAIK).&lt;/P&gt;&lt;P&gt;or do you know a way to automate the cluster setup, with aws auto-scalling groups for the nodes ?&lt;/P&gt;</description>
    <pubDate>Thu, 10 May 2018 03:37:30 GMT</pubDate>
    <dc:creator>kenshuri60</dc:creator>
    <dc:date>2018-05-10T03:37:30Z</dc:date>
    <item>
      <title>scaling node on cluster with open id and ca-cert server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/scaling-node-on-cluster-with-open-id-and-ca-cert-server/m-p/199754#M76695</link>
      <description>&lt;P&gt;
	Hello&lt;/P&gt;&lt;P&gt;
	I would like to ask you how to properly scale up a node automatically with nifi 1.5.0 and open-id.&lt;/P&gt;&lt;P&gt;
	Here is my config:&lt;/P&gt;&lt;P&gt;
	3 nodes, with zookeeper embedded, all the 3 nodes have the same -new style- authorizers.xml as following:&lt;/P&gt;&lt;PRE&gt;&amp;lt;authorizers&amp;gt;
    [[ content hidden ]]
&amp;lt;/authorizers&amp;gt;
&lt;/PRE&gt;&lt;P&gt;Then the nifi.properties for the zk nodes (only the interesting things):&lt;/P&gt;&lt;PRE&gt;# Site to Site properties
nifi.remote.input.host=
nifi.remote.input.secure=true
nifi.remote.input.socket.port=9997
nifi.remote.input.http.enabled=false

# web properties
nifi.web.http.host=
nifi.web.http.port=
nifi.web.https.host=nifi-test-zk-${id_of_the_node}.example.com
nifi.web.https.port=8443

# security
# keystorePasswd, keyPasswd, truststorePasswd, and keystore/truststore are
# generated with tls-toolkit client connecting to tls-toolkit server
nifi.security.keystore=/${somepath}/nifi/ssl/keystore.jks
nifi.security.keystoreType=jks
nifi.security.keystorePasswd=${keystorePasswd}
nifi.security.keyPasswd=${keyPasswd}
nifi.security.truststore=/${somepath}/nifi/ssl/truststore.jks
nifi.security.truststoreType=jks
nifi.security.truststorePasswd=${truststorePasswd}
nifi.security.needClientAuth=true
nifi.security.user.authorizer=managed-authorizer

# Cluster settings:
nifi.cluster.is.node=true
nifi.cluster.node.address=nifi-test-zk-${id_of_the_node}.example.com
nifi.cluster.node.protocol.port=9998

# Open ID
nifi.security.user.oidc.discovery.url=https://accounts.google.com/.well-known/openid-configuration
nifi.security.user.oidc.connect.timeout=5 secs
nifi.security.user.oidc.read.timeout=5 secs
nifi.security.user.oidc.client.id=${my_google_oauth_id}
nifi.security.user.oidc.client.secret=${my_google_oauth_key}
nifi.security.user.oidc.preferred.jwsalgorithm=
&lt;/PRE&gt;&lt;P&gt;To access the UI I have nginx on the node 1, with a proxy to the UI port as follow&lt;/P&gt;&lt;PRE&gt;server {
    listen      443 default;
    server_name nifi-test-zk-1.example.com;
    access_log  /var/log/nginx/nifi-test-zk-1.example.com-access.log;
    include     /etc/nginx/block.conf;
    error_page  500 502 503 504 /50x.html;

    location = /50x.html {
        root    /usr/share/nginx/html;
    }

    ssl                       on;
    ssl_certificate           /etc/nginx/ssl/wildcard.example.com.crt;
    ssl_certificate_key       /etc/nginx/ssl/wildcard.example.com.key;
    ssl_protocols             TLSv1 TLSv1.1 TLSv1.2;
    ssl_prefer_server_ciphers on;


    location / {
        proxy_set_header     X-Real-IP $remote_addr;
        proxy_set_header     X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header     Host $http_host;
        proxy_redirect       off;
        proxy_read_timeout   900;
        proxy_pass           &lt;A href="https://${ip_of_the_machine_or_localhost}:8443" target="_blank"&gt;https://${ip_of_the_machine_or_localhost}:8443&lt;/A&gt;;
    }
}
&lt;/PRE&gt;&lt;P&gt;The 3 nodes start correctly, I have the cluster running, I can login using google account. All is fine, the issue is when I add a non-zk node to the cluster. I am not sure how should look like the authorizers.xml file. I have read that it should be empty so it can inherit from the cluster while joining there we go:&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&amp;gt;
&amp;lt;authorizers&amp;gt;
    [[ content hidden ]]
&amp;lt;/authorizers&amp;gt;
&lt;/PRE&gt;&lt;P&gt;I am also not quite sure how should the following nifi.properies keys be set up:&lt;/P&gt;&lt;PRE&gt;nifi.cluster.node.address=${ ? ip or hostname? }
nifi.web.https.host=${ ? ip or hostname? }
&lt;/PRE&gt;&lt;P&gt;I tried both setting IP and hostname and I have the following error while accessing the UI from zk-node-1:&lt;/P&gt;&lt;PRE&gt;javax.ws.rs.ProcessingException: java.net.UnknownHostException: nifi-test-i-0069cf32f0939dfb0.example.com&lt;/PRE&gt;&lt;P&gt;I provision all the nodes with puppet, the 3 zk nodes have static hostname with DNS record and have the same authorizers.xml with the 3 nodes set in it. For the 4th and + nodes, they are also provisioned with puppet, so the hostname is automatically set with an id in it, meaning I don't have any DNS records for it.&lt;/P&gt;&lt;P&gt;I access the UI only with the zk node 1 for now (it might be also good to know if we can have a load balancer for the UI? I tried but I have some problem with cert hostname mismatch - new in 1.5.0 I guess?).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The question is&lt;/STRONG&gt;, what am I doing wrong that my 4th node get blocked at some point preventing me to access the UI at all? I need to have it all automated, so adding the 4node identity to the authorizers.zml is really not an option.&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 13:02:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/scaling-node-on-cluster-with-open-id-and-ca-cert-server/m-p/199754#M76695</guid>
      <dc:creator>kenshuri60</dc:creator>
      <dc:date>2022-09-16T13:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: scaling node on cluster with open id and ca-cert server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/scaling-node-on-cluster-with-open-id-and-ca-cert-server/m-p/199755#M76696</link>
      <description>&lt;P&gt;no ideas ? &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 15:44:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/scaling-node-on-cluster-with-open-id-and-ca-cert-server/m-p/199755#M76696</guid>
      <dc:creator>kenshuri60</dc:creator>
      <dc:date>2018-04-04T15:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: scaling node on cluster with open id and ca-cert server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/scaling-node-on-cluster-with-open-id-and-ca-cert-server/m-p/199756#M76697</link>
      <description>&lt;P&gt;Still in need of help if anyone have an idea &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 19:34:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/scaling-node-on-cluster-with-open-id-and-ca-cert-server/m-p/199756#M76697</guid>
      <dc:creator>kenshuri60</dc:creator>
      <dc:date>2018-05-09T19:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: scaling node on cluster with open id and ca-cert server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/scaling-node-on-cluster-with-open-id-and-ca-cert-server/m-p/199757#M76698</link>
      <description>&lt;P&gt;Follow the Ambari setup and use that cluster approach&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 21:40:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/scaling-node-on-cluster-with-open-id-and-ca-cert-server/m-p/199757#M76698</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2018-05-09T21:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: scaling node on cluster with open id and ca-cert server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/scaling-node-on-cluster-with-open-id-and-ca-cert-server/m-p/199758#M76699</link>
      <description>&lt;P&gt;I use puppet to provision my server I cannot use Ambari (AFAIK).&lt;/P&gt;&lt;P&gt;or do you know a way to automate the cluster setup, with aws auto-scalling groups for the nodes ?&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 03:37:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/scaling-node-on-cluster-with-open-id-and-ca-cert-server/m-p/199758#M76699</guid>
      <dc:creator>kenshuri60</dc:creator>
      <dc:date>2018-05-10T03:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: scaling node on cluster with open id and ca-cert server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/scaling-node-on-cluster-with-open-id-and-ca-cert-server/m-p/199759#M76700</link>
      <description>&lt;P&gt;found how to do it.&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 21:53:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/scaling-node-on-cluster-with-open-id-and-ca-cert-server/m-p/199759#M76700</guid>
      <dc:creator>kenshuri60</dc:creator>
      <dc:date>2018-05-22T21:53:25Z</dc:date>
    </item>
  </channel>
</rss>

