Maven依赖
复制代码 报错:
- Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/hive/ql/io/HiveIgnoreKeyTextOutputFormat
- at java.lang.ClassLoader.defineClass1(Native Method)
- at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
- at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
- at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
- at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
- at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
- 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:412)
- at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
- at java.lang.Class.forName0(Native Method)
- at java.lang.Class.forName(Class.java:274)
- at org.apache.hadoop.hive.common.JavaUtils.loadClass(JavaUtils.java:78)
- at org.apache.hadoop.hive.common.JavaUtils.loadClass(JavaUtils.java:74)
- at org.apache.hive.hcatalog.mapreduce.FosterStorageHandler.<init>(FosterStorageHandler.java:60)
- at org.apache.hive.hcatalog.common.HCatUtil.getStorageHandler(HCatUtil.java:404)
- at org.apache.hive.hcatalog.common.HCatUtil.getStorageHandler(HCatUtil.java:367)
- at org.apache.hive.hcatalog.mapreduce.InitializeInput.extractPartInfo(InitializeInput.java:158)
- at org.apache.hive.hcatalog.mapreduce.InitializeInput.getInputJobInfo(InitializeInput.java:128)
- at org.apache.hive.hcatalog.mapreduce.InitializeInput.setInput(InitializeInput.java:86)
- at org.apache.hive.hcatalog.mapreduce.HCatInputFormat.setInput(HCatInputFormat.java:95)
- at org.apache.hive.hcatalog.mapreduce.HCatInputFormat.setInput(HCatInputFormat.java:61)
- at com.xiaoju.dp.Driver.run(Driver.java:49)
- at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
- at com.xiaoju.dp.Driver.main(Driver.java:65)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:606)
- at org.apache.hadoop.util.RunJar.main(RunJar.java:212)
- Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
- 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)
- ... 33 more
复制代码
我反编译自己打包的jar,可以找到org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
有没有人遇到,或者知道怎么解决这个问题?急
|