I am trying to install Spark IM in my Ubuntun VM, however I am running into all kinds of problems. The steps I have taken so far were:
- Download the tar.gz file from the website
- Unpack it
cd /home/user/Downloads/Spark
sudo chmod +x Spark
sudo chmod +x starter
cd ..
sudo mv Spark/ /opt
To run, the Spark IM, I do the following commands:
sudo su
cd /opt
sh Spark/Spark
And as a result, I get the error:
Preparing JRE ...
Spark/Spark: 150: Spark/Spark: bin/unpack200: Permission denied
Error unpacking jar files. Aborting.
You might need administrative priviledges for this operation.
Which makes no sense at all, because I am running in root mode. If I run sh Spark/starter
I get the exact same mistake. If I try to run it as an executable file, I get a similar error:
bash: ./Spark/starter: Permission denied
What am I doing wrong? Why can I not install this?
The reason you are getting permission denied is because the files
Spark
andstarter
don't have execute permissions as seen here:So you will need to run:
I'm not sure why the execute permission was lost (since you ran
chmod +x
before), but I think it is because when you moved them to/opt
the owner was changed from you to root.