This is known issue. https://issues.apache.org/jira/browse/HIVE-10674
> From: yu20...@hotmail.com > To: dev@hive.apache.org > Subject: Build hive failure on ubuntu 15.04 with oracle java 1.8 > Date: Tue, 26 May 2015 11:58:45 +0800 > > Hi guys, > I tried to built hive 1.2.0 on ubuntu 15.04 with oracle Java 1.8. Then I > encountered following problem.What should I do to fix this issue? > Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; > support was removed in 8.0Running > org.apache.hadoop.hive.metastore.TestMetastoreExprTests run: 1, Failures: 0, > Errors: 0, Skipped: 0, Time elapsed: 8.719 sec - in > org.apache.hadoop.hive.metastore.TestMetastoreExprResults :Failed tests: > TestExecDriver.testMapRedPlan1:513->executePlan:487 expected:<true> but > was:<false> TestExecDriver.testMapRedPlan2:522->executePlan:487 > expected:<true> but was:<false> > TestExecDriver.testMapRedPlan3:531->executePlan:487 expected:<true> but > was:<false> TestExecDriver.testMapRedPlan4:540->executePlan:487 > expected:<true> but was:<false> > TestExecDriver.testMapRedPlan5:549->executePlan:487 expected:<true> but > was:<false> TestExecDriver.testMapRedPlan6:558->executePlan:487 > expected:<true> but was:<false> > TestExecDriver.testMapPlan1:496->executePlan:487 expected:<true> but > was:<false> TestExecDriver.testMapPlan2:504->executePlan:487 expected:<true> > but was:<false> TestSessionState.testReloadExistingAuxJars2:234 Could not > find SessionStateTest.jar.v1 TestSessionState.testReloadAuxJars2:191 Could > not find SessionStateTest.jar.v1 > TestSessionState.testReloadExistingAuxJars2:234 Could not find > SessionStateTest.jar.v1 TestSessionState.testReloadAuxJars2:191 Could not > find SessionStateTest.jar.v1Tests run: 3545, Failures: 12, Errors: 0, > Skipped: 1[ERROR] Failed to execute goal > org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on > project hive-exec: There are test failures.[ERROR][ERROR] Please refer to > /home/hadoop/apache-hive-1.2.0-src/ql/target/surefire-reports for the > individual test results.[ERROR] -> [Help > 1]org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) > on project hive-exec: There are test failures.Please refer to > /home/hadoop/apache-hive-1.2.0-src/ql/target/surefire-reports for the > individual test results. at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) > at > org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) > at > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at > org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at > org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at > org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:497) at > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) > at > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) > at > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)Caused > by: org.apache.maven.plugin.MojoFailureException: There are test > failures.Thanks,Jared