org.apache.hadoop.hive.hwi
Class HWIServer
java.lang.Object
org.apache.hadoop.hive.hwi.HWIServer
public class HWIServer
- extends Object
This is the entry point for HWI. A web server is invoked in the same manner
as the hive CLI. Rather then opening a command line session a web server is
started and a web application to work with hive is started.
Field Summary |
protected static org.apache.commons.logging.Log |
l4j
|
Method Summary |
static void |
main(String[] args)
|
void |
start()
This method initialized the internal Jetty Servlet Engine. |
void |
stop()
Shut down the running HWI Server. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
l4j
protected static final org.apache.commons.logging.Log l4j
HWIServer
public HWIServer(String[] args)
throws IOException
- Parameters:
args
- These are the command line arguments. Usually -hiveconf.
- Throws:
IOException
start
public void start()
throws IOException
- This method initialized the internal Jetty Servlet Engine. It adds the hwi
context path.
- Throws:
IOException
- Port already in use, bad bind etc.
main
public static void main(String[] args)
throws Exception
- Parameters:
args
- as of now no arguments are supported
- Throws:
Exception
- Could be thrown if due to issues with Jetty or bad configuration
options
stop
public void stop()
throws Exception
- Shut down the running HWI Server.
- Throws:
Exception
- Running Thread.stop() can and probably will throw this
Copyright © 2013 The Apache Software Foundation