This project is a Flask web application for the HPE Ezmeral Data Fabric ToolBox. The application supports various functionalities such as FQDN setup, cleanup operations, and log collection.
This section describes the steps required to run the project on your local machine.
- Python 3.x
- Flask
-
Clone the project:
git clone [repo_link]
-
Install the required packages:
pip install -r requirements.txt
-
Run the application:
python flask_app.py
The application provides a series of API endpoints to support various functionalities:
/fqdn
: Main page for FQDN setup./cleanup
: Main page for cleanup operations./log_collection
: Main page for log collection operations.- ... [Refer to the code for other endpoints]
The application includes a customized logger capable of logging to both file and stdout. The logger is initiated with a variable named global_logger
and is used throughout the application.
If you wish to contribute to this project, please first create an issue to discuss the changes you wish to make.
This project is licensed under the [CUSTOM LICENSE] - see the LICENSE
file for more details.
Thanks to everyone who contributed to this project!
General Reference for Data Fabric Customer Documents: https://docs.ezmeral.hpe.com/
- /: 50 Gb - 275 Gb
- /var: 150 Gb - 175 Gb
- /srv: 100 Gb - 150 Gb
- /opt: 128 Gb - 150 Gb
- swap: 30 Gb
- No-Formatted: 100 Gb - 120 Gb
- Memory: 65 Gb - 100 Gb
- CPU: 16 Core
sudo nano /etc/sudoers
mapr
ALL=(ALL:ALL) NOPASSWD:ALL
sudo nano /etc/apt/sources.list
sudo apt install openssh-server neofetch htop net-tools -y
sudo nano /etc/apt/apt.conf.d/20auto-upgrades
APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";
APT::Periodic::Unattended-Upgrade "1";
sudo swapoff -a
sudo nano /etc/fstab
sudo nano /etc/sysctl.conf
vm.swappiness = 55
sudo sysctl --load
sudo nano ~/.bashrc
neofetch
ifconfig | grep "inet 10.34.2.*\n"
Set Root Password and SSH Configuration
sudo passwd root
sudo nano /etc/ssh/sshd_config
PermitRootLogin yes
PasswordAuthentication yes
ChallengeResponseAuthentication no
sudo systemctl restart sshd
ssh root@localhost
ssh root@localhost
usermod -u 5000 mapr
groupmod -g 5000 mapr
useradd -m -u $MAPR_UID -g $MAPR_GID -G $(stat -c '%G' /etc/shadow) $MAPR_USER
MAPR_USER defaults to mapr.
MAPR_UID defaults to 5000.
MAPR_GID defaults to 5000.
-
sudo chmod u+s /sbin/unix_chkpwd
-
sudo apt install openjdk-11-jre openjdk-11-jre-headless
-
Download the Mapr-Setup script:
wget --user=<user> --password=<password> https://package.ezmeral.hpe.com/releases/installer/mapr-setup.sh chmod +x mapr-setup.sh
-
Don’t forget to delete the “-T” value for the wget command in the
mapr-setup.sh
script. -
Execute the setup:
sudo ./mapr-setup.sh -r https://<user>:<password>@package.ezmeral.hpe.com/releases/
-
-
For every Node, you need to add the public key of the apt repository:
wget --user <user> --password <password> https://package.ezmeral.hpe.com/releases/installer/ubuntu/pub/maprgpg.key sudo apt-key add maprgpg.key
- Access the installer at
https://<Installer Node hostname/IPaddress>:9443
.
- Access the installer at
-
More details of the mapr-setup script can be found here.
-
For License search Data Fabric Community Edition, visit this link.
-
For the Installer Troubleshooting, refer to this guide.