@@ -45,61 +45,12 @@ Spice.ai runtime starting...
4545In another terminal, compile and run:
4646
4747``` bash
48- mvn clean compile
49- _JAVA_OPTIONS=" --add-opens=java.base/java.nio=ALL-UNNAMED" \
50- mvn exec:java -Dexec.mainClass=" ai.spice.example.App"
51- ```
52-
53- Sample build logs:
54-
55- ``` text
56- [INFO] Scanning for projects...
57- [INFO]
58- [INFO] ------------------< ai.spice.example:taxi-trips-app >-------------------
59- [INFO] Building taxi-trips-app 1.0-SNAPSHOT
60- [INFO] from pom.xml
61- [INFO] --------------------------------[ jar ]---------------------------------
62- [INFO]
63- [INFO] --- clean:3.2.0:clean (default-clean) @ taxi-trips-app ---
64- [INFO] Deleting /Users/sg/spice/samples/client-sdk/spice-java-sdk-sample/target
65- [INFO]
66- [INFO] --- resources:3.3.1:resources (default-resources) @ taxi-trips-app ---
67- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
68- [INFO] skip non existing resourceDirectory /Users/sg/spice/samples/client-sdk/spice-java-sdk-sample/src/main/resources
69- [INFO]
70- [INFO] --- compiler:3.13.0:compile (default-compile) @ taxi-trips-app ---
71- [INFO] Recompiling the module because of changed source code.
72- [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
73- [INFO] Compiling 1 source file with javac [debug target 1.8] to target/classes
74- [WARNING] bootstrap class path is not set in conjunction with -source 8
75- not setting the bootstrap class path may lead to class files that cannot run on JDK 8
76- --release 8 is recommended instead of -source 8 -target 1.8 because it sets the bootstrap class path automatically
77- [WARNING] source value 8 is obsolete and will be removed in a future release
78- [WARNING] target value 8 is obsolete and will be removed in a future release
79- [WARNING] To suppress warnings about obsolete options, use -Xlint:-options.
80- [INFO] ------------------------------------------------------------------------
81- [INFO] BUILD SUCCESS
82- [INFO] ------------------------------------------------------------------------
83- [INFO] Total time: 0.712 s
84- [INFO] Finished at: 2024-07-16T12:43:33-07:00
85- [INFO] ------------------------------------------------------------------------
48+ mvn clean compile exec:exec
8649```
8750
8851Sample output:
8952
9053``` text
91- Picked up _JAVA_OPTIONS: --add-opens=java.base/java.nio=ALL-UNNAMED
92- [INFO] Scanning for projects...
93- [INFO]
94- [INFO] ------------------< ai.spice.example:taxi-trips-app >-------------------
95- [INFO] Building taxi-trips-app 1.0-SNAPSHOT
96- [INFO] from pom.xml
97- [INFO] --------------------------------[ jar ]---------------------------------
98- [INFO]
99- [INFO] --- exec:3.3.0:java (default-cli) @ taxi-trips-app ---
100- [ai.spice.example.App.main()] INFO org.apache.arrow.memory.BaseAllocator - Debug mode disabled. Enable with the VM option -Darrow.memory.debug.allocator=true.
101- [ai.spice.example.App.main()] INFO org.apache.arrow.memory.DefaultAllocationManagerOption - allocation manager type not specified, using netty as the default type
102- [ai.spice.example.App.main()] INFO org.apache.arrow.memory.CheckAllocator - Using DefaultAllocationManager at memory-netty/16.1.0/arrow-memory-netty-16.1.0.jar!/org/apache/arrow/memory/netty/DefaultAllocationManagerFactory.class
10354VendorID tpep_pickup_datetime fare_amount
104552 2024-01-14T08:32:55 70.0
105561 2024-01-14T08:13:28 70.0
@@ -124,16 +75,7 @@ export SPICE_API_KEY="your_api_key"
12475The cloud snippet keeps an inline API key placeholder by design. Replace the API key placeholder in ` src/main/java/ai/spice/example/Cloud.java ` with ` ${SPICE_API_KEY} ` , then run:
12576
12677``` bash
127- _JAVA_OPTIONS=" --add-opens=java.base/java.nio=ALL-UNNAMED" \
128- mvn exec:java -Dexec.mainClass=" ai.spice.example.Cloud"
129- ```
130-
131- ## Note on Java Flags
132-
133- Apache Arrow Flight requires:
134-
135- ``` bash
136- _JAVA_OPTIONS=" --add-opens=java.base/java.nio=ALL-UNNAMED"
78+ mvn exec:exec -Dexec.mainClass=" ai.spice.example.Cloud"
13779```
13880
13981## Advanced: Gradle Workflow
0 commit comments