You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by sh...@apache.org on 2018/06/01 05:46:14 UTC
[kylin] branch master updated: Analytic table name
ArrayIndexOutOfBoundsException
This is an automated email from the ASF dual-hosted git repository.
shaofengshi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kylin.git
The following commit(s) were added to refs/heads/master by this push:
new c7d5ea2 Analytic table name ArrayIndexOutOfBoundsException
c7d5ea2 is described below
commit c7d5ea2e255d30f6b9103037c48df746385dd3ce
Author: sanfeng.zhang <pi...@gmail.com>
AuthorDate: Wed Apr 18 08:33:58 2018 +0800
Analytic table name ArrayIndexOutOfBoundsException
Called without a default parameter will result in
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 2
at org.apache.kylin.storage.hbase.util.DeployCoprocessorCLI.main(DeployCoprocessorCLI.java:118)
In 100 lines to determine if the first parameter of the command line is default, curIdx has ++, if the first parameter is not the default line 103, curIdx is re-++, resulting in the parameter misalignment.
---
.../java/org/apache/kylin/storage/hbase/util/DeployCoprocessorCLI.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/util/DeployCoprocessorCLI.java b/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/util/DeployCoprocessorCLI.java
index 366e8cc..23ec77f 100644
--- a/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/util/DeployCoprocessorCLI.java
+++ b/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/util/DeployCoprocessorCLI.java
@@ -100,7 +100,7 @@ public class DeployCoprocessorCLI {
if ("default".equals(args[curIdx++])) {
localCoprocessorJar = kylinConfig.getCoprocessorLocalJar();
} else {
- localCoprocessorJar = new File(args[curIdx++]).getAbsolutePath();
+ localCoprocessorJar = new File(args[curIdx]).getAbsolutePath();
}
logger.info("Identify coprocessor jar " + localCoprocessorJar);
--
To stop receiving notification emails like this one, please contact
shaofengshi@apache.org.