Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-485

Gateway deployment directory value is been hardcoded , instead of value being read from exposed configuration.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.5.0
    • None
    • Server
    • None

    Description

      Issue1 :
      ======

      During Gateway startup , deployment directory value is been hardcoded , instead of value being read from available configuration .

        @Override
        public String getGatewayDeploymentDir() {
          return getGatewayDataDir() + File.separator + "deployments";
        }
      

      Issue2:
      ======
      Configuration Name in gateway-default.xml is not same as the name used in "org.apache.hadoop.gateway.config.impl.GatewayConfigImpl"

        private static final String GATEWAY_CONFIG_FILE_PREFIX = "gateway";
        public static final String DEPLOYMENT_DIR = GATEWAY_CONFIG_FILE_PREFIX + ".deployment.dir";
      

      Incorrect Configuration name in gateway-default.xml

          <property>
              <name>gateway.gateway.conf.dir</name>
              <value>deployments</value>
              <description>The directory within GATEWAY_HOME that contains gateway topology deployments.</description>
          </property>
      

      Attachments

        1. KNOX-485.3.patch
          4 kB
          J.Andreina
        2. KNOX-485.2.patch
          6 kB
          J.Andreina
        3. KNOX-485.1.patch
          2 kB
          J.Andreina

        Issue Links

          Activity

            People

              andreina J.Andreina
              andreina J.Andreina
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: