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 the Advanced NiFi Properties in Ambari:
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 host header to match the host port being used by Knox.
In the Advanced topology section in Ambari, add the following information to the nifi.web.proxy.host property:
$HOSTNAME:$PORTNUMBER