kylin-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KYLIN-3336) java.lang.NoSuchMethodException: org.apache.kylin.tool.HBaseUsageExtractor.execute([Ljava.lang.String;)
Date Wed, 30 May 2018 10:27:00 GMT

    [ https://issues.apache.org/jira/browse/KYLIN-3336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16494978#comment-16494978
] 

ASF GitHub Bot commented on KYLIN-3336:
---------------------------------------

shaofengshi closed pull request #128: KYLIN-3336
URL: https://github.com/apache/kylin/pull/128
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/tool/src/main/java/org/apache/kylin/tool/DiagnosisInfoCLI.java b/tool/src/main/java/org/apache/kylin/tool/DiagnosisInfoCLI.java
index 6fe63e4ea4..d960f8f6a9 100644
--- a/tool/src/main/java/org/apache/kylin/tool/DiagnosisInfoCLI.java
+++ b/tool/src/main/java/org/apache/kylin/tool/DiagnosisInfoCLI.java
@@ -192,7 +192,7 @@ public void run() {
                                 projectNames, "-compress", "false", "-submodule", "true"
};
                         logger.info("HBaseUsageExtractor args: " + Arrays.toString(hbaseArgs));
                         Object extractor = ClassUtil.newInstance("org.apache.kylin.tool.HBaseUsageExtractor");
-                        Method execute = extractor.getClass().getDeclaredMethod("execute",
String[].class);
+                        Method execute = extractor.getClass().getMethod("execute", String[].class);
                         execute.invoke(extractor, (Object) hbaseArgs);
                     } catch (Throwable e) {
                         logger.error("Error in export HBase usage.", e);


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> java.lang.NoSuchMethodException: org.apache.kylin.tool.HBaseUsageExtractor.execute([Ljava.lang.String;)
> -------------------------------------------------------------------------------------------------------
>
>                 Key: KYLIN-3336
>                 URL: https://issues.apache.org/jira/browse/KYLIN-3336
>             Project: Kylin
>          Issue Type: Bug
>          Components: Tools, Build and Test
>    Affects Versions: v2.3.0
>            Reporter: Peng Xing
>            Assignee: Peng Xing
>            Priority: Minor
>             Fix For: v2.4.0
>
>
> When using diag.sh, got following exception:
> 2018-04-04 16:14:18,222 ERROR [pool-7-thread-3] tool.DiagnosisInfoCLI:171 : Error in
export HBase usage.
> java.lang.NoSuchMethodException: org.apache.kylin.tool.HBaseUsageExtractor.execute([Ljava.lang.String;)
>         at java.lang.Class.getDeclaredMethod(Class.java:2017)
>         at org.apache.kylin.tool.DiagnosisInfoCLI$3.run(DiagnosisInfoCLI.java:168)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:622)
>         at java.lang.Thread.run(Thread.java:745)
> Because getDeclaredMethod(String name, Class<?>... parameterTypes) can not get
the inherited methods



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

Mime
View raw message