1

I am trying to install hadoop in my ubuntu OS. I followed each and every step exactly from this link Hadoop Install Tutorial and everything was going as expected until i tried to run $ start-dfs.sh and $ hadoop jar ./share/hadoop/mapreduce/hadoop-mapreduce-examples-2.2.0.jar pi 2 5 command. These commands doesn't work as expected.I tried R&D and somehow came to know that i was using older hadoop version Hadoop 1.0.2 despite of me getting latest 2.2.0 version.

As i could not solve this, i tried to uninstall hadoop completely, Now when i try doing it, it says

$ sudo dpkg -r hadoop
dpkg: dependency problems prevent removal of hadoop:
 hadoop-native depends on hadoop (= 1.0.2-0ubuntu1~hadoop1).
dpkg: error processing hadoop (--remove):
 dependency problems - not removing
Errors were encountered while processing:
 hadoop

Appreciate any help !

4

1 回答 1

0

我不知道它是否是删除 hadoop 的正确方法,但我已使用以下方法将其删除。

  1. 我首先手动/usr/local/hadoop从所有用户中删除了该文件夹(如果有)。如果由于缺少权限而无法删除它,请确保该文件夹的权限。将文件夹的权限设置为“Sudo”和“创建和删除文件”,以便每个用户都可以从他们的实例中删除。

然后从终端$ rm -r hadoop执行前往/usr/local路径的工作。

在此之后,我$ hadoop version再次检查了终端..并再次显示它的存在。然后我做了以下步骤。

2.转到终端sudo apt-get purge hadoopsudo apt-get remove hadoop...然后它工作

于 2014-04-04T10:54:05.207 回答