quasardb on Microsoft Azure

Posted by user on 06 Feb 2015

Getting your hands on quasardb has never been that easy. With just a few mouse clicks you can deploy your own quasardb server in Microsoft Azure.

A quasardb Virtual Machine (VM) image is now available for free on VM Depot. It includes a free license limited to one node and everything you need to test quasardb.

How to create your quasardb VM

Deploying the virtual machine is very straightforward and take about 15 minutes.

Ready? Let's go!

  1. Open vmdepot.msopentech.com.
  2. Type "quasardb" in the search box.
  3. Click "Create Virtual Machine".

If it's the first time you use VM Depot, it will ask you to link your account with your Azure subscription.
If you don't have an Azure subscription, there is a "Free Trial" for one month.

OK, now that your quasardb VM is running, let's take a quick tour of what you can do...

Checkout quasardb web console

Go to http://yourservicename.cloudapp.net:8080/view/.

QuasardbWebAdmin

Test quasardb from the shell

The most exciting way to test quasardb is to try the "qdbsh" command line tool. See by yourself:

Add a simple entry:

1
2
3
$ qdbsh put pi 3.14159265359
$ qdbsh get pi
3.14159265359

Pipe the result of a command:

1
$ ls -l | wc -l | qdbsh put num_files

Compress a folder:

1
$ tar czf - /etc | qdbsh update etc

Extract a folder:

1
$ qdbsh get etc | tar xz

Test quasardb from Python

Just start the python REPL and enjoy:

1
2
3
4
5
6
7
8
9
$ python
Python 2.7.5 (default, Jun 17 2014, 18:11:42)
[GCC 4.8.2 20140120 (Red Hat 4.8.2-16)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import qdb
c = qdb.Client(qdb.RemoteNode("127.0.0.1"))
c.put("e", 2.71828182846)
print c.get("e")
2.71828182846

See Python API documentation for more detail.

Test quasardb from PHP

Did you know PHP has a REPL too:

1
2
3
4
5
6
7
8
$ php -a
Interactive shell

php > $nodes = [['address' => '127.0.0.1']];
php > $cluster = new QdbCluster($nodes);
php > $cluster->put('c', '299792458');
php > echo $cluster->get('c');
299792458

See PHP API documentation for more detail.

Test quasardb from Java

Java examples can be found in /usr/local/share/qdb/example/java/

/usr/local/share/qdb/example/java/

Let's compile and run the first example:

1
2
$ javac /usr/local/share/qdb/example/java/QuasardbExample.java -d .
$ java QuasardbExample

See Java API documentation for more detail.

Test quasardb from C

C examples can be found in /usr/local/share/qdb/example/c/

Let's take get.c for instance:

1
2
3
$ gcc -o qdb get -lqdbapi /usr/local/share/qdb/example/c/get.c
$ ./qdb_get 127.0.0.1 2836 pi
3.14159265359

See C API documentation for more detail.

What's next?

From the whole quasardb team, thanks for trying our product.
Please leave a comment!

Topics: azure, quasardb, Uncategorized