Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-17187

Streamline setting of config options

    XMLWordPrintableJSON

Details

    Description

      The docker-entrypoint.sh has some verbose sections for setting config options with lots of duplicated logic. We should introduce a utility method for setting config options.

       

      if grep -E "^jobmanager\.rpc\.address:.*" "${CONF_FILE}" > /dev/null; then
          sed -i -e "s/jobmanager\.rpc\.address:.*/jobmanager.rpc.address: ${JOB_MANAGER_RPC_ADDRESS}/g" "${CONF_FILE}"
      else
          echo "jobmanager.rpc.address: ${JOB_MANAGER_RPC_ADDRESS}" >> "${CONF_FILE}"
      fiif grep -E "^blob\.server\.port:.*" "${CONF_FILE}" > /dev/null; then
          sed -i -e "s/blob\.server\.port:.*/blob.server.port: 6124/g" "${CONF_FILE}"
      else
          echo "blob.server.port: 6124" >> "${CONF_FILE}"
      fi
      ...

      Attachments

        Issue Links

          Activity

            People

              chesnay Chesnay Schepler
              chesnay Chesnay Schepler
              Votes:
              0 Vote for this issue
              Watchers:
              0 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 - 10m
                  10m