Tools for Using Hadoop with OneFS
Project description
Isilon Hadoop Tools
Tools for Using Hadoop with OneFS
isilon_create_users
creates identities needed by Hadoop distributions compatible with OneFS.isilon_create_directories
creates a directory structure with appropriate ownership and permissions in HDFS on OneFS.
Installation
Isilon Hadoop Tools (IHT) currently requires Python 3.7+ and supports OneFS 8+.
- Python support schedules can be found in the Python Developer's Guide.
- OneFS support schedules can be found in the PowerScale OneFS Product Availability Guide.
Option 1: Install as a stand-alone command line tool.
Use pipx
to install IHT.
pipx
requires Python 3.7 or later.
-
python3 -m pip install --user pipx
- Tip: Newer versions of some Linux distributions (e.g. Debian 10, Ubuntu 19.04, etc.) offer native packages for
pipx
.
python3 -m pipx ensurepath
- Note: You may need to restart your terminal for the
$PATH
updates to take effect.
- Tip: Newer versions of some Linux distributions (e.g. Debian 10, Ubuntu 19.04, etc.) offer native packages for
-
Use
pipx
to installisilon_hadoop_tools
:pipx install isilon_hadoop_tools
-
Test the installation:
isilon_create_users --help isilon_create_directories --help
-
Use
pipx
to uninstall at any time:pipx uninstall isilon_hadoop_tools
See Python's Installing stand alone command line tools guide for more information.
Option 2: Create an ephemeral installation.
Use pip
to install IHT in a virtual environment.
Python "Virtual Environments" allow Python packages to be installed in an isolated location for a particular application, rather than being installed globally.
-
Use the built-in
venv
module to create a virtual environment:python3 -m venv ./iht
-
Install
isilon_hadoop_tools
into the virtual environment:iht/bin/pip install isilon_hadoop_tools
-
Note: This requires access to an up-to-date Python Package Index (PyPI, usually https://pypi.org/). For offline installations, necessary resources can be downloaded to a USB flash drive which can be used instead:
pip3 download --dest /media/usb/iht-dists isilon_hadoop_tools
iht/bin/pip install --no-index --find-links /media/usb/iht-dists isilon_hadoop_tools
-
-
Test the installation:
iht/bin/isilon_create_users --help
-
Tip: Some users find it more convenient to "activate" the virtual environment (which prepends the virtual environment's
bin/
to$PATH
):source iht/bin/activate isilon_create_users --help isilon_create_directories --help deactivate
-
-
Remove the virtual environment to uninstall at any time:
rm --recursive iht/
See Python's Installing Packages tutorial for more information.
Usage
- Tip:
--help
can be used with any IHT script to see extended usage information.
To use IHT, you will need the following:
$onefs
, an IP address, hostname, or SmartConnect name associated with the OneFS System zone- Unfortunately, Zone-specific Role-Based Access Control (ZRBAC) is not fully supported by OneFS's RESTful Access to Namespace (RAN) service yet, which is required by
isilon_create_directories
.
- Unfortunately, Zone-specific Role-Based Access Control (ZRBAC) is not fully supported by OneFS's RESTful Access to Namespace (RAN) service yet, which is required by
$iht_user
, a OneFS System zone user with the following privileges:ISI_PRIV_LOGIN_PAPI
ISI_PRIV_AUTH
ISI_PRIV_HDFS
ISI_PRIV_IFS_BACKUP
(only needed byisilon_create_directories
)ISI_PRIV_IFS_RESTORE
(only needed byisilon_create_directories
)
$zone
, the name of the access zone on OneFS that will host HDFS- The System zone should NOT be used for HDFS.
$dist
, the distribution of Hadoop that will be deployed with OneFS (e.g. CDH, HDP, etc.)$cluster_name
, the name of the Hadoop cluster
Connecting to OneFS via HTTPS
OneFS ships with a self-signed SSL/TLS certificate by default, and such a certificate will not be verifiable by any well-known certificate authority. If you encounter CERTIFICATE_VERIFY_FAILED
errors while using IHT, it may be because OneFS is still using the default certificate. To remedy the issue, consider encouraging your OneFS administrator to install a verifiable certificate instead. Alternatively, you may choose to skip certificate verification by using the --no-verify
option, but do so at your own risk!
Preparing OneFS for Hadoop Deployment
Note: This is not meant to be a complete guide to setting up Hadoop with OneFS. If you stumbled upon this page or have not otherwise consulted the appropriate install guide for your distribution, please do so at https://community.emc.com/docs/DOC-61379.
There are 2 tools in IHT that are meant to assist with the setup of OneFS as HDFS for a Hadoop cluster:
isilon_create_users
, which creates users and groups that must exist on all hosts in the Hadoop cluster, including OneFSisilon_create_directories
, which sets the correct ownership and permissions on directories in HDFS on OneFS
These tools must be used in order since a user/group must exist before it can own a directory.
isilon_create_users
Using the information from above, an invocation of isilon_create_users
could look like this:
isilon_create_users --dry \
--onefs-user "$iht_user" \
--zone "$zone" \
--dist "$dist" \
--append-cluster-name "$cluster_name" \
"$onefs"
- Note:
--dry
causes the script to log without executing. Use it to ensure the script will do what you intend before actually doing it.
If anything goes wrong (e.g. the script stopped because you forgot to give $iht_user
the ISI_PRIV_HDFS
privilege), you can safely rerun with the same options. IHT should figure out that some of its job has been done already and work with what it finds.
- If a particular user/group already exists with a particular UID/GID, the ID it already has will be used.
- If a particular UID/GID is already in use by another user/group, IHT will try again with a different, higher ID.
- IHT may NOT detect previous runs that used different options.
Generated Shell Script
After running isilon_create_users
, you will find a new file in $PWD
named like so:
$unix_timestamp-$zone-$dist-$cluster_name.sh
This script should be copied to and run on all the other hosts in the Hadoop cluster (excluding OneFS).
It will create the same users/groups with the same UIDs/GIDs and memberships as on OneFS using LSB utilities such as groupadd
, useradd
, and usermod
.
isilon_create_directories
Using the information from above, an invocation of isilon_create_directories
could look like this:
isilon_create_directories --dry \
--onefs-user "$iht_user" \
--zone "$zone" \
--dist "$dist" \
--append-cluster-name "$cluster_name" \
"$onefs"
- Note:
--dry
causes the script to log without executing. Use it to ensure the script will do what you intend before actually doing it.
If anything goes wrong (e.g. the script stopped because you forgot to run isilon_create_users
first), you can safely rerun with the same options. IHT should figure out that some of its job has been done already and work with what it finds.
- If a particular directory already exists but does not have the correct ownership or permissions, IHT will correct it.
- If a user/group has been deleted and re-created with a new UID/GID, IHT will adjust ownership accordingly.
- IHT may NOT detect previous runs that used different options.
Development
See the Contributing Guidelines for information on project development.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file isilon_hadoop_tools-5.0.1.tar.gz
.
File metadata
- Download URL: isilon_hadoop_tools-5.0.1.tar.gz
- Upload date:
- Size: 602.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db468ae81989e36ba3cd4c434bc0961b7d9e44a3e21a1b60d6da0df7b412d9af |
|
MD5 | 892ec6687120335707fecae029a81cf6 |
|
BLAKE2b-256 | 26442315552b2422649dcaddce739bcc47263767201360e4e581be361e2cffc6 |
File details
Details for the file isilon_hadoop_tools-5.0.1-py3-none-any.whl
.
File metadata
- Download URL: isilon_hadoop_tools-5.0.1-py3-none-any.whl
- Upload date:
- Size: 26.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09dae8b17fa7fea7569c133f7729e390fa8d25ad6f4546b2433144d16091fa42 |
|
MD5 | 35cf4db0c2076c60847879f0f9024d43 |
|
BLAKE2b-256 | 73a0359c71d5492d52281595e5397e86cb64564e315d18a0451069a5b4650893 |