Control-M for Hadoop Installation
The following procedures describe how to install Control-M for Hadoop on a UNIX Agent, interactively or automatically, in a Control-M/Server self-hosted environment.
If you want to install multiple instances of Control-M for Hadoop on several hosts using the same configuration, use the automatic installation, as described in these procedures.
If the current version of Control-M/Agent is lower than 9.0.20.100 or if Blowfish encryption is used, you need to stop the Control-M for Hadoop after you upgrade the Agent.
Installing Control-M for Hadoop on a UNIX Agent
This procedure describes how to install Control-M for Hadoop on a UNIX Agent.
The default installation is interactive and uses a GUI display. XServer must be running and configured using the DISPLAY environment variable. If you do not have XServer available, BMC recommends that you continue with the console installation or perform an automatic installation.
Before You Begin
-
Verify that all jobs running on the Agent have ended.
-
Verify that you have met Java requirements, as described in Control-M External Java Installation.
Begin
-
Log in to the account where Control-M/Agent is installed.
-
Run the following command to stop the Agent:
$CONTROLM/scripts/shut-ag -u <agentUser> -p all
If the Control-M/Agent was installed with user root, then log in as user root every time you start up or shut down the Agent throughout this procedure.
-
Use one of the following modes:
-
Display: If you install using GUI (or XServer), set your DISPLAY environment variable, as described in Setting Environment Variables in UNIX.
-
Console: It is not necessary to set DISPLAY.
-
-
Run the following commands to activate the installation script:
<install_source_path>/CBD.9.0.21.300_Linux-x86_64.BIN
-
Do one of the following:
-
Interactive Installation: Continue with the on-screen instructions until the installation is complete.
-
Automatic Installation: Do the following:
-
Continue with the on-screen instructions until the Summary window.
-
Click Generate and select the location to create the XML parameter file.
-
Click Yes.
-
Copy the automatic installation parameters file to a network location that is accessible to all hosts where you want to perform an automatic installation.
-
Run the following command to activate the installation script:
<install_source_path>/<CBD.9.0.21.300_Linux-x86_64.BIN> -silent<filename.xml>
-
-
-
The installation log is saved to the following location:
$HOME/<username>/BMCINSTALL/log/cmhadoop/BMC_Plugin_For_Hadoop_Install_<date-time>.log
-
Log out of the Agent.
-
Log in and start the Agent with the following command:
$CONTROLM/scripts/start-ag -u <agentUser> -p all
Uninstalling Control-M for Hadoop from UNIX
This procedure describes how to uninstall Control-M for Hadoop from UNIX.
Before You Begin
-
Verify that no jobs are executing on the Agent.
Begin
-
From an Agent host, log in to the account where Control-M/Agent is installed, and run the following command to shut down the Agent:
$CONTROLM/scripts/shut-ag -u <agentUser> -p all
If Control-M/Agent was installed with user root, then log in as user root every time you start up or shut down the Agent throughout this procedure.
-
Set your DISPLAY environment variable according to the hostname, as described in Setting Environment Variables in UNIX.
-
Navigate to the following directory:
$HOME/BMCINSTALL/uninstall/DRCBD.<version>/
-
Do one of the following:
-
Interactively Uninstall: Run the following command:
./uninstall.sh
-
Automatically Uninstall: Run the following command:
./uninstall.sh -silent
-
-
To restart the Agent, run the following command:
$CONTROLM/scripts/start-ag -u <agentUser> -p all
The uninstallation logs is saved to the following location:
$HOME/BMCINSTALL/log/cmhadoop/BMC_Plugin_For_Hadoop_Uninstall_<timestamp>.log
Changing the JRE Package in Control-M for Hadoop
This procedure describes how to change the JRE package in Control-M for Hadoop. The use of JRE is supported only where the major release version is the same as the tested version. For more information about Java, see Control-M External Java Installation.
Begin
-
Edit the external_java_path_9.0.21.300.dat file in the <HOME>/BMCINSTALL/ directory.
-
Define an alternative Java home directory by modifying the value of the parameter CM_HADOOP_JAVA_HOME to the external Java path.
CM_HADOOP_JAVA_HOME={new JRE Path}
-
A relative path is not supported.
-
The path can only include alphanumeric, period, underscore, hyphen and plus characters.
-
-
Stop Control-M for Hadoop using the following command.
$CONTROLM/cm/HADOOPCM/exe/cm_container.sh stop
Control-M for Hadoop restarts automatically.
