Skip to content

Commit

Permalink
updated for HDF 2.1/Nifi 1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
abajwa-hw committed Dec 13, 2016
1 parent 3b9d327 commit 843d068
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ Features:
- Includes metrics widgets from [here](https://cwiki.apache.org/confluence/display/NIFI/Ambari+Metrics)

Updates:
- Sept-14-2016: updated to support installing HDF 2.0.0.0 (Nifi 1.0) on Ambari 2.4/HDP 2.5 tech preview build/VM
- Dec-12-2016: updated to support installing HDF 2.1.0.0 (Nifi 1.1) on Ambari 2.4/HDP 2.5
- Sept-14-2016: updated to support installing HDF 2.0.0.0 (Nifi 1.0) on Ambari 2.4/HDP 2.5
- 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:
Expand Down
2 changes: 1 addition & 1 deletion metainfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<name>NIFI</name>
<displayName>NiFi</displayName>
<comment>Apache NiFi is an easy to use, powerful, and reliable system to process and distribute data. &lt;b&gt; This service is for demo purposes only and not officially supported &lt;/b&gt;</comment>
<version>1.0.0-DEMO</version>
<version>1.1.0-DEMO</version>
<components>
<component>
<name>NIFI_MASTER</name>
Expand Down
3 changes: 2 additions & 1 deletion package/scripts/master.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def install(self, env):

#Execute('unzip '+params.temp_file+' -d ' + params.nifi_install_dir + ' >> ' + params.nifi_log_file, user=params.nifi_user)
Execute('tar -xf '+params.temp_file+' -C '+ params.nifi_dir +' >> ' + params.nifi_log_file, user=params.nifi_user)
Execute('mv '+params.nifi_dir+'/*/*/* ' + params.nifi_dir, user=params.nifi_user)
#Execute('mv '+params.nifi_dir+'/*/*/* ' + params.nifi_dir, user=params.nifi_user)
Execute('mv '+params.nifi_dir+'/*/* ' + params.nifi_dir, user=params.nifi_user)
Execute('find '+params.nifi_dir+' -type d -empty -delete', user=params.nifi_user)

self.configure(env, True)
Expand Down
7 changes: 5 additions & 2 deletions package/scripts/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@
# snapshot_package='http://public-repo-1.hortonworks.com/HDF/centos6/1.x/updates/1.2.0.1/HDF-1.2.0.1-1.zip'

# HDF 2.0
snapshot_package='http://public-repo-1.hortonworks.com/HDF/2.0.0.0/HDF-2.0.0.0-579.tar.gz'

# snapshot_package='http://public-repo-1.hortonworks.com/HDF/2.0.0.0/HDF-2.0.0.0-579.tar.gz'

# HDF 2.1
snapshot_package='http://public-repo-1.hortonworks.com/HDF/centos6/2.x/updates/2.1.0.0/tars/nifi/nifi-1.1.0.2.1.0.0-165-bin.tar.gz'

# params from nifi-ambari-config
nifi_install_dir = config['configurations']['nifi-ambari-config']['nifi.install_dir']
nifi_port = config['configurations']['nifi-ambari-config']['nifi.port']
Expand Down

0 comments on commit 843d068

Please sign in to comment.