How To Install clustershell on CentOS 8

clustershell is Python framework for efficient cluster administration

Introduction

In this tutorial we learn how to install clustershell on CentOS 8.

What is clustershell

ClusterShell is a set of tools and a Python library to execute commands on cluster nodes in parallel depending on selected engine and worker mechanisms. Advanced node sets and node groups handling methods are provided to ease and improve the daily administration of large compute clusters or server farms. Command line utilities like clush, clubak and nodeset (or cluset) allow traditional shell scripts to take benefit of the features offered by the library.

We can use yum or dnf to install clustershell on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install clustershell.

Install clustershell on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install clustershell using dnf by running the following command:

sudo dnf -y install clustershell

Install clustershell on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install clustershell using yum by running the following command:

sudo yum -y install clustershell

How To Uninstall clustershell on CentOS 8

To uninstall only the clustershell package we can use the following command:

sudo dnf remove clustershell

clustershell Package Contents on CentOS 8

/etc/clustershell
/etc/clustershell/clush.conf
/etc/clustershell/groups
/etc/clustershell/groups.conf
/etc/clustershell/groups.conf.d
/etc/clustershell/groups.conf.d/README
/etc/clustershell/groups.conf.d/genders.conf.example
/etc/clustershell/groups.conf.d/slurm.conf.example
/etc/clustershell/groups.d
/etc/clustershell/groups.d/README
/etc/clustershell/groups.d/cluster.yaml.example
/etc/clustershell/groups.d/local.cfg
/etc/clustershell/topology.conf.example
/usr/share/doc/clustershell
/usr/share/doc/clustershell/COPYING.LGPLv2.1
/usr/share/doc/clustershell/ChangeLog
/usr/share/doc/clustershell/README.md
/usr/share/doc/clustershell/examples
/usr/share/doc/clustershell/examples/check_nodes.py
/usr/share/doc/clustershell/examples/defaults.conf-rsh
/usr/share/doc/clustershell/sphinx
/usr/share/doc/clustershell/sphinx/Makefile
/usr/share/doc/clustershell/sphinx/_static
/usr/share/doc/clustershell/sphinx/_static/clustershell-nautilus-logo200.png
/usr/share/doc/clustershell/sphinx/_static/theme_overrides.css
/usr/share/doc/clustershell/sphinx/api
/usr/share/doc/clustershell/sphinx/api/Defaults.rst
/usr/share/doc/clustershell/sphinx/api/EngineTimer.rst
/usr/share/doc/clustershell/sphinx/api/Event.rst
/usr/share/doc/clustershell/sphinx/api/MsgTree.rst
/usr/share/doc/clustershell/sphinx/api/NodeSet.rst
/usr/share/doc/clustershell/sphinx/api/NodeUtils.rst
/usr/share/doc/clustershell/sphinx/api/RangeSet.rst
/usr/share/doc/clustershell/sphinx/api/Task.rst
/usr/share/doc/clustershell/sphinx/api/index.rst
/usr/share/doc/clustershell/sphinx/api/workers
/usr/share/doc/clustershell/sphinx/api/workers/ExecWorker.rst
/usr/share/doc/clustershell/sphinx/api/workers/StreamWorker.rst
/usr/share/doc/clustershell/sphinx/api/workers/Worker.rst
/usr/share/doc/clustershell/sphinx/api/workers/WorkerPdsh.rst
/usr/share/doc/clustershell/sphinx/api/workers/WorkerPopen.rst
/usr/share/doc/clustershell/sphinx/api/workers/WorkerRsh.rst
/usr/share/doc/clustershell/sphinx/api/workers/WorkerSsh.rst
/usr/share/doc/clustershell/sphinx/api/workers/index.rst
/usr/share/doc/clustershell/sphinx/clustershell-nautilus-logo200.png
/usr/share/doc/clustershell/sphinx/conf.py
/usr/share/doc/clustershell/sphinx/config.rst
/usr/share/doc/clustershell/sphinx/further.rst
/usr/share/doc/clustershell/sphinx/guide
/usr/share/doc/clustershell/sphinx/guide/examples.rst
/usr/share/doc/clustershell/sphinx/guide/index.rst
/usr/share/doc/clustershell/sphinx/guide/nodesets.rst
/usr/share/doc/clustershell/sphinx/guide/rangesets.rst
/usr/share/doc/clustershell/sphinx/guide/taskmgnt.rst
/usr/share/doc/clustershell/sphinx/index.rst
/usr/share/doc/clustershell/sphinx/install.rst
/usr/share/doc/clustershell/sphinx/intro.rst
/usr/share/doc/clustershell/sphinx/release.rst
/usr/share/doc/clustershell/sphinx/tools
/usr/share/doc/clustershell/sphinx/tools/clubak.rst
/usr/share/doc/clustershell/sphinx/tools/cluset.rst
/usr/share/doc/clustershell/sphinx/tools/clush.rst
/usr/share/doc/clustershell/sphinx/tools/index.rst
/usr/share/doc/clustershell/sphinx/tools/nodeset.rst
/usr/share/man/man1/clubak.1.gz
/usr/share/man/man1/cluset.1.gz
/usr/share/man/man1/clush.1.gz
/usr/share/man/man1/nodeset.1.gz
/usr/share/man/man5/clush.conf.5.gz
/usr/share/man/man5/groups.conf.5.gz
/usr/share/vim/vimfiles/ftdetect/clustershell.vim
/usr/share/vim/vimfiles/syntax/clushconf.vim
/usr/share/vim/vimfiles/syntax/groupsconf.vim

References

Summary

In this tutorial we learn how to install clustershell on CentOS 8 using yum and dnf.