Just for my reference, this is how I setup Apache Hive on my ubuntu 12.04.
bash> tar zxvf hive-0.11.0-bin.tar.gz
bash> export HADOOP_HOME=/home/hduser/hadoop/
bash> $HADOOP_HOME/bin/hadoop fs -mkdir /tmp
bash> $HADOOP_HOME/bin/hadoop fs -mkdir /user/hive/warehouse
bash> $HADOOP_HOME/bin/hadoop fs -chmod g+w /tmp
bash> $HADOOP_HOME/bin/hadoop fs -chmod g+w /user/hive/warehouse
# Somehow I could not run without using sudo. It kept
# throwing some permission denied exception which I
# could not fix in a short time.
bash> sudo HADOOP_HOME=/home/hduser/hadoop ./bin/hive
hive> create table test(id int, msg string);
OK
Time taken: 0.383 seconds
hive> show tables;
OK
test
Time taken: 0.061 seconds, Fetched: 1 row(s)
hive> describe test;
OK
id int None
msg string None
Time taken: 0.35 seconds, Fetched: 2 row(s)