hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "guxiaobo1982" <guxiaobo1...@qq.com>
Subject Re: Re: AW: Build hwi of hive 0.14.0 failed
Date Thu, 04 Dec 2014 07:11:12 GMT
Hi,
 
After changing the hadoop-2 profile to use hadoop 2.5.2, the following command can build the
target hive-hwi-0.13.1.war file

mvn install -pl hwi -P hadoop-2 -DskipTests war:war

But the http://<host>:9999/hwi can't open with the following errors:

Problem accessing /hwi/. Reason:
    Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps
JAVA_HOME does not point to the JDK. It is currently set to "/usr/jdk64/jdk1.7.0_45/jre"


Caused by:
Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps
JAVA_HOME does not point to the JDK. It is currently set to "/usr/jdk64/jdk1.7.0_45/jre" 
at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:129)
	at org.apache.tools.ant.taskdefs.Javac.findSupportedFileExtensions(Javac.java:979) 	at org.apache.tools.ant.taskdefs.Javac.scanDir(Javac.java:956)
	at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:927) 	at org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:220)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:298) 	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:265) 	at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
	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) 

Powered by Jetty://

There are some discussiones about how to resolving the problem, but I failed to apply the
patches to 0.13.1 brach, do you have a one stop resolution to this problem?











------------------ Original ------------------
From:  "guxiaobo1982";<guxiaobo1982@qq.com>;
Send time: Thursday, Dec 4, 2014 12:16 PM
To: "user"<user@hive.apache.org>; 

Subject:  Re:  Re: AW: Build hwi of hive 0.14.0 failed



Now I am trying to build the hwi.war file for hive-0.13.1,  is the following command the correct
one?


cd $HIVE_SRC_HOME/hwi


mvn pakage


I am running hadoop 2.5.2, should I made any changes  to the configurations regarding to hadoop
versions inside $HIVE_SRC_HOME/pom.xml and $HIVE_SRC_HOME/hwi/pom.xml?


Xiaobo


------------------ Original ------------------
From:  "Edward Capriolo";<edlinuxguru@gmail.com>;
Send time: Tuesday, Dec 2, 2014 11:21 PM
To: "user@hive.apache.org"<user@hive.apache.org>; 

Subject:  Re: Re: AW: Build hwi of hive 0.14.0 failed



On a high level we (hive) should really avoid building releases based on snapshots. That is
bad form generally and against the maven model. 


On Tue, Dec 2, 2014 at 4:19 AM, vic0777 <vic0777@163.com> wrote:
Hi Xiaobo,


you can find the pom.xml and update the dependency of "calcite-avatica:jar:0.9.2-incubating-SNAPSHOT"
to calcite-avatica:jar:1.0.0-incubating-SNAPSHOT. Then you can build it.

http://repository.apache.org/content/groups/snapshots/org/apache/calcite/calcite-core/1.0.0-incubating-SNAPSHOT/

Wantao
 






在 2014-12-02 16:57:27,"guxiaobo1982" <guxiaobo1982@qq.com> 写道:
 Hi Olaf,


Do you have a patch now?


Xiaobo




------------------ Original ------------------
From:  "Olaf Flebbe";<o.flebbe@science-computing.de>;
Send time: Monday, Dec 1, 2014 3:51 PM
To: "user@hive.apache.org"<user@hive.apache.org>; 

Subject:  AW: Build hwi of hive 0.14.0 failed




I filed a Bug for it  . HIVE-8953

This broken dependency has been removed later in 0.14 branch.

 

IMHO  a bugfix release 0.14.1 is needed, otherwise we need to cherry pick patches from this
branch in BIGTOP-1543

 

 Olaf

 

 

Von: guxiaobo1982 [mailto:guxiaobo1982@qq.com] 
Gesendet: Samstag, 29. November 2014 13:49
An: user
Betreff: Build hwi of hive 0.14.0 failed

 

Hi,


The 0.14.0 distribution does not come up with the hwi .war file, but I end up with the following
error when trying to build myself


 


[xiaobogu@lix3 hwi]$ pwd

/home/xiaobogu/soft/apache-hive-0.14.0-src/hwi

 


[xiaobogu@lix3 hwi]$ mvn package

[INFO] Scanning for projects...

[INFO] 

[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder
with a thread count of 1

[INFO]                                                                         

[INFO] ------------------------------------------------------------------------

[INFO] Building Hive HWI 0.14.0

[INFO] ------------------------------------------------------------------------

[WARNING] The POM for org.apache.calcite:calcite-core:jar:0.9.2-incubating-SNAPSHOT is missing,
no dependency information available

[WARNING] The POM for org.apache.calcite:calcite-avatica:jar:0.9.2-incubating-SNAPSHOT is
missing, no dependency information available

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 0.954 s

[INFO] Finished at: 2014-11-26T21:38:42+08:00

[INFO] Final Memory: 8M/149M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal on project hive-hwi: Could not resolve dependencies for project
org.apache.hive:hive-hwi:jar:0.14.0: The following artifacts could not be resolved: org.apache.calcite:calcite-core:jar:0.9.2-incubating-SNAPSHOT,
org.apache.calcite:calcite-avatica:jar:0.9.2-incubating-SNAPSHOT: Failure to find org.apache.calcite:calcite-core:jar:0.9.2-incubating-SNAPSHOT
in http://repository.apache.org/snapshots was cached in the local repository, resolution will
not be reattempted until the update interval of apache.snapshots has elapsed or updates are
forced -> [Help 1]

[ERROR] 

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR] 

[ERROR] For more information about the errors and possible solutions, please read the following
articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

[xiaobogu@lix3 hwi]$ 



-- 
Vorstandsvorsitzender/Chairman of the board of management:
Gerd-Lothar Leonhart
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Michael Heinrichs, Dr. Arno Steitz
 Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Philippe Miltin
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196
Mime
View raw message