Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7240 Scaling HDFS
  3. HDFS-12812

Ozone: dozone: initialize scm and ksm directory on cluster startup

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • HDFS-7240
    • HDFS-7240
    • ozone
    • None
    • Reviewed

    Description

      HDFS-12739 fixed the scm, but after the patch it couldn't be started without a separated `hdfs scm -init` any more. Unfortunatelly it breaks the docker-compose functionality.

      This is handled int the starter script of the base runner docker image for namenode. I also fixed this in the runner docker image (https://github.com/elek/hadoop/commit/b347eb4bfca37d84dbcdd8c4bf353219d876a9b7) will upload the improved patch to the HADOOP-14898.

      In this patch I just add a new environment variable to init the scm if the version file doesn't exist.

      UPDATE: the patch also contains envrionment variable to initialize the ksm.

      To test:

      Do a full build and go to the dev-support/compose/ozone:

      ```
      docker-compose pull
      docker-compose up -d
      ```

      Note: the pull is important as the new docker image – which could handle the new environment variable – should be used

      Attachments

        1. HADOOP-12812-HDFS-7240.001.patch
          0.5 kB
          Marton Elek
        2. HDFS-12812-HDFS-7240.002.patch
          0.8 kB
          Marton Elek

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: