Installing NiFi on a New HDP Cluster
If you are installing NiFi on a new HDP installation, as opposed to an upgraded HDP installation, follow the instructions at Installing NiFi on a New HDP Cluster.
In addition to the steps found in Installing NiFi on a New HDP Cluster, make the following changes:
In addition to other settings for the Advanced nifi-ambari-ssl-config, add a node identity for the Knox node.
For example:
<property name="Node Identity 1">CN=$NIFI_HOSTNAME, OU=NIFI</property>
<property name="Node Identity 2">CN=$NIFI_HOSTNAME, OU=NIFI</property>
<property name="Node Identity 3">CN=$NIFI_HOSTNAME, OU=NIFI</property>
<property name="Node Identity 4">CN=$KNOX_HOSTNAME, OU=KNOX</property>
Add a new property to Advanced nifi-properties:
nifi.web.proxy.context.path=$GATEWAY_CONTEXT/default/nifi-app
Refer to the Knox configuration in Ambari,
$GATEWAY_CONTEXT
to determine what the path is for NiFi.Set the NiFi proxy host header value to match the Knox host and port.
In the Advanced topology section in Ambari, add the following information to the nifi.web.proxy.host property:
$HOSTNAME:$PORTNUMBER