sagun
18 October 2020 19:19
1
Hello all,
I am trying to setup zookeeper and kafka in the system. I am not sure if this is the correct forum to ask this question (please do direct me to the correct forum if this is not the correct one).
I followed the following to install zookeeper : https://snapcraft.io/install/zk/manjaro .
However, I am not able to modify the files inside the snap directory. For example, in my case i need to modify zoo.cfg file in
/snap/zk/current/opt/zookeeper/conf/
and need to create a directory in
/snap/zk/current/
both are however not allowed.
Is there anyway I can install both zookeeper and kafka in Manjaro and can be modifiable?
Thank you
Sagun
Strit
18 October 2020 19:23
2
Zookeeper and Kafka are both in the AUR.
You could try those. That would make the config be on your system, so you can edit the configs like you would other configs on your system.
cscs
18 October 2020 19:23
3
Thats how SNAPs work by default. They are supposed to be separate and isolated.
You are emulating a filesystem mounted by snapd as read-only.
Its how snap works… and you are choosing to use snap.
Dont blame linux.
Use any other install method - such as from the Repos, the AUR, your own PKGBUILD, or compiling manually from source … or just about anything else … and you would be able to do what you are trying to. Just not in SNAPS, not the way you are doing it.
There are workaround of sorts … but really, if you want to modify files and things … you just shouldnt use SNAP.
Both packages are available in the AUR.
https://wiki.manjaro.org/index.php?title=Arch_User_Repository
1 Like
sagun
23 October 2020 01:18
4
Thank you Strit and cscs, I am testing both zookeeper and kafka from AUR. Will update afterwards.
Thank you again for the response.