梁龙 created KYLIN-3822: ------------------------- Summary: $KYLIN_HOME/bin/kylin.sh org.apache.kylin.storage.hbase.util.DeployCoprocessorCLI $KYLIN_HOME/lib/kylin-coprocessor-*.jar [nOfThread] all 不能正确执行 Key: KYLIN-3822 URL: https://issues.apache.org/jira/browse/KYLIN-3822 Project: Kylin Issue Type: Improvement Components: Storage - HBase Affects Versions: v2.5.1 Reporter: 梁龙
源码片段如下 {code:java} int curIdx = 0; if ("default".equals(args[curIdx++])) { localCoprocessorJar = kylinConfig.getCoprocessorLocalJar(); } else { curIdx--; localCoprocessorJar = new File(args[curIdx++]).getAbsolutePath(); } {code} org.apache.kylin.storage.hbase.util.DeployCoprocessorCLI {code:java} "default".equals(args[curIdx++]){code} 运行完之后,curIdx的值为1,如果该表达式为false,则args[curIdx]取到的参数为第二个参数,非第一个参数(第一个参数才代表localCoprocessorJar的地址) -- This message was sent by Atlassian JIRA (v7.6.3#76005)