반응형
Notice
Recent Posts
Recent Comments
Link
안단테 안단테
HBase 에러종류 본문
728x90
반응형
Glad to help. In the following, I list each exception and the jar file which fixed it.
(1) Exception in thread "main" java.lang.<wbr />NoClassDefFoundError: org/apache/hadoop/conf/<wbr />Configuration
Caused by: java.lang.<wbr />ClassNotFoundException: org.apache.hadoop.conf.<wbr />Configuration
Fixed by adding hadoop-common-2.2.0.jar
(2) Exception in thread "main" java.lang.<wbr />NoClassDefFoundError: org/apache/commons/logging/<wbr />LogFactory
at org.apache.hadoop.conf.<wbr />Configuration.<clinit>(<wbr />Configuration.java:165)
Caused by: java.lang.<wbr />ClassNotFoundException: org.apache.commons.logging.<wbr />LogFactory
Fixed by adding commons-logging-1.1.3.jar
(3) Exception in thread "main" java.lang.<wbr />NoClassDefFoundError: com/google/common/collect/<wbr />Interners
Fixed by adding guava-16.0.jar
(4) Exception in thread "main" java.lang.<wbr />NoClassDefFoundError: org/apache/commons/<wbr />configuration/Configuration
Fixed by adding commons-configuration-1.10.jar
(5) Exception in thread "main" java.lang.<wbr />NoClassDefFoundError: org/apache/commons/lang/<wbr />StringUtils
Fixed by adding commons-lang-2.6.jar
(6) Exception in thread "main" java.lang.<wbr />NoClassDefFoundError: org/apache/hadoop/util/<wbr />PlatformName
Fixed by adding hadoop-auth-2.2.0.jar
(7) Exception in thread "main" java.lang.<wbr />NoClassDefFoundError: org/slf4j/LoggerFactory
Fixed by adding slf4j-api-1.7.5.jar
(8) Exception in thread "main" java.io.IOException: No FileSystem for scheme: hdfs
Fixed by adding hadoop-hdfs-2.2.0.jar
(9) Exception in thread "main" java.lang.<wbr />NoClassDefFoundError: org/apache/commons/cli/<wbr />ParseException
Fixed by adding commons-cli-1.2.jar
(10) Exception in thread "main" java.lang.<wbr />NoClassDefFoundError: com/google/protobuf/<wbr />ServiceException
Fixed by adding protobuf-java-2.5.0.jar
At that point, the program could access the HDFS.
Hope this helps!
728x90
반응형
'IT 기술 > BigData' 카테고리의 다른 글
5. Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.collect.MapMaker.keyEquivalence(Lcom/google/common/base/Equivalence;)Lcom/google/common/collect/MapMaker; (0) | 2023.02.03 |
---|---|
4. java 에러 (0) | 2023.02.03 |
1. HBase란? (0) | 2023.02.03 |
4. 하둡 hdfs 명령어 정리 (0) | 2023.02.03 |
3. Hadoop 2.2 Installation `.' no such file or directory (0) | 2023.02.03 |
Comments