Ask Your Question

How to install stable Hadoop version on Fedora 22?

asked 2015-09-25 14:38:43 -0500

paladini gravatar image

I can't install Hadoop binaries manually, there's a simple way to install a stable Hadoop version on Fedora 22?

Note that this is a self-answered question, the main objective is to help people with the same problem without the need of losing their time searching for a answer.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2015-09-25 14:39:16 -0500

paladini gravatar image

updated 2015-09-25 14:42:56 -0500

It's very easy to install and configure Hadoop over Fedora 22.

1. Install the following packages:

sudo dnf install hadoop-common hadoop-hdfs hadoop-libhdfs hadoop-mapreduce hadoop-mapreduce-examples hadoop-yarn

2. Now you should format the namenode:

runuser hdfs -s /bin/bash /bin/bash -c "hadoop namenode -format"   # if this don't work, just run "hadoop namenode -format"

3. Start and enable services to start up with the system:

systemctl start hadoop-namenode hadoop-datanode hadoop-nodemanager hadoop-resourcemanager
systemctl enable hadoop-namenode hadoop-datanode hadoop-nodemanager hadoop-resourcemanager

4. Now you just have to run the following commands:

runuser hdfs -s /bin/bash /bin/bash -c "hadoop fs -mkdir /user/anyTestUsername"
runuser hdfs -s /bin/bash /bin/bash -c "hadoop fs -chown tstclair /user/anyTestUsername"

If you would like to know more, please check this Fedora Wiki (outdated) or this tutorial (also outdated).

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-09-25 14:38:43 -0500

Seen: 3,840 times

Last updated: Sep 25 '15