Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-3822

"bin/kylin.sh org.apache.kylin.storage.hbase.util.DeployCoprocessorCLI [file_path] [nOfThread] all" can not run successfully

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • v2.5.1
    • v2.6.1
    • Storage - HBase
    • Patch

    Description

      源码片段如下

      int curIdx = 0;
      if ("default".equals(args[curIdx++])) {
      localCoprocessorJar = kylinConfig.getCoprocessorLocalJar();
      } else {
      curIdx--;
      localCoprocessorJar = new File(args[curIdx++]).getAbsolutePath();
      }
      

      org.apache.kylin.storage.hbase.util.DeployCoprocessorCLI

      "default".equals(args[curIdx++])

      运行完之后,curIdx的值为1,如果该表达式为false,则args[curIdx]取到的参数为第二个参数,非第一个参数(第一个参数才代表localCoprocessorJar的地址)

      Attachments

        Issue Links

          Activity

            People

              15026875534 梁龙
              15026875534 梁龙
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified