Deephaven¶
Requirements:
- Docker
- JDK 17
Setting up Deephaven¶
-
Install sample python-example containers from Deephaven from Quick start Install Deephaven:
-
If you run into errors with the gRPC container, downgrade the containers in the
docker-compose.ymlfile to 0.16.1. -
Go to http://localhost:10000/ide/ on the browser.
-
Execute the following commands in the Deephaven IDE:
Setting up the Adapter¶
-
Place
DeephavenFH.jarand all other jar files in thedependenciesdirectory under/amione/lib/. -
Copy the properties from the
local.propertiesfile to your ownlocal.properties. -
For JDK17 compatibility, use the attached start.sh file or add the following parameters to the java launch command:
-
Add the following to the java launch parameters to the
start.shfile as well. -
Launch AMI from
start.sh.
Querying Deephaven¶
Queries in the datamodel (after the EXECUTE keyword) will be sent to the Deephaven application as a console command. Any table stated/created in the deephaven query will be returned as an AMI table. For example the code below creates a table sample in Deephaven and populates the testDHTable in AMI using the sample table.
If the table already exists in Deephaven then we can just retrieve the table as show below:
