LeanXcale Quick Guide
Installing LeanXcale is very easy. You just have to copy the tgz file with the LeanXcale binaries, untar it, install a few prerequisites and you’re set to go.
The simplest installation - given you meet the prerequisites - is:
Create a folder for LeanXcale:
mkdir /lxs cd /lxs
Untar your LeanXcale installation package:
tar xvfz LeanXcale-x.y.z-YYYYMMDD.tgz
Setup the inventory:name: value
cp conf/inventory.simplest conf/inventory
Finish installing python requirements and deploying
So now you can go and start the database, but please take a look to the Installation Guide.
In this section you’ll learn how to use the basic operations to manage LeanXcale. Give a look to the Operations Manual to get a deeper look.
# Stops everything user@host:~/lxs$ admin/stopcluster.sh MS ZK # Stops all the components except Zookeeper user@host:~/lxs$ admin/stopcluster.sh
Check the Cluster components and its ports:
During normal LeanXcale operation, without stopping it
Stop LeanXcale first, before going to do backup
# First stop all the workload user@host:~/lxs$ admin/stopcluster.sh MS ZK # If any component didn't stop, force to kill it user@host:~/lxs$ admin/stopcluster.sh force user@host:~/lxs$ admin/backupcluster.sh
Take into account that backup doesn’t store transaction log files so if the system didn’t stop gracefully some information could be lost.
To restore from a previous backup, there is a script but assumes you have first stopped the cluster.
After restoring files, cluster is started.
##First stop all the workload $BASEDIR/admin> ./stopcluster.sh force $BASEDIR/admin> ./restorecluster.sh $BASEDIR/admin> ./checkcluster.sh
LeanXcale provides a simple command line client called lxClient, but we recommend you use your favorite JDBC/SQL client. We provide instructions on how to install and configure the SQuirreL SQL client with LeanXcale.
Using SQL DDL commands, you can use the client of your choice to create a database and build your schema.