This straight forward example queries an existing table and exports it to a new table.
- Java
- Mac: https://www.java.com/en/download/help/mac_install.xml downloaded JDK here: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
- Windows: https://www.java.com/en/download/help/windows_manual_download.xml
- Linux: https://www.java.com/en/download/help/linux_x64_install.xml
- Maven: https://maven.apache.org/download.cgi or
$ brew install maven
on Mac OSX
- clone repo:
$ git clone https://github.com/AtScaleInc/query-hello-world.git
- move to directory:
$ cd query-hello-world
- run command:
$ mvn clean compile exec:java\
-Dexec.mainClass="com.atscale.engine.examples.helloworld.HelloWorld"\
-Dexec.args="<atscale engine host> <export table prefix>"
can be any valid table name.
If you are missing JAVA_HOME, set it in your terminal
export JAVA_HOME=$(/usr/libexec/java_home)
or put it in your .bash_profile