Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.4.1
    • None

    Description

      According to the design doc in the parent issue we would like to support java configuration objects which are simple POJO but the fields/setters are annotated. As a first step we can introduce the OzoneConfiguration.getConfigObject() api which can create the config object and inject configuration.

      Later we can improve it with annotation processor which can generate the ozone-default.xml.

      Attachments

        Issue Links

          Activity

            hudson Hudson added a comment -

            SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #16488 (See https://builds.apache.org/job/Hadoop-trunk-Commit/16488/)
            HDDS-1468. Inject configuration values to Java objects (elek: rev a2887f5c23a695e74bb7693207e9240c8b94d8cf)

            • (edit) hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/ReplicationManager.java
            • (edit) hadoop-hdds/server-scm/src/test/java/org/apache/hadoop/hdds/scm/container/TestReplicationManager.java
            • (edit) hadoop-hdds/server-scm/src/test/java/org/apache/hadoop/hdds/scm/safemode/TestSafeModeHandler.java
            • (add) hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/conf/Config.java
            • (edit) hadoop-hdds/common/src/test/java/org/apache/hadoop/hdds/conf/TestOzoneConfiguration.java
            • (add) hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/conf/ConfigGroup.java
            • (add) hadoop-hdds/common/src/test/java/org/apache/hadoop/hdds/conf/SimpleConfiguration.java
            • (edit) hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/StorageContainerManager.java
            • (edit) hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/conf/OzoneConfiguration.java
            • (add) hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/conf/ConfigType.java
            • (add) hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/conf/ConfigurationException.java
            hudson Hudson added a comment - SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #16488 (See https://builds.apache.org/job/Hadoop-trunk-Commit/16488/ ) HDDS-1468 . Inject configuration values to Java objects (elek: rev a2887f5c23a695e74bb7693207e9240c8b94d8cf) (edit) hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/ReplicationManager.java (edit) hadoop-hdds/server-scm/src/test/java/org/apache/hadoop/hdds/scm/container/TestReplicationManager.java (edit) hadoop-hdds/server-scm/src/test/java/org/apache/hadoop/hdds/scm/safemode/TestSafeModeHandler.java (add) hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/conf/Config.java (edit) hadoop-hdds/common/src/test/java/org/apache/hadoop/hdds/conf/TestOzoneConfiguration.java (add) hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/conf/ConfigGroup.java (add) hadoop-hdds/common/src/test/java/org/apache/hadoop/hdds/conf/SimpleConfiguration.java (edit) hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/StorageContainerManager.java (edit) hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/conf/OzoneConfiguration.java (add) hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/conf/ConfigType.java (add) hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/conf/ConfigurationException.java

            People

              elek Marton Elek
              elek Marton Elek
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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