Erros whith spark rpm

Hello everyone: I need help … I have set spark.rpm but it does not run, pull out an error in the 3 line, the error is /usr/bin/spark: línea 3: -Dappdir=/usr/share/spark/: No such file or directory.
i make mkdir /usr/share/spark but pull out…
mkdir: no se puede crear el directorio «/usr/share/spark»: File exists

What OS and how have you installed the rpm?