This page is obsolete. It has been replaced with: http://trafodion.apache.org/uninstall.html |
These instructions assume that you already have a Hadoop distribution installed on your system and, in the case of Cloudera and Hortonworks, that Trafodion is also already installed. They explain how to uninstall the Hadoop distribution using the cloudera_uninstall, hortonworks_uninstall, or mapr_uninstall script so that you can then install a different, supported Hadoop distribution to be used with Trafodion.
The following commands should all be done from the first node of the cluster. Do not run them from a machine that is not part of the Trafodion cluster. Follow these steps only if you are uninstalling Cloudera and not uninstalling Trafodion.
su trafodion cd $MY_SQROOT/sql/scripts or cds sqstop
NOTE: You must have root access to the machine.
| Required Parameters | Description |
|---|---|
| --help | Print this message and exit. |
| --nodes "<node_list>" | Space-separated list of nodes (within quotes) |
EXAMPLES: cd /root/trafodion_downloads/installer/tools ./cloudera_uninstall --nodes "redhat-1 redhat-2"
su trafodion cd $MY_SQROOT/scripts or cds sqstart
[trafodion@n001 ~]$ sqlci
Trafodion Conversational Interface 1.1.0
(c) Copyright 2015 Hewlett-Packard Development Company, LP.
>>create table test1 (f1 int, f2 int);
--- SQL operation complete.
>>insert into test1 values(1,1);
--- 1 row(s) inserted.
>>insert into test1 values(2,2);
--- 1 row(s) inserted.
>>select * from test1;
F1 F2
----------- -----------
1 1
2 2
--- 2 row(s) selected.
>>get tables;
Tables in Schema TRAFODION.SEABASE
==================================
TEST1
--- SQL operation complete.
>>exit;
Those SQL commands should run successfully.
The following commands should all be done from the first node of the cluster. Do not run them from a machine that is not part of the Trafodion cluster. Follow these steps only if you are uninstalling Hortonworks/Ambari and not uninstalling Trafodion.
su trafodion cd $MY_SQROOT/sql/scripts or cds sqstop
NOTE: You must have root access to the machine.
| Required Parameters | Description |
|---|---|
| --help | Print this message and exit. |
| --nodes "<node_list>" | Space-separated list of nodes (within quotes) |
EXAMPLES: cd /root/trafodion_downloads/installer/tools ./hortonworks_uninstall --nodes "redhat-1 redhat-2"
EXAMPLE: Resetting ambari-server **** WARNING **** You are about to reset and clear the Ambari Server database. This will remove all cluster host and configuration information from the database. You will be required to re-configure the Ambari server and re-run the cluster wizard. Are you SURE you want to perform the reset [yes/no] (no)? yes Confirm server reset [yes/no](no)? yes
su trafodion cd $MY_SQROOT/scripts or cds sqstart
[trafodion@n001 ~]$ sqlci
Trafodion Conversational Interface 1.1.0
(c) Copyright 2015 Hewlett-Packard Development Company, LP.
>>create table test1 (f1 int, f2 int);
--- SQL operation complete.
>>insert into test1 values(1,1);
--- 1 row(s) inserted.
>>insert into test1 values(2,2);
--- 1 row(s) inserted.
>>select * from test1;
F1 F2
----------- -----------
1 1
2 2
--- 2 row(s) selected.
>>get tables;
Tables in Schema TRAFODION.SEABASE
==================================
TEST1
--- SQL operation complete.
>>exit;
Those SQL commands should run successfully.
NOTE: Trafodion does not currently support MapR. Follow these instructions to remove MapR and install one of the supported Hadoop distributions before installing Trafodion.
The following commands should all be done from the first node of the cluster. Do not run them from a machine that will not be part of the Trafodion cluster. Trafodion must be installed on all nodes that host an HBase RegionServer (that is, where a supported Hadoop distribution is installed). For example, if the Hadoop distribution is installed on nodes n001, n002, and n003, then you must install Trafodion on those same nodes (--nodes "n001 n002 n003").
Follow these steps if you are uninstalling MapR and replacing it with a supported Hadoop distribution before installing Trafodion.
mkdir $HOME/trafodion_downloads mv <your-download-path>/trafodion-1.1.<n>.tar.gz $HOME/trafodion_downloads mv <your-download-path>/installer-1.1.<n>_v<num>.tar.gz $HOME/trafodion_downloads cd $HOME/trafodion_downloads
tar -xzf trafodion-1.1.<n>.tar.gz tar -xzf installer-1.1.<n>_v<num>.tar.gz
NOTE: You must have root access to the machine.
| Required Parameters | Description |
|---|---|
| --help | Print this message and exit. |
| --nodes "<node_list>" | Space-separated list of nodes (within quotes) |
EXAMPLES: cd /root/trafodion_downloads/installer/tools ./mapr_uninstall --nodes "redhat-1 redhat-2" ./mapr_uninstall
These instructions assume that you already have Trafodion and a Hadoop distribution installed on your system. They explain how to use the trafodion_uninstaller to remove Trafodion from your system.
NOTE: If you want to upgrade to a newer version of Trafodion, you do not need to use the trafodion_uninstaller script. Instead, use the trafodion_install script, which automatically upgrades the version of Trafodion. For more information, see Upgrading Trafodion.
The following commands should all be done from the first node of the cluster. Do not run them from a machine that is not part of the Trafodion cluster. Follow these steps only if you are uninstalling Trafodion and not uninstalling the currently running Hadoop distribution.
su trafodion cd $MY_SQROOT/sql/scripts or cds sqstop
NOTE: To use the --all option, you will need root access to the machine and will need to exit from the trafodion user ID.
| Required Parameters | Description |
|---|---|
| --instance <dir-name> | Directory path of the Trafodion instance to remove. Run this option from the trafodion user ID. |
| --all | This will remove Trafodion completely, including the trafodion user ID and its /root directory. Run this option from a user ID with sudo access. |
EXAMPLES: cd /root/trafodion_downloads/installer ./trafodion_uninstaller --instance /home/trafodion/trafodion ./trafodion_uninstaller --all
The following commands should all be done from the first node of the cluster. Do not run them from a machine that is not part of the Trafodion cluster. Follow these steps if you intend to uninstall both Trafodion and Cloudera.
su trafodion cd $MY_SQROOT/sql/scripts or cds sqstop
NOTE: To use the --all option, you will need root access to the machine and will need to exit from trafodion user ID.
| Required Parameters | Description |
|---|---|
| --instance <dir-name> | Directory path of the Trafodion instance to remove. Run this option from the trafodion user ID. |
| --all | This will remove Trafodion completely, including the trafodion user ID and its /root directory. Run this option from a user ID with sudo access. |
EXAMPLES: cd /root/trafodion_downloads/installer ./trafodion_uninstaller --instance /home/trafodion/trafodion ./trafodion_uninstaller --all
NOTE: You must have root access to the machine.
| Required Parameters | Description |
|---|---|
| --help | Print this message and exit. |
| --nodes "<node_list>" | Space-separated list of nodes (within quotes) |
EXAMPLES: cd /root/trafodion_downloads/installer/tools ./cloudera_uninstall --nodes "redhat-1 redhat-2"
The following commands should all be done from the first node of the cluster. Do not run them from a machine that is not part of the Trafodion cluster. Follow these steps if you intend to uninstall both Trafodion and Hortonworks/Ambari.
su trafodion cd $MY_SQROOT/sql/scripts or cds sqstop
NOTE: To use the --all option, you will need root access to the machine and will need to exit from trafodion user ID.
| Required Parameters | Description |
|---|---|
| --instance <dir-name> | Directory path of the Trafodion instance to remove. Run this option from the trafodion user ID. |
| --all | This will remove Trafodion completely, including the trafodion user ID and its /root directory. Run this option from a user ID with sudo access. |
EXAMPLES: cd /root/trafodion_downloads/installer ./trafodion_uninstaller --instance /home/trafodion/trafodion ./trafodion_uninstaller --all
NOTE: You must have root access to the machine.
| Required Parameters | Description |
|---|---|
| --help | Print this message and exit. |
| --nodes "<node_list>" | Space-separated list of nodes (within quotes) |
EXAMPLES: cd /root/trafodion_downloads/installer/tools ./hortonworks_uninstall --nodes "redhat-1 redhat-2"
EXAMPLE: Resetting ambari-server **** WARNING **** You are about to reset and clear the Ambari Server database. This will remove all cluster host and configuration information from the database. You will be required to re-configure the Ambari server and re-run the cluster wizard. Are you SURE you want to perform the reset [yes/no] (no)? yes Confirm server reset [yes/no](no)? yes