Skip to main content
JTorrandell
Silver ⭐️
May 15, 2020
Solved

CDF - configuring and managing isolated groups of nifi nodes

Hello.

 

I have a HDF 3.2 cluster shared for different developing groups. It is running correctly but it's quickly growing bigger and bigger and we've decided to set up different isolated groups of NiFi nodes in order to prevent that a collapse on one project affects all the projects.

 

Our first idea was to install new HDF clusters but we want to manage all the resources with one unique Ambari console and also we want to share other resources (Kafka, NiFi Registry) between all the groups, but I've read that older versions of Ambari doesn't support managing multiple clusters (I don't know if this is still true).

 

What would be the recommended approach? It is possible to manage isolated groups in one unique cluster or multiple clusters managed by different ambari each is the only solution?

 

PD: If upgrading to CDF last version is necessary, that's something we're open to (we're already planning to do this in the near future).

 

Many thanks for your help

 

dyadav1
dyadav1Answer
Gold ⭐️
May 26, 2020

In ambari you can create host configuration group and define the configs for those hosts instead of using default configuration by all the hosts. You can refer the below document for more details and steps:

 

https://docs.cloudera.com/HDPDocuments/Ambari-2.7.5.0/managing-and-monitoring-ambari/content/amb_managing_host_configuration_groups.html

5 replies

dyadav1
Gold ⭐️
dyadav1Answer
Gold ⭐️
May 26, 2020

In ambari you can create host configuration group and define the configs for those hosts instead of using default configuration by all the hosts. You can refer the below document for more details and steps:

 

https://docs.cloudera.com/HDPDocuments/Ambari-2.7.5.0/managing-and-monitoring-ambari/content/amb_managing_host_configuration_groups.html

Translate
MaurizioMR
Silver ⭐️⭐️
June 15, 2020

Hi!,

 

I have registered a new host to the HDF vía ambari agent, Then added the Nifi service and create a new config group for this new host, i have modified the Node Identities properties changing it to his name. But when i restart the Nifi service, it says 1/2 nodes on the Nifi UI. Looks like it tries to create a cluster and i need two separate nodes from each other. This is possible?

Translate
dyadav1
Gold ⭐️
Gold ⭐️
June 16, 2020

@MaurizioMR 

It seems, even if NIFI is standalone instance , you did set to run this is in Cluster mode by setting below property:

 

nifi.cluster.is.node=true

 

In this case, NIFI is set to run in cluster mode , It will go for the leader election processor and will send/create a heartbeat of and will send heartbeat to him or other nodes for processing.

 

Hence set this property to 'false' to run the NIFI nodes in standalone mode:

 

nifi.cluster.is.node=false

Translate