Description
Getting this error, when running with hbase-1.6
I think this stems from the jar dependency mismatch between phoenix 4.x/4.16 and hbase1.6
hbase-1.6 : commons-cli-1.2.jar (https://github.com/apache/hbase/blob/5ec5a5b115ee36fb28903667c008218abd21b3f5/pom.xml#L1260)
phoenix 4.x : commons-cli-1.4.jar (https://github.com/apache/phoenix/blob/44d44029597d032af1be54d5e9a70342c1fe4769/pom.xml#L100)
What is the best way to resolve this? Shading?
FYI
yanxinyi ChinmayKulkarni kadir
**Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/DefaultParser
at org.apache.phoenix.mapreduce.index.IndexTool.parseOptions(IndexTool.java:354)
at org.apache.phoenix.mapreduce.index.IndexTool.run(IndexTool.java:788)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90)
at org.apache.phoenix.mapreduce.index.IndexTool.main(IndexTool.java:1201)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.cli.DefaultParser
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
Attachments
Issue Links
- is related to
-
PHOENIX-6349 Add and use commons-cli to phoenix-thirdparty
- Closed