问题描述
Exceptioninthread"main"java.lang.RuntimeException:java.lang.RuntimeException:java.lang.ClassNotFoundException:org.apache.hadoop.security.JniBasedUnixGroupsMappingWithFallbackatorg.apache.hadoop.conf.Configuration.getClass(Configuration.java:881)atorg.apache.hadoop.security.Groups.<init>(Groups.java:48)atorg.apache.hadoop.security.Groups.getUserToGroupsMappingService(Groups.java:140)atorg.apache.hadoop.security.UserGroupInformation.initialize(UserGroupInformation.java:206)atorg.apache.hadoop.security.UserGroupInformation.ensureInitialized(UserGroupInformation.java:185)atorg.apache.hadoop.security.UserGroupInformation.isSecurityEnabled(UserGroupInformation.java:237)atorg.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:482)atorg.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:468)atorg.apache.hadoop.fs.FileSystem$Cache$Key.<init>(FileSystem.java:1519)atorg.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1420)atorg.apache.hadoop.fs.FileSystem.get(FileSystem.java:254)atorg.conan.mymahout.hdfs.HdfsDAO.rmr(HdfsDAO.java:59)atorg.conan.mymahout.recommendation.ItemCFHadoop.main(ItemCFHadoop.java:21)Causedby:java.lang.RuntimeException:java.lang.ClassNotFoundException:org.apache.hadoop.security.JniBasedUnixGroupsMappingWithFallbackatorg.apache.hadoop.conf.Configuration.getClass(Configuration.java:849)atorg.apache.hadoop.conf.Configuration.getClass(Configuration.java:873)...12moreCausedby:java.lang.ClassNotFoundException:org.apache.hadoop.security.JniBasedUnixGroupsMappingWithFallbackatjava.net.URLClassLoader$1.run(URLClassLoader.java:200)atjava.security.AccessController.doPrivileged(NativeMethod)atjava.net.URLClassLoader.findClass(URLClassLoader.java:188)atjava.lang.ClassLoader.loadClass(ClassLoader.java:307)atsun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)atjava.lang.ClassLoader.loadClass(ClassLoader.java:252)atjava.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)atjava.lang.Class.forName0(NativeMethod)atjava.lang.Class.forName(Class.java:247)atorg.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:802)atorg.apache.hadoop.conf.Configuration.getClass(Configuration.java:847)...13more