[ Go Back ]
This page explains how to quickly setup Hoop with Pseudo authentication against a Hadoop cluster with Pseudo authentication.
~ $ git clone git://github.com/cloudera/hoop.git
~ $ cd hoop hoop $ mvn clean package site assembly:single
~ $ tar xzf hoop/hoop-distro/target/hoop-0.1.0-SNAPSHOT.tar.gz
Edit the hoop-0.1.0-SNAPSHOT/conf/hoop-site.xml file and set the hoop.hadoop.conf:fs.default.name property to the HDFS Namenode URI. For example:
hoop.hadoop.conf:fs.default.name=hdfs://localhost:8021
Edit Hadoop core-site.xml and defined the Unix user that will run the Hoop server as a proxyuser. For example:
... <property> <name>hadoop.proxyuser.#HOOPUSER#.hosts</name> <value>myhoop.foo.com</value> </property> <property> <name>hadoop.proxyuser.#HOOPUSER#.groups</name> <value>*</value> </property> ...
IMPORTANT: Replace #HOOPUSER# with the Unix user that will start the Hoop server.
You need to restart Hadoop for the proxyuser configuration ot become active.
To start/stop Hoop use Hoop's bin/hoop.sh script. For example:
hoop-0.1.0-SNAPSHOT $ bin/hoop.sh start
NOTE: Invoking the script without any parameters list all possible parameters (start, stop, run, etc.). The hoop.sh script is a wrapper for Tomcat's catalina.sh script that sets the environment variables and Java System properties required to run Hoop.
~ $ curl -i "http://<HOOPHOSTNAME>:14000?user.name=babu&op=homedir" HTTP/1.1 200 OK Content-Type: application/json Transfer-Encoding: chunked {"homeDir":"http:\/\/<HOOP_HOST>:14000\/user\/babu"}
To configure the embedded Tomcat go to the tomcat/conf.
Hoop preconfigures the HTTP and Admin ports in Tomcat's server.xml to 14000 and 14001.
Tomcat logs are also preconfigured to go to Hoop's logs/ directory.
The following environment variables (which can be set in Hoop's conf/hoop-env.sh script) can be used to alter those values:
Hoop supports the following configuration properties in the Hoop's conf/hoop-site.xml configuration file.
[ Go Back ]