Cloudera Manager sudo command options
To install, configure, start and stop the Cloudera Manager (CM), manage files, and so on, you can use the CM sudo commands.
Following is the list of sudo commands run by Cloudera Manager.
sudo yum
(RH6, RH7+) - Install or remove software.sudo apt-get
(Ubuntu) - Install or remove software.sudo apt-key
(Ubuntu) - Update Repository key.sudo sed
- Edit one or more text files (stream editor).sudo systemctl
(RH7+, Ubuntu) - Start, stop, or configure software.sudo service
(RH6) - Start or stop software.sudo /sbin/chkconfig sudo chkconfig
(RH6) - Configure software.sudo /usr/sbin/update-rc.d
(Ubuntu) - Configure software.sudo id
- Used for user identification.sudo chown
- Modify file ownership.sudo install
- Install software.sudo service
(RH6) - Start, stop, or restart the Cloudera Manager Server and Cloudera Manager Agents on the cluster hosts.sudo systemctl
(RH7+, Ubuntu) - Start, stop, or restart the Cloudera Manager Server and Cloudera Manager Agents on the cluster hosts.sudo cp
- Used for file copy.sudo /opt/cloudera/cm-agent/bin/cm
- Used for certificate management and troubleshooting.sudo mkdir
- Used for directory creation.sudo /opt/cloudera/parcels/keycloak/cloudera_keycloak.sh
- Configure and startup Keycloak.sudo keytrustee
- Used for Keystrustee backup.sudo ln
- Manage file links.sudo chmod
- Manage file permissions.sudo wget
- Used to host local repositories for Cloudera Manager and CDH.sudo -u postgres psql postgres
- Connect to PSQL as postgres user.sudo -E tar
- Archive Cloudera Manager agent data directories prior to updates or changes.sudo zypper clean --all
(SLES) - Clean up the repository cache for SLES package manager (zypper).sudo ktadmin enable-synchronous-replication
- Enable synchronous replication on the active Key Trustee Server.sudo ktadmin enable-synchronous-replication
- Enable synchronous replication on the active Key Trustee Server.sudo rpm
(RH6, RH7+) - Install or remove the Cloudera Manager RPM packages.