So I just started with Aerospike and I am facing this unknown namespace error quite frequently.
Specs:
Ubuntu 18.04
Aerospike 4.7.0.2 - Community edition
Steps:
I configured aerospike.conf with new namespace, suppose myApp
I restarted aerospike service, using systemctl start aerospike
Once started, I started aql shell and entered, SELECT * FROM myApp and it shows, Error: (1) unknown-namespace.
Then I inserted data through Node.js client successfully, and when I do SELECT * FROM myApp again, I get the following, which to my surprise, shouldn’t happen because I am getting data now.
Your nodes are forming a cluster with one another. You can prevent this by configuring cluster-name which will then only allow your node to join other nodes with the same cluster-name.
Another option is to configure the node to use ‘mesh’ heartbeats instead of ‘multicast’.