java.lang.ClassNotFoundException: com.google.common.primitives.Ints

Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/primitives/Ints
at org.apache.hive.service.cli.Column.(Column.java:149)
at org.apache.hive.service.cli.ColumnBasedSet.(ColumnBasedSet.java:51)
at org.apache.hive.service.cli.RowSetFactory.create(RowSetFactory.java:37)
at org.apache.hive.jdbc.HiveQueryResultSet.next(HiveQueryResultSet.java:333)
at testHive.main(testHive.java:83)
Caused by: java.lang.ClassNotFoundException: com.google.common.primitives.Ints
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 5 more

Java对Hive进行select时遇到以上错误,导入了com.google.guava_1.6.0.jar这个jar包就没有问题了。

jar包下载地址:http://download.csdn.net/detail/q2011zhuce/9467901

你可能感兴趣的:(java.lang.ClassNotFoundException: com.google.common.primitives.Ints)