Skip to content

Commit

Permalink
In single node mode, setting is.node=false to avoid lineage issues
Browse files Browse the repository at this point in the history
  • Loading branch information
abajwa-hw committed Sep 15, 2016
1 parent 19fb464 commit b8fa548
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 348 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Updates:
- Jul-10-2016: updated to support installing HDF 1.2.0.0 on Ambari 2.4/HDP 2.5 tech preview build/VM

Installing on older Ambari versions:
- Refer to [archive folder](https://github.com/abajwa-hw/ambari-nifi-service/tree/master/configuration) for older versions of the service definition
- Refer to [archives folder](https://github.com/abajwa-hw/ambari-nifi-service/tree/master/archives) for older versions of the service definition
- To install on Ambari 2.4 and earlier use HDF-1.2.0.0-Nifi-0.6.0.1.2.0.1.zip


Expand Down
160 changes: 0 additions & 160 deletions configuration/nifi-logback-env.xml.bak

This file was deleted.

2 changes: 1 addition & 1 deletion configuration/nifi-properties-env.xml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ nifi.cluster.protocol.heartbeat.interval=5 sec
nifi.cluster.protocol.is.secure=false

# cluster node properties (only configure for cluster nodes) #
nifi.cluster.is.node=true
nifi.cluster.is.node={{nifi_is_node}}
nifi.cluster.node.address={{nifi_node_host}}
nifi.cluster.node.protocol.port={{nifi_node_protocol_port}}
nifi.cluster.node.protocol.threads=10
Expand Down
186 changes: 0 additions & 186 deletions configuration/nifi-properties-env.xml.bak

This file was deleted.

5 changes: 5 additions & 0 deletions package/scripts/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@
nifi_num_nodes = len(master_configs['nifi_master_hosts'])
nifi_node_host = socket.getfqdn()

if nifi_num_nodes > 1:
nifi_is_node='true'
else:
nifi_is_node='false'

#detect zookeeper_quorum
zookeeper_port=default('/configurations/zoo.cfg/clientPort', None)
#get comma separated list of zookeeper hosts from clusterHostInfo
Expand Down

0 comments on commit b8fa548

Please sign in to comment.