-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Venice support * Fix insert to exclude non-specified fields for Venice * Fix target column inserts * Address feedback, rebase to work with structured Key type, add tests * Address feedback
- Loading branch information
Showing
38 changed files
with
836 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
.gradle | ||
.idea/ | ||
/build | ||
*/build/ | ||
*/*.iml | ||
./models/external/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
services: | ||
zookeeper: | ||
image: venicedb/apache-zookeeper:3.9.0 | ||
container_name: zookeeper | ||
hostname: zookeeper | ||
healthcheck: | ||
test: ["CMD-SHELL", "echo ruok | nc zookeeper 2181"] | ||
start_period: 10s | ||
interval: 5s | ||
timeout: 5s | ||
retries: 5 | ||
|
||
kafka: | ||
image: venicedb/apache-kafka:3.3.1 | ||
container_name: kafka | ||
hostname: kafka | ||
environment: | ||
- ZOOKEEPER_ADDRESS=zookeeper:2181 | ||
depends_on: | ||
zookeeper: | ||
condition: service_healthy | ||
healthcheck: | ||
test: ["CMD-SHELL", "bash -x bin/kafka-topics.sh --bootstrap-server localhost:9092 --list"] | ||
start_period: 60s | ||
interval: 5s | ||
timeout: 20s | ||
retries: 5 | ||
|
||
venice-controller: | ||
image: venicedb/venice-controller:0.4.340 | ||
container_name: venice-controller | ||
hostname: venice-controller | ||
depends_on: | ||
kafka: | ||
condition: service_healthy | ||
ports: | ||
- 5555:5555 | ||
healthcheck: | ||
test: ["CMD-SHELL", "sleep 5"] | ||
start_period: 20s | ||
interval: 5s | ||
timeout: 20s | ||
retries: 5 | ||
|
||
venice-server: | ||
image: venicedb/venice-server:0.4.340 | ||
container_name: venice-server | ||
hostname: venice-server | ||
depends_on: | ||
venice-controller: | ||
condition: service_healthy | ||
healthcheck: | ||
test: ["CMD-SHELL", "sleep 5"] | ||
start_period: 20s | ||
interval: 5s | ||
timeout: 20s | ||
retries: 5 | ||
|
||
venice-router: | ||
image: venicedb/venice-router:0.4.340 | ||
container_name: venice-router | ||
hostname: venice-router | ||
depends_on: | ||
venice-server: | ||
condition: service_healthy | ||
ports: | ||
- 7777:7777 | ||
healthcheck: | ||
test: ["CMD-SHELL", "sleep 5"] | ||
start_period: 20s | ||
interval: 5s | ||
timeout: 20s | ||
retries: 5 | ||
|
||
venice-client: | ||
image: venicedb/venice-client:0.4.340 | ||
container_name: venice-client | ||
hostname: venice-client | ||
tty: true | ||
volumes: | ||
- ./venice:/opt/venice/schemas | ||
depends_on: | ||
venice-router: | ||
condition: service_healthy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"type": "record", | ||
"name": "SampleTableKey", | ||
"doc": "SampleTableKey", | ||
"fields": [ | ||
{ | ||
"name": "id", | ||
"type": "int" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"type": "record", | ||
"name": "SampleTableValue", | ||
"doc": "SampleTableValue", | ||
"fields": [ | ||
{ | ||
"name": "intField", | ||
"type": [ | ||
"null", | ||
"int" | ||
], | ||
"default": null | ||
}, | ||
{ | ||
"name": "stringField", | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"default": null | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
apiVersion: hoptimator.linkedin.com/v1alpha1 | ||
kind: Database | ||
metadata: | ||
name: venice-cluster0 | ||
spec: | ||
schema: VENICE-CLUSTER0 | ||
url: jdbc:venice://cluster=venice-cluster0;router.url=http://localhost:7777 | ||
dialect: Calcite | ||
|
||
--- | ||
|
||
apiVersion: hoptimator.linkedin.com/v1alpha1 | ||
kind: TableTemplate | ||
metadata: | ||
name: venice-template-cluster0 | ||
spec: | ||
databases: | ||
- venice-cluster0 | ||
connector: | | ||
connector = venice | ||
storeName = {{table}} | ||
partial-update-mode = true | ||
key.fields-prefix = KEY_ | ||
key.fields = {{keys}} | ||
value.fields-include: EXCEPT_KEY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.