千家信息网

apache-hive-1.2.1中如何使用hwi

发表于:2026-10-31 作者:千家信息网编辑
千家信息网最后更新 2026年10月31日,小编给大家分享一下apache-hive-1.2.1中如何使用hwi,希望大家阅读完这篇文章之后都有所收获,下面让我们一起去探讨吧!一、下载hive-src.tar[hadoop@hftest0001
千家信息网最后更新 2026年10月31日apache-hive-1.2.1中如何使用hwi

小编给大家分享一下apache-hive-1.2.1中如何使用hwi,希望大家阅读完这篇文章之后都有所收获,下面让我们一起去探讨吧!

一、下载hive-src.tar

[hadoop@hftest0001 ~]$ pwd/home/hadoop[hadoop@hftest0001 ~]$ wget  [hadoop@hftest0001 ~]$ tar -zxvf apache-hive-1.2.1-src.tar.gz [hadoop@hftest0001 hwi]$ cd  /home/hadoop/apache-hive-1.2.1-src/hwi[hadoop@hftest0001 hwi]$ pwd/home/hadoop/apache-hive-1.2.1-src/hwi[hadoop@hftest0001 hwi]$ jar cfM hive-hwi-1.2.1.war -C web . [hadoop@hftest0001 hwi]$ cp hive-hwi-1.2.1.war /home/hadoop/apache-hive-1.2.1-bin/lib/

二、启动 troubleshooting

[root@hftest0001 apache-hive-1.2.1-bin]# pwd/home/hadoop/apache-hive-1.2.1-bin[root@hftest0001 apache-hive-1.2.1-bin]# ./bin/hive --service hwi16/01/25 09:37:25 INFO hwi.HWIServer: HWI is starting up16/01/25 09:37:27 FATAL hwi.HWIServer: HWI WAR file not found at /home/hadoop/apache-hive-1.2.1-bin/home/hadoop/apache-hive-1.2.1-bin/lib/hive-hwi-1.2.1.war[root@hftest0001 apache-hive-1.2.1-bin]# 系统默认会找/home/hadoop/apache-hive-1.2.1-bin/home/hadoop/apache-hive-1.2.1-bin/lib/hive-hwi-1.2.1.war,多了目录修改配置文件,使用绝对路径[root@hftest0001 apache-hive-1.2.1-bin]# vi conf/hive-site.xml ......                          hive.hwi.listen.host                10.224.246.232                                hive.hwi.listen.port                9999                                hive.hwi.war.file                /home/hadoop/apache-hive-1.2.1-bin/lib/hive-hwi-1.2.1.war                [root@hftest0001 apache-hive-1.2.1-bin]# ./bin/hive --service hwi16/01/25 09:37:25 INFO hwi.HWIServer: HWI is starting up16/01/25 09:37:27 FATAL hwi.HWIServer: HWI WAR file not found at /home/hadoop/apache-hive-1.2.1-bin/home/hadoop/apache-hive-1.2.1-bin/lib/hive-hwi-1.2.1.war[root@hftest0001 apache-hive-1.2.1-bin]# 系统还是会找/home/hadoop/apache-hive-1.2.1-bin/home/hadoop/apache-hive-1.2.1-bin/lib/hive-hwi-1.2.1.war,多了目录即不能使用绝对路径,要使用相对路径[root@hftest0001 apache-hive-1.2.1-bin]# vi conf/hive-site.xml ......                          hive.hwi.listen.host                10.224.246.232                                hive.hwi.listen.port                9999                                hive.hwi.war.file                lib/hive-hwi-1.2.1.war                [root@hftest0001 apache-hive-1.2.1-bin]# ./bin/hive --service hwi16/01/25 09:40:20 INFO hwi.HWIServer: HWI is starting up16/01/25 09:40:21 INFO mortbay.log: Logging to org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog16/01/25 09:40:21 INFO mortbay.log: jetty-6.1.2616/01/25 09:40:21 INFO mortbay.log: Extract /home/hadoop/apache-hive-1.2.1-bin/lib/hive-hwi-1.2.1.war to /tmp/Jetty_10_224_246_232_9999_hive.hwi.1.2.1.war__hwi__ms4vvn/webapp16/01/25 09:40:21 INFO mortbay.log: NO JSP Support for /hwi, did not find org.apache.jasper.servlet.JspServlet16/01/25 09:40:22 INFO mortbay.log: Started SocketConnector@10.224.246.232:9999报错:NO JSP Support for /hwi, did not find org.apache.jasper.servlet.JspServlet缺少jar: 下载jar,并放到lib目录下jasper-compiler-5.5.23.jarjasper-runtime-5.5.23.jar        tomcat        jasper-compiler        5.5.23        tomcat        jasper-runtime        5.5.23[root@hftest0001 apache-hive-1.2.1-bin]# ll lib/ | grep jasper-rw-rw-r--  1 hadoop root   408133 Jan 25 09:13 jasper-compiler-5.5.23.jar-rw-rw-r--  1 hadoop root    76844 Jan 25 09:14 jasper-runtime-5.5.23.jar[root@hftest0001 apache-hive-1.2.1-bin]# ./bin/hive --service hwi16/01/25 09:42:53 INFO hwi.HWIServer: HWI is starting up16/01/25 09:42:55 INFO mortbay.log: Logging to org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog16/01/25 09:42:55 INFO mortbay.log: jetty-6.1.2616/01/25 09:42:55 INFO mortbay.log: Extract /home/hadoop/apache-hive-1.2.1-bin/lib/hive-hwi-1.2.1.war to /tmp/Jetty_10_224_246_232_9999_hive.hwi.1.2.1.war__hwi__ms4vvn/webapp16/01/25 09:42:55 INFO mortbay.log: Started SocketConnector@10.224.246.232:9999成功!!!访问  java.lang.NoClassDefFoundError: org/apache/commons/el/ExpressionEvaluatorImpl        at org.apache.jasper.compiler.JspUtil.(JspUtil.java:62)        at org.apache.jasper.JspCompilationContext.getServletClassName(JspCompilationContext.java:335)        at org.apache.jasper.JspCompilationContext.getClassFileName(JspCompilationContext.java:485)        at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:380)        at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:333)        at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:561)        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:299)        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401)        at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)        at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)        at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)        at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327)        at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)        at org.mortbay.jetty.servlet.DefaultServlet.doGet(DefaultServlet.java:503)        at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401)        at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)        at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)        at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)        at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)        at org.mortbay.jetty.Server.handle(Server.java:326)        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)        at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)        at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)        at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)Caused by: java.lang.ClassNotFoundException: org.apache.commons.el.ExpressionEvaluatorImpl        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)        at java.security.AccessController.doPrivileged(Native Method)        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)        ... 38 more         仍然缺少jar:下载jar,并放置到lib目录下commons-el-1.0.jar        commons-el        commons-el        1.0[root@hftest0001 apache-hive-1.2.1-bin]# ll lib/ | grep commons-el-rw-rw-r--  1 hadoop root   112341 Jan 25 09:30 commons-el-1.0.jar[root@hftest0001 apache-hive-1.2.1-bin]# [root@hftest0001 apache-hive-1.2.1-bin]# ./bin/hive --service hwi16/01/25 09:42:53 INFO hwi.HWIServer: HWI is starting up16/01/25 09:42:55 INFO mortbay.log: Logging to org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog16/01/25 09:42:55 INFO mortbay.log: jetty-6.1.2616/01/25 09:42:55 INFO mortbay.log: Extract /home/hadoop/apache-hive-1.2.1-bin/lib/hive-hwi-1.2.1.war to /tmp/Jetty_10_224_246_232_9999_hive.hwi.1.2.1.war__hwi__ms4vvn/webapp16/01/25 09:42:55 INFO mortbay.log: Started SocketConnector@10.224.246.232:9999成功!!!访问 http://10.224.246.232:9999/hwi/

看完了这篇文章,相信你对"apache-hive-1.2.1中如何使用hwi"有了一定的了解,如果想了解更多相关知识,欢迎关注行业资讯频道,感谢各位的阅读!

目录 路径 成功 篇文章 系统 完了 文件 更多 知识 行业 资讯 资讯频道 还是 频道 配置 数据库的安全要保护哪些东西 数据库安全各自的含义是什么 生产安全数据库录入 数据库的安全性及管理 数据库安全策略包含哪些 海淀数据库安全审计系统 建立农村房屋安全信息数据库 易用的数据库客户端支持安全管理 连接数据库失败ssl安全错误 数据库的锁怎样保障安全 咖啡豆 互联网科技有限公司 互联网黑科技 什么是科技互联网 互联网与科技金融数据 腾讯阿里互联网科技 亿账通互联网科技 科技与互联网的利与弊 互联网科技博主是什么意思 中国科技互联网公司收入 湖北码尼互联网科技有限公司电话 南平创想时代互联网科技有限公司 呼和浩特新华互联网科技学院 国大互联网教育科技有限公司薪资 互联网安防科技感 互联网风格科技公司名称 全球科技与互联网公司市值变化 艺电能源互联网科技有限公司招聘 互联网金融运营模式中的金融科技 现代科技的标志之一的互联网 广东万易互联网科技有限公司惠州分公司 互联网医疗科技 顺网科技2021年互联网排名 互联网科技创新企业排名 重庆威客帮互联网科技 互联网为啥属于高科技 开一家科技互联网公司需要多少钱 中国互联网十大科技股排名 华夏恒生科技与互联网科技 厦门江牛科技互联网
0