How do I clean up the system environment after I uninstall InfoSphere BigInsights?
The following steps can be used to clean up your system environment:
1) Save the install.xml file, which is located under $BIGINSIGHTS_HOME/conf.
This file will provide a list of all the directories that were used during the previous installation, which is especially important are the following entries:
The directory-prefix setting does not exist in InfoSphere BigInsights V1.1.
2) Run the InfoSphere BigInsights uninstallation program:
If the uninstallation program succeeds, then your system is clean and you can start a new installation of InfoSphere BigInsights. Otherwise, proceed to steps 3 and 4.
3) Assuming you are using the default installation directories, manually remove the following:
Log in as the BigInsights administrator user (the defaul is biadmin). You can then issue the following command on each node in your cluster:
rm -rf $BIGINSIGHTS_VAR && rm -rf $BIGINSIGHTS_HOME && rm -rf /hadoop/hdfs && rm -rf /hadoop/mapred
You can find the actual installation directories in the install.xml file.
4) Kill all of the InfoSphere BigInsights processes on each node in your cluster.
There are many BigInsights processes running on the cluster, but they are all Java processes that start from BIGINSIGHTS_HOME and are owned by the BigInsights administrator user.
To find all of the BigInsights process pids, run the following command:
ps -ef | grep java | more
In order to stop all of the BigInsights processes, run the following command for each pid:
kill -9 <pid>
Now your system is clean and you can start a new installation of InfoSphere BigInsights.