Getting started with AsterixDB

To run AsterixDB, you should have Unix-sh environments, such as Linux or macOS X. In order to build from the source, perform the commands given as follows:

$ git clone https://github.com/apache/asterixdb.git

To build the database from the master branch, you have to execute the following command:

$ cd asterixdb
$ mvn clean package -DskipTests

To run the build on your machine, here are the steps:

  1. Start a single-machine AsterixDB instance:
$ cd asterixdb/asterix-server/target/asterix-server-*-binary-assembly/
$ ./opt/local/bin/start-sample-cluster.sh
  1. Good to go and run queries in your browser at:
http://localhost:19001

You should be able to see the web interface, as follows:

Figure 11.4: Web interface for AsterixDB

To stop the sample cluster, use the following command:

$ ./opt/local/bin/stop-sample-cluster.sh
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.119.126.80