hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zhu Li <zhu.andrew...@gmail.com>
Subject Fwd: Test failure
Date Mon, 18 Jul 2016 18:23:24 GMT
---------- Forwarded message ----------
From: Zhu Li <zhu.andrew.li@gmail.com>
Date: Mon, Jul 18, 2016 at 11:21 AM
Subject: Test failure
To: user@hive.apache.org


Hi all,

I went through Hive developer guide, built hive code successfully and then
ran "mvn test". But I got the following error:

-------------------------------------------------------

 T E S T S

-------------------------------------------------------


-------------------------------------------------------

 T E S T S

-------------------------------------------------------

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
MaxPermSize=512m; support was removed in 8.0

Running org.apache.hadoop.hive.conf.TestHiveConf

Tests run: 5, Failures: 0, Errors: 5, Skipped: 0, Time elapsed: 0.379 sec
<<< FAILURE! - in org.apache.hadoop.hive.conf.TestHiveConf

testHiveSitePath(org.apache.hadoop.hive.conf.TestHiveConf)  Time elapsed:
0.29 sec  <<< ERROR!

java.lang.NoClassDefFoundError:
org/apache/hadoop/mapreduce/TaskAttemptContext

at java.net.URLClassLoader.findClass(URLClassLoader.java:381)

at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)

at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:264)

at org.apache.hadoop.hive.shims.ShimLoader.createShim(ShimLoader.java:146)

at org.apache.hadoop.hive.shims.ShimLoader.loadShims(ShimLoader.java:141)

at
org.apache.hadoop.hive.shims.ShimLoader.getHadoopShims(ShimLoader.java:100)

at org.apache.hadoop.hive.conf.HiveConf$ConfVars.<clinit>(HiveConf.java:372)

at org.apache.hadoop.hive.conf.HiveConf.<clinit>(HiveConf.java:109)

at
org.apache.hadoop.hive.conf.TestHiveConf.testHiveSitePath(TestHiveConf.java:41)


testUnitFor(org.apache.hadoop.hive.conf.TestHiveConf)  Time elapsed: 0 sec
<<< ERROR!

java.lang.NoClassDefFoundError: Could not initialize class
org.apache.hadoop.hive.conf.HiveConf

at
org.apache.hadoop.hive.conf.TestHiveConf.testUnitFor(TestHiveConf.java:104)


testHiddenConfig(org.apache.hadoop.hive.conf.TestHiveConf)  Time elapsed:
0.001 sec  <<< ERROR!

java.lang.NoClassDefFoundError: Could not initialize class
org.apache.hadoop.hive.conf.HiveConf

at
org.apache.hadoop.hive.conf.TestHiveConf.testHiddenConfig(TestHiveConf.java:124)


testColumnNameMapping(org.apache.hadoop.hive.conf.TestHiveConf)  Time
elapsed: 0.002 sec  <<< ERROR!

java.lang.NoClassDefFoundError: Could not initialize class
org.apache.hadoop.hive.conf.HiveConf

at
org.apache.hadoop.hive.conf.TestHiveConf.testColumnNameMapping(TestHiveConf.java:98)


testConfProperties(org.apache.hadoop.hive.conf.TestHiveConf)  Time elapsed:
0 sec  <<< ERROR!

java.lang.NoClassDefFoundError: Could not initialize class
org.apache.hadoop.hive.conf.HiveConf$ConfVars

at
org.apache.hadoop.hive.conf.TestHiveConf.testConfProperties(TestHiveConf.java:73)


Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
MaxPermSize=512m; support was removed in 8.0

Running org.apache.hadoop.hive.conf.TestHiveLogging

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.374 sec
<<< FAILURE! - in org.apache.hadoop.hive.conf.TestHiveLogging

testHiveLogging(org.apache.hadoop.hive.conf.TestHiveLogging)  Time elapsed:
0.311 sec  <<< ERROR!

java.lang.NoClassDefFoundError:
org/apache/hadoop/mapreduce/TaskAttemptContext

at java.net.URLClassLoader.findClass(URLClassLoader.java:381)

at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)

at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:264)

at org.apache.hadoop.hive.shims.ShimLoader.createShim(ShimLoader.java:146)

at org.apache.hadoop.hive.shims.ShimLoader.loadShims(ShimLoader.java:141)

at
org.apache.hadoop.hive.shims.ShimLoader.getHadoopShims(ShimLoader.java:100)

at org.apache.hadoop.hive.conf.HiveConf$ConfVars.<clinit>(HiveConf.java:372)

at
org.apache.hadoop.hive.conf.TestHiveLogging.configLog(TestHiveLogging.java:50)

at
org.apache.hadoop.hive.conf.TestHiveLogging.RunTest(TestHiveLogging.java:97)

at
org.apache.hadoop.hive.conf.TestHiveLogging.testHiveLogging(TestHiveLogging.java:109)


Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
MaxPermSize=512m; support was removed in 8.0

Running org.apache.hadoop.hive.conf.TestHiveConfRestrictList

Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.346 sec
<<< FAILURE! - in org.apache.hadoop.hive.conf.TestHiveConfRestrictList

testAppendRestriction(org.apache.hadoop.hive.conf.TestHiveConfRestrictList)
Time elapsed: 0.283 sec  <<< ERROR!

java.lang.NoClassDefFoundError:
org/apache/hadoop/mapreduce/TaskAttemptContext

at java.net.URLClassLoader.findClass(URLClassLoader.java:381)

at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)

at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:264)

at org.apache.hadoop.hive.shims.ShimLoader.createShim(ShimLoader.java:146)

at org.apache.hadoop.hive.shims.ShimLoader.loadShims(ShimLoader.java:141)

at
org.apache.hadoop.hive.shims.ShimLoader.getHadoopShims(ShimLoader.java:100)

at org.apache.hadoop.hive.conf.HiveConf$ConfVars.<clinit>(HiveConf.java:372)

at
org.apache.hadoop.hive.conf.TestHiveConfRestrictList.setUp(TestHiveConfRestrictList.java:32)


testRestrictList(org.apache.hadoop.hive.conf.TestHiveConfRestrictList)
Time elapsed: 0.001 sec  <<< ERROR!

java.lang.NoClassDefFoundError: Could not initialize class
org.apache.hadoop.hive.conf.HiveConf$ConfVars

at
org.apache.hadoop.hive.conf.TestHiveConfRestrictList.setUp(TestHiveConfRestrictList.java:32)


testRestriction(org.apache.hadoop.hive.conf.TestHiveConfRestrictList)  Time
elapsed: 0 sec  <<< ERROR!

java.lang.NoClassDefFoundError: Could not initialize class
org.apache.hadoop.hive.conf.HiveConf$ConfVars

at
org.apache.hadoop.hive.conf.TestHiveConfRestrictList.setUp(TestHiveConfRestrictList.java:32)


Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
MaxPermSize=512m; support was removed in 8.0

Running org.apache.hadoop.hive.common.TestValidReadTxnList

Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.607 sec -
in org.apache.hadoop.hive.common.TestValidReadTxnList

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
MaxPermSize=512m; support was removed in 8.0

Running org.apache.hadoop.hive.common.metrics.TestMetrics

Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.478 sec -
in org.apache.hadoop.hive.common.metrics.TestMetrics

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
MaxPermSize=512m; support was removed in 8.0

Running org.apache.hadoop.hive.common.type.TestHiveIntervalDayTime

Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.172 sec -
in org.apache.hadoop.hive.common.type.TestHiveIntervalDayTime

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
MaxPermSize=512m; support was removed in 8.0

Running org.apache.hadoop.hive.common.type.TestUnsignedInt128

Tests run: 19, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.104 sec
- in org.apache.hadoop.hive.common.type.TestUnsignedInt128

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
MaxPermSize=512m; support was removed in 8.0

Running org.apache.hadoop.hive.common.type.TestSqlMathUtil

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.093 sec -
in org.apache.hadoop.hive.common.type.TestSqlMathUtil

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
MaxPermSize=512m; support was removed in 8.0

Running org.apache.hadoop.hive.common.type.TestHiveChar

Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.442 sec -
in org.apache.hadoop.hive.common.type.TestHiveChar

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
MaxPermSize=512m; support was removed in 8.0

Running org.apache.hadoop.hive.common.type.TestDecimal128

Tests run: 26, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.973 sec
- in org.apache.hadoop.hive.common.type.TestDecimal128

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
MaxPermSize=512m; support was removed in 8.0

Running org.apache.hadoop.hive.common.type.TestHiveIntervalYearMonth

Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.879 sec -
in org.apache.hadoop.hive.common.type.TestHiveIntervalYearMonth

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
MaxPermSize=512m; support was removed in 8.0

Running org.apache.hadoop.hive.common.type.TestHiveBaseChar

Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.05 sec -
in org.apache.hadoop.hive.common.type.TestHiveBaseChar

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
MaxPermSize=512m; support was removed in 8.0

Running org.apache.hadoop.hive.common.type.TestHiveDecimal

Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.413 sec
- in org.apache.hadoop.hive.common.type.TestHiveDecimal

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
MaxPermSize=512m; support was removed in 8.0

Running org.apache.hadoop.hive.common.type.TestHiveVarchar

Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.347 sec -
in org.apache.hadoop.hive.common.type.TestHiveVarchar

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
MaxPermSize=512m; support was removed in 8.0

Running org.apache.hadoop.hive.common.type.TestSignedInt128

Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.126 sec
- in org.apache.hadoop.hive.common.type.TestSignedInt128

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
MaxPermSize=512m; support was removed in 8.0

Running org.apache.hive.common.util.TestShutdownHookManager

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.238 sec -
in org.apache.hive.common.util.TestShutdownHookManager

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
MaxPermSize=512m; support was removed in 8.0

Running org.apache.hive.common.util.TestTimestampParser

Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.217 sec -
in org.apache.hive.common.util.TestTimestampParser

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
MaxPermSize=512m; support was removed in 8.0

Running org.apache.hive.common.util.TestBloomFilter

Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.128 sec
- in org.apache.hive.common.util.TestBloomFilter

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
MaxPermSize=512m; support was removed in 8.0

Running org.apache.hive.common.util.TestHiveStringUtils

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.128 sec -
in org.apache.hive.common.util.TestHiveStringUtils

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
MaxPermSize=512m; support was removed in 8.0

Running org.apache.hive.common.util.TestMurmur3

Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.174 sec -
in org.apache.hive.common.util.TestMurmur3


Results :


Tests in error:

  TestHiveConf.testHiveSitePath:41 » NoClassDefFound
org/apache/hadoop/mapreduce...

  TestHiveConf.testUnitFor:104 NoClassDefFound Could not initialize class
org.ap...

  TestHiveConf.testHiddenConfig:124 NoClassDefFound Could not initialize
class o...

  TestHiveConf.testColumnNameMapping:98 NoClassDefFound Could not
initialize cla...

  TestHiveConf.testConfProperties:73 NoClassDefFound Could not initialize
class ...

  TestHiveLogging.testHiveLogging:109->RunTest:97->configLog:50 »
NoClassDefFound

  TestHiveConfRestrictList.setUp:32 » NoClassDefFound
org/apache/hadoop/mapreduc...

  TestHiveConfRestrictList.setUp:32 NoClassDefFound Could not initialize
class o...

  TestHiveConfRestrictList.setUp:32 NoClassDefFound Could not initialize
class o...


Tests run: 135, Failures: 0, Errors: 9, Skipped: 0


Does anyone have any idea about how to fix this or why this happens?

Thanks!

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message