phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ankit Singhal (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (PHOENIX-4895) NoClassDefFound when use IndexTool create async index
Date Tue, 11 Sep 2018 10:31:00 GMT

     [ https://issues.apache.org/jira/browse/PHOENIX-4895?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ankit Singhal resolved PHOENIX-4895.
------------------------------------
    Resolution: Duplicate

> NoClassDefFound when use IndexTool create async index
> -----------------------------------------------------
>
>                 Key: PHOENIX-4895
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-4895
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 5.0.0
>         Environment: HDP :3.0.0
> HBase :2.0.0
> Phoenix : 5.0.0
> Hadoop : 3.1.0
>            Reporter: 张延召
>            Priority: Major
>              Labels: 5.0.0, ASYNC, INDEX
>             Fix For: 5.1.0
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> *First I created a table:*
> ^CREATE TABLE TMP_TEST(^
>  ^ID VARCHAR NOT NULL PRIMARY KEY,^
>  ^NAME VARCHAR,^
>  ^ADDR VARCHAR,^
>  ^AGE BIGINT DEFAULT 10^
>  ^);^
> *Then I created the asynchronous index table:*
> ^CREATE INDEX ASYNC_IDX ON TMP_TEST (NAME, ADDR) INCLUDE (AGE) ASYNC;^
> *Finally, perform the MapReduce Task:*
> ^./hbase org.apache.phoenix.mapreduce.index.IndexTool --schema default --data-table TMP_TEST
--index-table ASYNC_IDX --output-path ASYNC_IDX_HFILES^
> *But I received an error message:*
> ^Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/DefaultParser^
>  ^at org.apache.phoenix.mapreduce.index.IndexTool.parseOptions(IndexTool.java:183)^
>  ^at org.apache.phoenix.mapreduce.index.IndexTool.run(IndexTool.java:522)^
>  ^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:769)^
>  ^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:335)^
>  ^at java.lang.ClassLoader.loadClass(ClassLoader.java:357)^
>  ^... 5 more^
> *Please give me some advice,Thanks!*
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message