SysAdmin¶
Instance¶
Tasks related to a Tamr instance
-
tamr_toolbox.sysadmin.instance.start_tamr(*, tamr_install_dir, include_dependencies=True, remote_client=None, impersonation_username=None, impersonation_password=None, verbose=False)[source]¶ Starts the Tamr software and the Tamr dependencies if include_dependencies is true.
Runs in a remote environment if an ssh client is specified otherwise runs in the local shell. If an impersonation_username is provided, the command is run as the provided user. If an impersonation_password is provided, password authentication is used for impersonation, otherwise sudo is used.
- Parameters
tamr_install_dir (
str) – Full path to directory where Tamr is installedinclude_dependencies (
bool) – Whether Tamr dependencies should be startedremote_client (
Optional[SSHClient]) – An ssh client providing a remote connectionimpersonation_username (
Optional[str]) – A bash user to run the command as, this should be the tamr install userimpersonation_password (
Optional[str]) – The password for the impersonation_usernameverbose – Whether the full command, stdout, and stderr should be logged at INFO level
- Return type
- Returns
None
- Raises
RuntimeError – Raised if Tamr start script(s) fail
-
tamr_toolbox.sysadmin.instance.stop_tamr(*, tamr_install_dir, include_dependencies=True, remote_client=None, impersonation_username=None, impersonation_password=None, verbose=False)[source]¶ Stops the Tamr software and the Tamr dependencies if include_dependencies is true.
Runs in a remote environment if an ssh client is specified otherwise runs in the local shell. If an impersonation_username is provided, the command is run as the provided user. If an impersonation_password is provided, password authentication is used for impersonation, otherwise sudo is used.
- Parameters
tamr_install_dir (
str) – Full path to directory where Tamr is installedinclude_dependencies (
bool) – Whether Tamr dependencies should be stoppedremote_client (
Optional[SSHClient]) – An ssh client providing a remote connectionimpersonation_username (
Optional[str]) – A bash user to run the command as, this should be the tamr install userimpersonation_password (
Optional[str]) – The password for the impersonation_usernameverbose – Whether the full command, stdout, and stderr should be logged at INFO level
- Return type
- Returns
None
- Raises
RuntimeError – Raised if Tamr stop script(s) fail
-
tamr_toolbox.sysadmin.instance.restart_tamr(*, tamr_install_dir, include_dependencies=True, remote_client=None, impersonation_username=None, impersonation_password=None, verbose=False)[source]¶ Restarts the Tamr software and the Tamr dependencies if include_dependencies is true.
Runs in a remote environment if an ssh client is specified otherwise runs in the local shell. If an impersonation_username is provided, the command is run as the provided user. If an impersonation_password is provided, password authentication is used for impersonation, otherwise sudo is used.
- Parameters
tamr_install_dir (
str) – Full path to directory where Tamr is installedinclude_dependencies (
bool) – Whether Tamr dependencies should be restartedremote_client (
Optional[SSHClient]) – An ssh client providing a remote connectionimpersonation_username (
Optional[str]) – A bash user to run the command as, this should be the tamr install userimpersonation_password (
Optional[str]) – The password for the impersonation_usernameverbose – Whether the full command, stdout, and stderr should be logged at INFO level
- Return type
- Returns
None
- Raises
RuntimeError – Raised if Tamr start or stop script(s) fail