apache-spark startup error on alpine linux docker
Your problem is here in this line
The thing is that the alpine
image comes with busybox
, which is a replacement of many commands including nohup
and ps
. So alpine comes with a non-gnu nohup
which cannot handle that --
, and a ps
which cannot handle -p
.
So, install coreutils
and procps
packages before any call to apache spark scripts in order to have the version of nohup
and ps
that you need.
In Dockerfile or container command line:
RUN apk --update add coreutils procps