On Thu, Mar 5, 2009 at 1:21 AM, Arijit Mukherjee <ariji...@gmail.com> wrote: > hive_hwi.jar and hive_hwi.war - these two files are there. But, the > hive-default.xml file refers to hive.war. I changed this to hive_hwi.war, > and the startup command seemed to start HWI: > > strawberry:/usr/local/hadoop/hive> ./bin/hive --service hwi > 09/03/05 10:35:51 INFO hwi.HWIServer: HWI is starting up > 09/03/05 10:35:51 INFO http.HttpServer: Version Jetty/5.1.4 > 09/03/05 10:35:51 INFO util.Credential: Checking Resource aliases > 09/03/05 10:35:58 INFO util.Container: Started > org.mortbay.jetty.servlet.webapplicationhand...@17f242c > 09/03/05 10:35:58 INFO util.Container: Started > WebApplicationContext[/hwi,/hwi] > 09/03/05 10:35:58 INFO http.SocketListener: Started SocketListener on > 0.0.0.0:9999 > 09/03/05 10:35:58 INFO util.Container: Started > org.mortbay.jetty.ser...@c24c0 > > But when I tried to view the webpage from the browser > (http://localhost:9999/hwi - tried both local and remote), I had the > following exception (and a http error 500 on the browser): > > 09/03/05 10:36:53 INFO util.Container: Started HttpContext[/,/] > 09/03/05 10:36:57 WARN /hwi: /hwi/: > java.lang.NoClassDefFoundError: org/apache/tools/ant/BuildException > at > org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:197) > at > org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:508) > at > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295) > at > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > at > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427) > at > org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:475) > at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:275) > at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:169) > at org.mortbay.jetty.servlet.Default.handleGet(Default.java:312) > at org.mortbay.jetty.servlet.Default.service(Default.java:232) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > at > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427) > at > org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:475) > at > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) > at org.mortbay.http.HttpContext.handle(HttpContext.java:1565) > at > org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:635) > at org.mortbay.http.HttpContext.handle(HttpContext.java:1517) > at org.mortbay.http.HttpServer.service(HttpServer.java:954) > at org.mortbay.http.HttpConnection.service(HttpConnection.java:814) > at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981) > at org.mortbay.http.HttpConnection.handle(HttpConnection.java:831) > at > org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) > at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) > at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) > > I'll post it in JIRA. > > Cheers > Arijit > > > 2009/3/4 Edward Capriolo <edlinuxg...@gmail.com> >> >> On Wed, Mar 4, 2009 at 4:05 AM, Arijit Mukherjee <ariji...@gmail.com> >> wrote: >> > Hi >> > >> > I checked out the SVN trunk and built it. But when I invoke the HWI, I >> > get >> > the following error: >> > >> > strawberry:/usr/local/hadoop/hive/bin> ./hive --service hwi >> > 09/03/04 14:23:10 INFO hwi.HWIServer: HWI is starting up >> > 09/03/04 14:23:10 FATAL hwi.HWIServer: HWI WAR file not found at >> > ${HIVE_HOME}/lib/hive.war >> > 09/03/04 14:23:10 INFO http.HttpServer: Version Jetty/5.1.4 >> > 09/03/04 14:23:10 INFO util.Credential: Checking Resource aliases >> > 09/03/04 14:23:10 WARN servlet.WebApplicationContext: Web application >> > not >> > found ${HIVE_HOME}/lib/hive.war >> > 09/03/04 14:23:10 WARN servlet.WebApplicationContext: Configuration >> > error on >> > ${HIVE_HOME}/lib/hive.war >> > java.io.FileNotFoundException: ${HIVE_HOME}/lib/hive.war >> > at >> > >> > org.mortbay.jetty.servlet.WebApplicationContext.resolveWebApp(WebApplicationContext.java:266) >> > at >> > >> > org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:449) >> > at org.mortbay.util.Container.start(Container.java:72) >> > at org.mortbay.http.HttpServer.doStart(HttpServer.java:753) >> > at org.mortbay.util.Container.start(Container.java:72) >> > at org.apache.hadoop.hive.hwi.HWIServer.start(HWIServer.java:86) >> > at org.apache.hadoop.hive.hwi.HWIServer.main(HWIServer.java:115) >> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> > at >> > >> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> > at >> > >> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> > at java.lang.reflect.Method.invoke(Method.java:597) >> > at org.apache.hadoop.util.RunJar.main(RunJar.java:165) >> > at org.apache.hadoop.mapred.JobShell.run(JobShell.java:54) >> > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65) >> > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79) >> > at org.apache.hadoop.mapred.JobShell.main(JobShell.java:68) >> > 09/03/04 14:23:10 INFO http.SocketListener: Started SocketListener on >> > 0.0.0.0:9999 >> > 09/03/04 14:23:10 ERROR hwi.HWIServer: Parsing hwi.listen.port caused >> > exception >> > >> > Seems like the build process did not build the web archive for hive. The >> > lib >> > folder contains a hive_hwi.war though. Did I miss anything while >> > building? I >> > used the default "ant -Dtarget.dir=<my dir> -Dhadoop.version='0.19.0' >> > package" command to build hive. >> > >> > Regards >> > Arijit >> > >> > 2009/3/4 Edward Capriolo <edlinuxg...@gmail.com> >> >> >> >> There is a new walk though on the hadoop wiki with some screen shots >> >> of the Hive Web Interface. >> >> >> >> http://wiki.apache.org/hadoop/Hive/HiveWebInterface >> >> >> >> Enjoy >> > >> > >> > >> > -- >> > "And when the night is cloudy, >> > There is still a light that shines on me, >> > Shine on until tomorrow, let it be." >> > >> >> There should be two files present in lib are hive_hwi.jar and hive_hwi.war >> >> i use >> 'ant' >> and 'ant deploy' from the top level directory. >> If you think the build.xml is not operating properly open a jira. >> >> Thanks, >> Edward > > > > -- > "And when the night is cloudy, > There is still a light that shines on me, > Shine on until tomorrow, let it be." >
Ok looked at this. Try defining ANT_HOME jetty requires ANT TOOL to deploy the web application. At the moment I do not understand how hadoop seems not to require these tools for its web interface. I the presence of a web.xml causes jetty to require ant components that are not bundled with hadoop.