Over a million developers have joined DZone.

Hadoop Hive Web Interface

DZone's Guide to

Hadoop Hive Web Interface

· Big Data Zone
Free Resource

Need to build an application around your data? Learn more about dataflow programming for rapid development and greater creativity. 

I’ve been playing with Hive recently and liking what I’ve found. In theory at least it provides a very nice, simple way of getting into analysing large data sets. To make it even easier to show other people what you’re up to Hive has a nascent web interface with a little documentation on the wiki

image of hive web ui

On the one hand it’s rather simple at this point, but that should be easily enought to prettify given a bit of time. The bigger problem was getting it working in the first place. What follows worked for me using the latest cloudera packages on debian testing. I’m assuming you already have Hive and Hadoop installed, the basic packages worked fine for me here.

Next up you’ll need the JDK (not just the JRE) as their is some compilation that will go on the first time you run the web interface.

apt-get install ant sun-java6-jdk

Next up I had to modify the installed /etc/hive/conf/hive-site.xml file as follows:

I changed this:

  <description>Comma separated list of URIs of metastore servers. The first server that can be connected to will be used.</description>

To this. Note the hivevar path doesn’t exist so I’m not sure if this was a typo in the source.

  <description>Comma separated list of URIs of metastore servers. The first server that can be connected to will be used.</description>

I also change the following section regarding the metastore name:

  <description>JDBC connect string for a JDBC metastore</description>

To this, with a fixed name. When using the above confirguration the file was actually called ${user.name} rather than my username being subsituted in. Elsewhere this seems to work fine.

  <description>JDBC connect string for a JDBC metastore</description>

I’m not convinced the above two changes are needed but have left them here just in case. The main tricky part is making sure a load of environment variables are correctly set. The following worked for me:

export ANT_LIB=/usr/share/ant/lib
export HIVE_HOME=/usr/lib/hive
export HADOOP_HOME=/usr/lib/hadoop
export JAVA_HOME=/usr/lib/jvm/java-6-sun

All being well that should allow you to run the hive command with the web interface like so:

hive --service hwi

That should bring up a webserver on port 9999 where you should see something similar to the screenshot above.

Check out the Exaptive data application Studio. Technology agnostic. No glue code. Use what you know and rely on the community for what you don't. Try the community version.


Published at DZone with permission of Gareth Rushgrove, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.


Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.


{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}