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.lang.NoSuchMethodError錯誤JavaError
- 【Android】【init】解析init程式啟動過程Android
- git init 命令Git
- __init__.py
- clinit和init
- Java操作某方法時報錯:java.lang.NoSuchMethodErrorJavaError
- OpenHarmony的init程式、init配置與啟動項配置
- java.lang.NoSuchMethodError: javax.servlet.ServletContext.getContextPath()Ljava/lang/String;JavaErrorServletContext
- Go init 函式Go函式
- Linux init程式分析Linux
- [JVM]<clinit>和<init>JVM
- 2788647047_init_multiprocessing
- Golang init() 函式Golang函式
- 50-cloud-init.yaml 和80-cloud-init.yaml區別CloudYAML
- Linux基礎命令—initLinux
- git init命令詳解Git
- vue init webpack報錯VueWeb
- Python: __init__.py 作用Python
- Ubuntu移除cloud init元件UbuntuCloud元件
- 理解 go mod init 命令Go
- npx & yarn create & npm initYarnNPM
- java.lang.NoSuchMethodError: No static method getFont(Landroid/content/Context;ILandroid/util/Typ...JavaErrorAndroidContext
- Java報錯:java.lang.NoSuchMethodError: io.netty.util.internal.ObjectUtil.checkPositiveJavaErrorNettyObject
- 異常:java.lang.NoSuchMethodError: org.apache.poi.ss.usermodel.Workbook.getCellStyleAtJavaErrorApache
- spring的延遲初始化bean (default-lazy-init 與 lazy-init )SpringBean
- vue 中引用echarts 初始化init undefind問題(Cannot read property ‘init‘ of undefined)VueEchartsUndefined
- Linux基礎命令---init程式Linux
- __new()__ 與 __init()__的區別
- Android 9.0 init 啟動流程Android
- i_init_func_execute_data
- Python中__init__的理解Python
- kubernetes之初始容器(init container)AI
- Call to undefined function mysqli_init()UndefinedFunctionMySql
- PVE Cloud-INIT 模板配置Cloud
- go mod init報錯問題Go
- Linux下init程式原始碼分析Linux原始碼
- 2.16.10.init程式詳解1
- 00 #### `__init__` ,初始化方法