When we are trying to upgrade apache nifi from 2.0.0 m4 to 2.4.0, We are getting this error
"/opt/nifi/nifi-current/bin/nifi.sh: 276: exec: 04:10:55,565: not found"
The nifi.sh file is taking some time stamp/junk value in its on of the exec command.
this is snippet from nifi.sh which is causing issue.
if [ "$1" = "run" ]; then
RUN_COMMAND=$(eval "${run_bootstrap_cmd} get-run-command")
RUN_COMMAND_STATUS=$?
if [ $RUN_COMMAND_STATUS = 0 ]; then
exec $RUN_COMMAND
else
echo "Failed to get run command"
echo "${RUN_COMMAND}"
exit 1
fi
We are upgrading nifi in EKS, we can not edit or touch files from official docker image.
Can some one help to fix this issue?