Fetches already created tables. Airline table is already persisted in
Snappy store. Cache the airline table in Spark cache as well for
comparison. Sample airline table and persist it in Snappy store.
Run a aggregate query on all the three tables and return the results in
a Map.This Map will be sent over REST.
Fetches already created tables. Airline table is already persisted in Snappy store. Cache the airline table in Spark cache as well for comparison. Sample airline table and persist it in Snappy store. Run a aggregate query on all the three tables and return the results in a Map.This Map will be sent over REST.
Run this on your local machine:
$ sbin/snappy-start-all.sh
Create tables
$ ./bin/snappy-job.sh submit --lead localhost:8090 \ --app-name CreateAndLoadAirlineDataJob --class io.snappydata.examples.CreateAndLoadAirlineDataJob \ --app-jar $SNAPPY_HOME/examples/jars/quickstart.jar
$ ./bin/snappy-job.sh submit --lead localhost:8090 \ --app-name AirlineDataJob --class io.snappydata.examples.AirlineDataJob \ --app-jar $SNAPPY_HOME/examples/jars/quickstart.jar