Skip to content

Instantly share code, notes, and snippets.

@sunilsoni
Last active December 7, 2019 13:32
Show Gist options
  • Save sunilsoni/f5cddb27b2ff1f356707fb17795ff3ce to your computer and use it in GitHub Desktop.
Save sunilsoni/f5cddb27b2ff1f356707fb17795ff3ce to your computer and use it in GitHub Desktop.
cd ~/aerospike-vm
vagrant up
Verify Aerospike and AMC are Running:
sunilsoni@Sunils-MacBook-Pro aerospike-vm % vagrant ssh -c "sudo service aerospike status"
asd (pid 3058) is running...
Connection to 127.0.0.1 closed.
sunilsoni@Sunils-MacBook-Pro aerospike-vm % vagrant ssh -c "sudo service amc status"
amc (pid 1419) is running...
Connection to 127.0.0.1 closed.
sunilsoni@Sunils-MacBook-Pro aerospike-vm % vagrant ssh -c "sudo grep -i cake /var/log/aerospike/aerospike.log"
Dec 07 2019 13:06:23 GMT: INFO (as): (as.c:430) service ready: soon there will be cake!
Connection to 127.0.0.1 closed.
sunilsoni@Sunils-MacBook-Pro aerospike-vm % vagrant ssh -c "ip addr"|grep 'global eth1'
inet 172.28.128.4/24 brd 172.28.128.255 scope global eth1
Connection to 127.0.0.1 closed.
sunilsoni@Sunils-MacBook-Pro aerospike-vm %
vagrant ssh
aql
aql> show namespaces;
aql> SELECT * FROM test.SET_NAME
aql> show sets;
aql> select * from test.SET_NAME;
aql> TRUNCATE test.SET_NAME
aql> SELECT * FROM test.SET_NAME
aql> SELECT * FROM test.SET_NAME
Reference:
https://www.aerospike.com/docs/guide/query.html
https://www.aerospike.com/docs/operations/install/vagrant/mac/using-vagrant.html
https://www.aerospike.com/docs/tools/aql/record_operations.html
https://www.aerospike.com/docs/operations/install/vagrant/mac/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment