This tutorial explains how to set up a working environment in order to perform attacks from the Hadoop client CLI such as:
This tutorial is valid for a Linux environment and has been tested on Kali.
-
Download the latest Hadoop binary release
$ cd /opt && wget http://apache.mirrors.ovh.net/ftp.apache.org/dist/hadoop/common/hadoop-2.7.3/hadoop-2.7.3.tar.gz
-
Decompress the archive
$ tar xvf hadoop-2.7.3.tar.gz
-
Set, if not already done, the
JAVA_HOME
environment variable (use$ update-alternatives --config java
to find your Java path)$ export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-i386
-
(Optional) Add the Hadoop
bin
path to thePATH
environment variable$ export PATH=$PATH:/opt/hadoop-2.7.3/bin
-
Test that everything is OK
$ hadoop version