It's likely the container is running with insufficient permissions to run heartbeat executable. Are you using openshift's dynamic uid? Please make sure the container is running with fsGroup: 0 and supplementalGroups: [0].
I try to add fsGroup: 0 and supplementalGroups: [0], this error still occurs:
/usr/local/bin/docker-entrypoint: line 8: /usr/share/heartbeat/heartbeat: Operation not permitted
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.