An example that shows how to create sample tables in SnappyData
and execute approaximate queries using Synopsis Data Engine feature.
Refer to http://snappydatainc.github.io/snappydata/aqp/ for more details on
Synopsis Data Engine
This example can be run either in local mode(in which it will spawn a single
node SnappyData system) or can be submitted as a job to an already running
SnappyData cluster.
To run the example in local mode go to you SnappyData product distribution
directory and type following command on the command prompt
To submit this example as a job to an already running cluster
cd $SNAPPY_HOME
bin/snappy-job.sh submit
--app-name SynopsisDataExample
--class org.apache.spark.examples.snappydata.SynopsisDataExample
--app-jar examples/jars/quickstart.jar
--lead [leadHost:port]
--conf data_resource_folder=../../quickstart/data
Check the status of your job id
bin/snappy-job.sh status --lead [leadHost:port] --job-id [job-id]
The output of the job will be redirected to a file named SynopsisDataExample.out
An example that shows how to create sample tables in SnappyData and execute approaximate queries using Synopsis Data Engine feature.
Refer to http://snappydatainc.github.io/snappydata/aqp/ for more details on Synopsis Data Engine
This example can be run either in local mode(in which it will spawn a single node SnappyData system) or can be submitted as a job to an already running SnappyData cluster.
To run the example in local mode go to you SnappyData product distribution directory and type following command on the command prompt
To submit this example as a job to an already running cluster