v2.0
Data Services & ECS Support, Optional hardware SKU/versioning
- Cluster Name
- Cluster Type (Exp, Base, Compute)
- Full Cluster unique identifier
- Cloudera Manager Full Version
- Cloudera Runtime Full Version
- List of Parcels on Cluster
- UUID portion of the license
- (Optional) Hardware distro, version, type
- Total nodes under management in each cluster
- Total Number of logical cores in each cluster
- Total Size of memory in each cluster
- Total allocated storage for HDFS in each cluster
- Total allocated storage for Ozone in each cluster
- Date/Time of report creation
- Referencing your local python installation, and from the folder you wish to create the output document in, enter the command
python -m venv venv
(orpython3
depending on how your python distro is aliased). This command creates a virtual environment for you topip
install the necessary packages from PyPi from. Note that if you get some kind of error on this step, it is likely because the python3 environment variable is not set, in which case you will have to use the fully qualified path of your python installation before the remainder of the command. - Run
source venv/bin/activate
to start the virtual environment. - Run
pip install -r requirements.txt
to install the necessary artifacts from PyPi to run the script (total size is ~35mbs). - Use
vim
or another similar command line editor to ensure theheartbeat_airgapped.conf
file has the proper configuration to run the script. - Execute the python script by running
python heartbeat_airgapped_v2.py
from within the virtual environment. - Copy the created file(s) wherever needed via
scp
,cp
, or a similar command and typedeactivate
to close the virtual environment.
Because of the nature of airgapped hosts, it may be that you are not able to connect to PyPi, or have access to the modules needed to run this script from a server. In the case that your organization does not have an internal image of PyPi (JFrog Artifactory, etc.) that you can reference from behind a proxy, run the code from your personal machine following the steps below:
- Referencing the local python distribution on your PC or Mac (if you dont have one you will need to install one), navigate to the folder you want to create your output document in and enter the command
python -m venv venv
. This command creates a virtual environment for you topip
install the necessary packages from PyPi from. Note that if you get some kind of error on this step, it is likely because the python3 environment variable is not set, in which case you will have to use the fully qualified path of your python installation before the remainder of the command. - Run
source venv/bin/activate
to start the virtual environment. - Run
pip install -r requirements.txt
to install the necessary artifacts from PyPi to run the script (total size is ~35mbs). - Use
vim
or another similar command line editor to ensure theheartbeat_airgapped.conf
file has the proper configuration to run the script. - Execute the python script by running
python heartbeat_airgapped_v2.py
from within the virtual environment. - Copy the created file(s) wherever needed via your local file browser and type
deactivate
to close the virtual environment.
The offline_pip_dependencies
folder is provided for totally airgapped customers to leverage if they do not have access to pip altogether. It contains the wheels and tars that a pip install pulling from PyPi or proxy of PyPi would provide.
Note that if the above still doesn't work, you can create the virtual environment on an internet-connected PC and copy the files to the host with a connection to the CM server after; however, you will have to symlink the python distro to your current python version on that host for the virtual environment to work there.
Running this script is subject to proper configuration / variable assignment in heartbeat_airgapped.conf
. It also presupposes proper folder ownership for the directory that the python script is executing from. This script was specifically designed for the most minimal set of permissions necessary, hence, READ ONLY permission is sufficient for the CM user you provide in heartbeat_airgapped.conf
to run the script.
heartbeat_airgapped_v2.py
- Runtime/Scriptheartbeat_airgapped.conf
- Configuration filerequirements.txt
- Pip requirements fileBasic Cluster (Kerberos)_2023-08-28 13:28:22.275554
- Sample output csv/offline_pip_dependencies
- Wheels and tars for offline pip install of dependencies/archive
- Archived/older versions
Copyright 2023, Cloudera, Inc.
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.