Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-12181

support configuration variable expansion in container localization

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: CDAP
    • Labels:
    • Rank:
      1|i005ef:

      Description

      Hadoop config files support Variable Expansion as described [here](https://hadoop.apache.org/docs/current/api/org/apache/hadoop/conf/Configuration.html).

      However, when trying to use this for cdap system properties, it appears the container localization uses the raw value from cdap-site.xml rather than the interpolated value. For example, trying to dynamically set kafka.seed.brokers results in the following line in the container's cConf.xml:

      <property><!--Loaded from cdap-site.xml--><name>kafka.seed.brokers</name><value>${kafkaprop}</value></property>
      

      and the container fails to start.

      We should support this functionality of hadoop, which makes it possible to parameterize cdap-site.xml.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bhooshan Bhooshan Mogal
                Reporter:
                derek Derek Wood
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: