Hello.

I'm trying to configure the System Cube in Kylin 2.3.1 and I'm following the tutorial that is included in the official documentation of Kylin (http://kylin.apache.org/docs23/howto/howto_setup_systemcube.html).

Once I've finished the configuration of the system cubes, I've changed the Cron scheduling to run the cube-building script regularly in order to have my cubes built and updated.

Unfortunately the process is failing. I have checked the building logs and the it gives me the following exception:

Abstract Application args:–cube KYLIN_HIVE_METRICS_QUERY_DEV –endTime 1524207600   000
usage: org.apache.kylin.tool.job.CubeBuildingCLI
 -buildType <buildType>   Specify for the build type
 -cube <cube>             Specify for which cube to build
 -endTime <endTime>       Specify the end time of the segment
 -startTime <startTime>   Specify the start time of the segment
2018-04-20 10:57:49,753 ERROR [main] job.CubeBuildingCLI:134 : error start cube    building
java.lang.RuntimeException: error parsing args
        at org.apache.kylin.common.util.AbstractApplication.execute(AbstractAppl ication.java:40)         at org.apache.kylin.tool.job.CubeBuildingCLI.main(CubeBuildingCLI.java:1 31) Caused by: org.apache.commons.cli.MissingOptionException: Missing required optio   ns: cube, endTime         at org.apache.commons.cli.Parser.checkRequiredOptions(Parser.java:299)
        at org.apache.commons.cli.Parser.parse(Parser.java:231)
        at org.apache.commons.cli.Parser.parse(Parser.java:85)
        at org.apache.kylin.common.util.OptionsHelper.parseOptions(OptionsHelper .java:38)         at org.apache.kylin.common.util.AbstractApplication.execute(AbstractAppl ication.java:36)
        ... 1 more

It appears that the kylin script is getting the right arguments (the cube name and the end time). However, it shows me a parsing error.

I don't understand this error at all so I'd tank anyone who could help me fixing this.

Kind regards,

Jose M.

Reply via email to