Hello, I am using Manjaro Linux 5.9.1-1-MANJARO #1 SMP PREEMPT x86_64 GNU/Linux and tried installing Apache spark by following the sequence of commands:
1.) “snapd” can be installed from the command line:
$ sudo pacman -S snapd
2.) Once installed, the “systemd” unit that manages the main snap communication socket needs to be enabled:
$ sudo systemctl enable --now snapd.socket
3.) To enable “classic” snap support, enter the following to create a symbolic link between /var/lib/snapd/snap
and /snap
:
$ sudo ln -s /var/lib/snapd/snap /snap
Either log out and back in again, or restart your system, to ensure snap’s paths are updated correctly.
4.) To install spark, simply use the following command:
$ sudo snap install spark --edge
However, after the command: “sudo snap install spark --edge”, it shows that “spark” is installed. However, when I try to access spark through terminal using “spark-shell”, it gives the output:
bash: apache-spark: command not found
When I retry installing using the command:
$ sudo snap install spark --edge
snap “spark” is already installed, see ‘snap help refresh’
What should I do?
Thanks!