This project contains some Bash scripts created for making the life easier.
Script for install Apache NiFi, NiFi Registry and NiFi toolkit.
Accepts args:
- the NiFi version to be installed (-v or --version)
- the NiFi user login (-l or --login)
- the NiFi user password (-p or --password)
- the installation dir (-d or -- dir)
Make sure your password is at least 12 characters long.
The version may not be specified, in which case the latest version will be installed
Adds environment variables:
NIFI_VERSION
NIFI_HOME
NIFI_REGISTRY_HOME
NIFI_TOOLKIT_HOME
NIFI_BOOTSTRAP_FILE
NIFI_PROPS_FILE
NIFI_REGISTRY_PROPS_FILE
NIFI_TOOLKIT_PROPS_FILE
NIFI_INPUT
NIFI_OUTPUT
Also script adds aliases for commands to start, stop, restart and get status
for NiFi (NIFI_START
, NIFI_STOP
, NIFI_RESTART
, NIFI_STATUS
) and
NiFi Registry (NIFI_REGISTRY_START
, NIFI_REGISTRY_STOP
, NIFI_REGISTRY_RESTART
, NIFI_REGISTRY_STATUS
):
Use command to run:
bash -i ./nifi_install.sh -v 1.23.2 -l admin -p strong_password -d /opt
If the specified environment variables or command aliases already exist, they are updated, otherwise they will be created. Does not require root rights.
Running in interactive mode is required to correctly detect existing aliases.
Script for apply recommended system settings for Apache NiFi described in Apache NiFi Development Quickstart. Requires root rights.
Script to check if JDK is installed and JAVA_HOME environment variable is correct. Does not require root rights.
Script to configure git options such as username, email, credentials and aliases.
Script to download files from Google Drive with wget. Arguments file ID and output filename.
Script for formatting text output (setting color, background, style).
Most of the files are intended to be placed in ~/bin, which is included in the PATH variable by default in most Unix systems.
Make scripts executable by this command: chmod +x <filename>
.
If you want to contribute, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push to your fork and create a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.