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

OpenShift FlinkSessionJob artifact write error on non-default namespaces

    XMLWordPrintableJSON

Details

    Description

      tagarr has pointed out an issue with using the /opt/flink/artifacts filesystem on OpenShift in non-default namespaces. The OpenShift permissions don't allow write to /opt.
      ```
      org.apache.flink.util.FlinkRuntimeException: Failed to create the dir: /opt/flink/artifacts/jim/basic-session-deployment-only-example/basic-session-job-only-example
      ```
      A few ways to solve the problem are:
      1. Remove the comment on line 34 here in flink-conf.yaml and change it to: /tmp/flink/artifacts

      2. Append this after line 143 here in values.yaml:
      kubernetes.operator.user.artifacts.base.dir: /tmp/flink/artifacts

      3. Changing it in line 142 of KubernetesOperatorConfigOptions.java like this:
      .defaultValue("/tmp/flink/artifacts")
      and then rebuilding the operator image.

      Attachments

        Issue Links

          Activity

            People

              tagarr Tony Garrard
              jbusche James Busche
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: