Verify an installation
Overview
Use this procedure to verify that you have successfully installed Aerospike and that it is now running.
When you install Aerospike, the essential files are created in the following directories:
/etc/aerospike/ - configuration files for Aerospike/etc/aerospike/aerospike.conf — default configuration for Aerospike/etc/init.d/aerospike — init script for Aerospike on non-systemd platforms/etc/logrotate.d/aerospike — logrotate configuration for Aerospike on non-systemd platforms/opt/aerospike/bin/ — binaries including Aerospike server and tools/opt/aerospike/doc/ — documents, including licenses/opt/aerospike/sys/ — system data files, maintained by Aerospike/opt/aerospike/usr/ — user data files/var/log/aerospike/ — log files emitted by Aerospike/usr/bin/asd — Aerospike Server daemonSee Directory Structure for more details.
-
Verify record operations:
Use the Aerospike
aqltool (installed at/opt/aerospike/bin/aqland linked in/usr/bin/aql) to insert and read a few sample records. Start by creating a new object with the keyAerospikein thetestnamespace that is part of the default configuration and adding three fields,name,addressandemail:Terminal window aql -h 127.0.0.1 -c "INSERT INTO test.demo (PK, name, address, email) VALUES ('Aerospike', 'Aerospike, Inc.', 'Mountain View, CA 94043', 'info@aerospike.com')"Expected response:
Terminal window OK, 1 record affected. -
Retrieve the record and make sure it looks right:
Terminal window aql -h 127.0.0.1 -c "select * from test.demo where PK='Aerospike'"Expected response:
Terminal window +-------------------+---------------------------+----------------------+| name | address | email |+-------------------+---------------------------+----------------------+| "Aerospike, Inc." | "Mountain View, CA 94043" | "info@aerospike.com" |+-------------------+---------------------------+----------------------+1 row in set (0.002 secs)OK -
Delete the record and verify that it is deleted:
Terminal window aql -h 127.0.0.1 -c "DELETE FROM test.demo where PK='Aerospike'"Expected response:
Terminal window OK, 1 record affected.aqlis intended only for basic validation.aqlcreates a new connection for every transaction and is not recommended as a production level client. Instead, use your application, integrated with Aerospike’s client libraries as described in the Development section. -
Now that you have a running server, pick a client library and start developing!
Next steps
- Create a benchmarking application.
- Configure your node and form a cluster by adding more nodes.
- Get familiar with the Aerospike tools and utilities.