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

When uhc step is turned on, Build Dimension Dictionary job cannot get correct configuration

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • v2.6.4
    • v3.0.2, v2.6.6
    • Job Engine
    • None

    Description

      Hi guys :

          In the Configuration overrides step of Cube Designer, I added the following configuration:

      kylin.engine.mr.build-uhc-dict-in-additional-step = true
      

          When building the cube, it will take an extra step to handle the UHC dimensions, but I found that in the step of 'Build Dimension Dictionary', it still builds the dictionary that has been built in the previous step which takes double the time to build the dictionary.

          When I traced the source code, I found that our expected code was not executed due to config.isBuildUHCDictWithMREnabled() == false :

      if (config.isBuildUHCDictWithMREnabled() && uhcColumns.contains(col)) {
          colDir = new Path(dictPath, col.getIdentity());
      } else {
          colDir = new Path(factColumnsInputPath, col.getIdentity());
      }
      

          The root cause is that the configuration used in this step is the environment configuration, but our parameters are set in the cube:

      final KylinConfig config = KylinConfig.getInstanceFromEnv();

          I think the configuration of the cube should be used here instead of the environment configuration.

      Attachments

        Issue Links

          Activity

            People

              ChangjiGuo ChangjiGuo
              ChangjiGuo ChangjiGuo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: