All Projects → minyk → nifi-sandbox

minyk / nifi-sandbox

Licence: other
Sandbox for Apache nifi

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to nifi-sandbox

private-networks-deployment-scripts
This repository contains out-of-the-box deployment scripts for private PoA networks
Stars: ✭ 33 (+57.14%)
Mutual labels:  vagrant, sandbox
vagrant
Development repository for the vagrant cookbook
Stars: ✭ 54 (+157.14%)
Mutual labels:  vagrant
New-Machine
Utilizing Vagrant, Packer, Chocolatey, and Boxstarter to Configure my Dev Machines
Stars: ✭ 26 (+23.81%)
Mutual labels:  vagrant
windows-lab
Windows Automated Lab with Vagrant
Stars: ✭ 78 (+271.43%)
Mutual labels:  vagrant
DavesMapper
The juicy bits behind Dave's Mapper
Stars: ✭ 16 (-23.81%)
Mutual labels:  vagrant
alpine-vagrant
This builds an up-to-date Vagrant Alpine Linux Base Box
Stars: ✭ 22 (+4.76%)
Mutual labels:  vagrant
dairybox
Local development VM and tools for Jammer Core
Stars: ✭ 32 (+52.38%)
Mutual labels:  vagrant
daf-kylo
Kylo integration with PDND (previously DAF).
Stars: ✭ 20 (-4.76%)
Mutual labels:  nifi
SandboxJS
Safe eval runtime
Stars: ✭ 18 (-14.29%)
Mutual labels:  sandbox
packer-ubuntu-18.04
packer example - Ubuntu Server 18.04.5
Stars: ✭ 37 (+76.19%)
Mutual labels:  vagrant
broom
A disk cleaning utility for developers.
Stars: ✭ 38 (+80.95%)
Mutual labels:  vagrant
Cattle
🐺 Platform to Run and Share Code. It Supports PHP, Python, Ruby, Java, Go, Rust, C and C++.
Stars: ✭ 40 (+90.48%)
Mutual labels:  sandbox
appside
Multitenant environment automation.
Stars: ✭ 36 (+71.43%)
Mutual labels:  vagrant
fake-sandbox
👁‍🗨 This script will simulate fake processes of analysis sandbox/VM software that some malware will try to avoid.
Stars: ✭ 110 (+423.81%)
Mutual labels:  sandbox
docker-swarm-vagrant
Getting started with Docker swarm
Stars: ✭ 20 (-4.76%)
Mutual labels:  vagrant
marvin-vagrant-dev
No description or website provided.
Stars: ✭ 26 (+23.81%)
Mutual labels:  vagrant
ants
Awesome Networking Tools Sandbox
Stars: ✭ 21 (+0%)
Mutual labels:  vagrant
qubes-app-split-browser
Tor Browser (or Firefox) in a Qubes DisposableVM, with persistent bookmarks and login credentials
Stars: ✭ 33 (+57.14%)
Mutual labels:  sandbox
ansible-roles
Library of Ansible plugins and roles for deploying various services.
Stars: ✭ 14 (-33.33%)
Mutual labels:  vagrant
vagrant-alm
An excerpt of an ALM environment built on top of Vagrant, Libvirt and Ansible
Stars: ✭ 44 (+109.52%)
Mutual labels:  vagrant

Sandbox for Apache nifi

Introduction

Vagrant project to spin up a cluster of 1 virtual machine with Hadoop 3.2.2, Kafka 1.0.0, Nifi 1.14.0 and Nifi Registry 1.14.0.

Currently, Nifi and Nifi Registry integration needs to be setup by manually. See this document: https://community.hortonworks.com/articles/161761/new-features-in-apache-nifi-15-apache-nifi-registr.html Nifi Registry should be running at http://localhost:18080.

Getting Started

  1. Download and install VirtualBox
  2. Download and install Vagrant.
  3. Run vagrant box add geerlingguy/centos7
  4. Git clone this project, and change directory (cd) into this project (directory).
  5. Run vagrant up to create the VM.
  6. Run vagrant ssh to get into your VM.
  7. Run vagrant destroy when you want to destroy and get rid of the VM.

Some gotcha's.

  1. Make sure you download Vagrant v2.2.17 or higher.
  2. Make sure when you clone this project, you preserve the Unix/OSX end-of-line (EOL) characters. The scripts will fail with Windows EOL characters.
  3. Make sure you have 4Gb of free memory for the VM. You may change the Vagrantfile to specify smaller memory requirements.
  4. This project has NOT been tested with the VMWare provider for Vagrant.
  5. You may change the script (common.sh) to point to a different location for Hadoop, Kafka and Nifi to be downloaded from. Here is a list of mirrors for Hadoop: http://www.apache.org/dyn/closer.cgi/hadoop/common/.
  6. Basically, Hadoop YARN is installed, but not started. If you want YARN Service, uncomment YARN section of scripts/init-start-all-services.sh and scripts/start-all-services.sh.

Advanced Stuff

-If you have the resources (CPU + Disk Space + Memory), you may modify Vagrantfile to have even more HDFS DataNodes, YARN NodeManagers. Just find the line that says "numNodes = 4" in Vagrantfile and increase that number. The scripts should dynamically provision the additional slaves for you.-

How to Change Stack Versions

Edit variables in scripts/common.sh.

OS

nifi-sandbox uses CentOS 6.8 for default. It can be changed to other version/distribution. Just edit the Vagrantfile's following lines:

    node.vm.box = "geerlingguy/centos7"

Make sure the OS box has virtualbox guest addition.

java

Default settings use jdk-8u91-linux-x64.tar.gz or java-1.8.0-openjdk.x86_64. Edit following lines from scripts/common.sh for oracle JDK:

#java
JAVA_ARCHIVE=jdk-8u91-linux-x64.tar.gz

In case of OpenJDK, edit scripts/setup-java.sh:

function installRemoteJava {
	echo "install open jdk"
	yum install -y java-1.8.0-openjdk.x86_64
}

hadoop

Hadoop version is described in scripts/common.sh:

HADOOP_VERSION=2.7.3
HADOOP_ARCHIVE=hadoop-${HADOOP_VERSION}.tar.gz
HADOOP_MIRROR_DOWNLOAD=http://archive.apache.org/dist/hadoop/core/hadoop-${HADOOP_VERSION}/${HADOOP_ARCHIVE}

To build the sandbox, Make sure HADOOP_MIRROR_DOWNLOAD is available for downloading.

Kafka

Kafka version is described in scripts/common.sh

#Kafka
KAFKA_VERSION=1.0.0
KAFKA_NAME=kafka_2.10-${KAFKA_VERSION}
KAFKA_ARCHIVE=${KAFKA_NAME}.tgz
KAFKA_MIRROR_DOWNLOAD=http://www.apache.org/dist/kafka/${KAFKA_VERSION}/${KAFKA_ARCHIVE}
KAFKA_RES_DIR=/vagrant/resources/kafka
KAFKA_HOME=/usr/local/kafka
KAFKA_CONF=${KAFKA_HOME}/conf

Nifi

Nifi version is described in scripts/common.sh

#Nifi
NIFI_VERSION=1.14.0
NIFI_NAME=nifi-${NIFI_VERSION}
NIFI_ARCHIVE=${NIFI_NAME}-bin.tar.gz
NIFI_MIRROR_DOWNLOAD=http://www.apache.org/dist/${NIFI_VERSION}/${NIFI_ARCHIVE}
NIFI_RES_DIR=/vagrant/resources/nifi
NIFI_HOME=/usr/local/nifi
NIFI_CONF=$NIFI_HOME/config

Make the VMs setup faster

You can make the VM setup even faster if you pre-download the Hadoop, Kafka and Oracle JDK into the /resources directory.

  1. /resources/hadoop-3.2.2.tar.gz
  2. /resources/jdk-8u152-linux-x64.gz
  3. /resources/kafka_2.11-1.0.0.tgz
  4. /resources/nifi-1.14.0-bin.tar.gz

The setup script will automatically detect if these files (with precisely the same names) exist and use them instead. If you are using slightly different versions, you will have to modify the script accordingly.

Web UI

You can check the following URLs to monitor the Hadoop daemons.

  1. [NameNode] (http://10.10.10.101:9870/dfshealth.html)
  2. [Nifi] (http://10.10.10.101:8080/nifi)
  3. [NifiRegistry] (http://10.10.10.101:18080/nifi-registry)

Vagrant box location

The Vagrant box is downloaded to the ~/.vagrant.d/boxes directory. On Windows, this is C:/Users/{your-username}/.vagrant.d/boxes.

Acknowledgements

This project is started from Jee Vang's vagrant-hadoop-2.4.1-spark-1.0.1. Thanks a lot.

License

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].