java.lang.NoSuchMethodError: org.apache.hadoop.hbase.client.HTable.<init>
今天
在做線上hadoop叢集升級的時候,遇到如下錯誤:
java.lang.NoSuchMethodError: org.apache.hadoop.hbase.client.HTable.(Lorg/apache/hadoop/conf/Configuration;[B)V
at org.apache.hadoop.hive.hbase.HiveHBaseTableInputFormat.getSplits(HiveHBaseTableInputFormat.java:362)
at org.apache.hadoop.hive.ql.io.HiveInputFormat.getSplits(HiveInputFormat.java:286)
at org.apache.hadoop.mapred.JobClient.writeOldSplits(JobClient.java:810)
at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:781)
at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:730)
at org.apache.hadoop.hive.ql.exec.ExecDriver.execute(ExecDriver.java:657)
at org.apache.hadoop.hive.ql.exec.MapRedTask.execute(MapRedTask.java:123)
at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:130)
at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:57)
at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1063)
at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:900)
at org.apache.hadoop.hive.ql.Driver.run(Driver.java:748)
at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:164)
at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:241)
at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:456)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.hadoop.util.RunJar.main(RunJar.java:156)
根據提示資訊,顯示,是無法找到對應jar包中響應的函式,後來發現,是自己範的的錯誤,我在原來/hadoop/hadoop/lib路徑下放了老的hbase.jar包,我用新的hbase-0.90.3.jar替換掉,問題解決。
以後做升級一定要小心了。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8183550/viewspace-705719/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- java.lang.NoSuchMethodError:Nostatic method init(Landroid/content/Context;Ljava/lang/String;Ljava/laJavaErrorAndroidContext
- java -- java.lang.NoSuchMethodError的問題JavaError
- 解決java.lang.NoSuchMethodError錯誤JavaError
- Init
- init sys
- Java操作某方法時報錯:java.lang.NoSuchMethodErrorJavaError
- 【Android】【init】解析init程式啟動過程Android
- git init 命令Git
- ora_init
- __init__.py
- java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.(I)VJavaErrorObjectWebASM
- OpenHarmony的init程式、init配置與啟動項配置
- java.lang.NoSuchMethodError: javax.servlet.ServletInputStream.isFinished錯誤JavaErrorServlet
- Android系統啟動:init程式與init語言Android
- Go init 函式Go函式
- Golang init() 函式Golang函式
- clinit和init
- 47.6.Init.dScript
- OC alloc、init、new
- 10.2.0.2 init parameter
- 50-cloud-init.yaml 和80-cloud-init.yaml區別CloudYAML
- spring中的default-lazy-init引數和lazy-initSpring
- Linux init程式分析Linux
- git init命令詳解Git
- npx & yarn create & npm initYarnNPM
- 系統啟動, init
- vue init webpack報錯VueWeb
- python的__init__()Python
- Servlet的init注意點Servlet
- shutdown,halt,reboot,init(轉)boot
- Linux init詳解Linux
- Ubuntu移除cloud init元件UbuntuCloud元件
- [JVM]<clinit>和<init>JVM
- 理解 go mod init 命令Go
- 2788647047_init_multiprocessing
- StrutsSpringHibernate - java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.(I)VSpringJavaErrorObjectWebASM
- Java報錯:java.lang.NoSuchMethodError: io.netty.util.internal.ObjectUtil.checkPositiveJavaErrorNettyObject
- i_init_func_execute_data