4

I have installed Hadoop-2.4.0 in my system(14.04), I want to remove it completely and reinstall it. If I have delete the configured folder hadoop, is it enough to remove hadoop in my Ubuntu 14.04 LTS.

3 Answers 3

5

Actually I just delete the folder hadoop which given permission(shown below) to my HDFS user.

$ sudo rm -r -f /usr/local/hadoop/

Previously I extracted hadoop-2.4.0 and given permission for my HDFS user(hadoopuser - HDFS user),

$ sudo chown -R hadoopuser:hadoop hadoop

After that I removed user(hadoopuser) and group(hadoop)

root@ARUL-PC:~# deluser hadoopuser
Removing user `hadoopuser' ...
Warning: group `hadoop' has no more members.
Done.
root@ARUL-PC:~# deluser --group hadoop
Removing group `hadoop' ...
Done.

Now hadoop-2.4.0 not present in my system.

Note : In my system, configured hadoop folder is /usr/local/hadoop/.

2
  • how to check that I removed Hadoop ?
    – NIMISHAN
    Jan 4, 2016 at 3:52
  • But hadoop installs so may other things this is not really a complete uninstall is it? Feb 21, 2016 at 23:04
1

You can uninstall hadoop using:

sudo apt-get purge hadoop-2.4.*

This will remove all packages and configurations related to hadoop from your system.

1
  • It didn't worked.. actually I didn't installed my hadoop-2.4.0 from apt-get.. i hae manually installed and configured with this link
    – A J
    May 9, 2014 at 7:31
0

I struggled through this for longer than a while and then decided to share it here:

The trick is to basically delete all the symlinks pointing back to locations where HDP components reside since that is what causes 80% of the problem. Here is a step by step tutorial for that:

http://www.yourtechchick.com/hadoop/how-to-completely-remove-and-uninstall-hdp-components-hadoop-uninstall-on-linux-system/

Hope that helps!

1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .