1. 程式人生 > >How-to: resolve "java.lang.NoClassDefFoundError: org/htrace/Trace" when hbase Export

How-to: resolve "java.lang.NoClassDefFoundError: org/htrace/Trace" when hbase Export

Caused by: java.lang.NoClassDefFoundError: org/htrace/Trace
        at org.apache.hadoop.hbase.client.ResultBoundedCompletionService.submit(ResultBoundedCompletionService.java:142)
        at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.addCallsForCurrentReplica(ScannerCallableWithReplicas.java:276)
        at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:165)
        at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:57)
        at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:200)
        ... 17 more
Debugging:
The related jar is named htrace-core-3.0.4.jar which is located in ${HBASE_HOME}. But hadoop nodemanager does not find this. This is because hadoop clients classpath does not include this jar. I think this should be a hbase bug. That is during hbase Export, hbase should add this jar into runtime classpath. 
Solution:
One workaround is adding this jar into hadoop lib in which all jars will be loaded during jop runtime. Like: ${HADOOP_HOME}/share/hadoop/mapreduce/lib/. Do this in each nodemanger as you are not sure which node mapreduce job will run.

相關推薦

How-to: resolve "java.lang.NoClassDefFoundError: org/htrace/Trace" when hbase Export

Caused by: java.lang.NoClassDefFoundError: org/htrace/Trace at org.apache.hadoop.hbase.client.ResultBoundedCompletionService.submit(ResultBoundedC

Spark-HBase集成錯誤之 java.lang.NoClassDefFoundError: org/htrace/Trace

獲取 nod loader cal adc 標註 launcher targe gin 在進行Spark與HBase 集成的過程中遇到以下問題: java.lang.IllegalArgumentException: Error while instantiati

mybatis + log4j2 問題 java.lang.NoClassDefFoundError: org/apache/logging/log4j/spi/AbstractLoggerWrapper

logger nbsp 比較 mybatis oot log ogg bst modified root cause java.lang.NoClassDefFoundError: org/apache/logging/log4j/spi/AbstractLoggerWra

java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils

apache con ont test oca action error esp iat 1.java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils 缺少類 2. There is no Ac

java.lang.NoClassDefFoundError: org/apache/zookeeper/Watcher$Event$KeeperState

create col cycle eve apach sport fig depend frame 七月 29, 2017 10:51:00 上午 org.apache.catalina.core.StandardContext listenerStart嚴重: Excep

Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/boot/context/embedded/ServletRegistrationBean

cau type main ebean url nag jar except found 異常信息 2017-09-02 18:06:37.223 [main] ERROR o.s.boot.SpringApplication - Application startup

java.lang.NoClassDefFoundError: org/apache/ibatis/cursor/Cursor

error: cursor net sde 鏈接 版本 解決方法 pri batis 因為mybatis的版本和mybatis-spring的版本不兼容導致的,解決方法:mybatis的3.4.0及以上版本用mybatis-spring1.3.0及以上版本;mybatis的

java.lang.NoClassDefFoundError: org/apache/jsp/Index_jsp

internal col erl jsp catalina log pre under .class 今天在啟動Tomcat 後發現出現了這個錯誤 嚴重: Servlet.service() for servlet jsp threw exception j

java.lang.NoClassDefFoundError: org/junit/runner/manipulation/Filter

就是 bsp intercept ssi != stack ktr tex ins   今天想寫個隨筆,最近經常遇到使用junit的時候報java.lang.NoClassDefFoundError,今天算是恍然大悟了,原來junit雖然在gradle裏面配置了,也在Pro

java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileUploadException

IDEA也沒提示錯誤,但是跑單元測試的時候報錯 加入以下依賴正常 > <groupId>commons-fileupload</groupId> > <artifactId>common

@EnableAspectJAutoProxy:java.lang.NoClassDefFoundError: org/aspectj/lang/annotation/Pointcut

@EnableAspectJAutoProxy註解版本不相容出現的異常 org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.springframework.ao

關於Itext 報錯-java.lang.NoClassDefFoundError: org/bouncycastle/asn1/ASN1Encodable

  如果我們在用iText 做為java 為PDF 文件加水印的時候 報如下異常  java.lang.NoClassDefFoundError: org/bouncycastle/asn1/ASN1Encodable com.itextpdf.text.pdf.PdfEncryption.&

java.lang.NoClassDefFoundError: org/codehaus/jackson/map/ObjectMapper

錯誤詳情: 嚴重: Servlet.service() for servlet [springmvc] in context with path [/SpringMVCTest] threw exception [Handler processing failed; nested excep

java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory,翻閱文件,都是說tomcat 少了什麼包。但是又說tomcat7以前的才會出現。直到翻到了https://www.oschina.net/question/17097

別人推薦jfinal非常好,就想著要在eclipse中進行一個demo的實驗。通過閱讀了幾篇大神的部落格。終於把環境安裝完成。 http://blog.csdn.net/weixin_37176250/article/details/71720803。這位大神的上下文章都介紹了jfinal的環境

java.lang.NoClassDefFoundError: org/jaxen/NamespaceContext

使用SAXReader時報 java.lang.NoClassDefFoundError: org/jaxen/NamespaceContext 原因:缺少jar包 使用SAXReader需要兩個jar包 dom4j-1.6.1.jar jaxen-1.1-beta-6.j

java.lang.NoClassDefFoundError: org/apache/curator/RetryPolicy解決方法

今天整合es-job到公司的框架時,啟動時出現上述錯誤 java.lang.NoClassDefFoundError: org/apache/curator/RetryPolicy at storm.kafka.KafkaSpout.open(KafkaSpout.java:68) at backtype.

java.lang.NoClassDefFoundError: org/activiti/bpmn/model/StartEvent

原因:缺少activiti相關jar包 解決方法:新增maven依賴 <dependency> <groupId>org.activiti</groupId> <artifactId>activiti-e

Spring配置錯誤java lang NoClassDefFoundError org/springframewor

分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!http://blog.csdn.net/jiangjunshow 也歡迎大家轉載本篇文章。分享知識,造福人民,實現我們中華民族偉大復興!        

sqoop1 import 時報錯Exception in thread "main" java.lang.NoClassDefFoundError: org/json/JSONObject

如題,sqoop1 import 時報錯Exception in thread "main" java.lang.NoClassDefFoundError: org/json/JSONObject。 這是因為sqoop缺少java-json.jar包.去http://www.java2s.c

Maven專案中出現java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItemFactory異常的解決方案!

前幾天專案出現的問題: 啟動專案時一直報異常資訊:        java.lang.NoClassDefFoundError:org/apache/commons/fileupload/FileItemFactory.