Skip to content

Commit 0ffb287

Browse files
committed
removing reference to custom genie build since latest version of the genie RC refers to a version of Spring which points to an official version of Hibernate with the CRDB dialect. also removing unnecessary test containers as it appears the hadoop containers don't start anyway.
1 parent dd26221 commit 0ffb287

File tree

3 files changed

+4
-93
lines changed

3 files changed

+4
-93
lines changed

example-netflix-genie/README.md

+1-38
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,10 @@ Single node CockroachDB cluster with Netflix Genie https://github.com/Netflix/ge
55
* `crdb` - CockroachDB node
66
* `crdb-init` - ephemeral CockroachDB node used to create database
77
* `genie` - Genie app instance
8-
* `genie-apache` - Genie Demo Apache
9-
* `genie-client` - Genie Demo Client
10-
* `genie-hadoop-prod` - Simple Hadoop instance
11-
* `genie-hadoop-test` - Simple Hadoop test instance
12-
* `genie-presto` - Presto instance
138

149
## Testing
15-
I forked Genie [here](https://github.com/timveil-cockroach/genie) and updated a handful of `gradle` files to pull the custom Hibernate jar (`hibernate-core-5.5.0-SNAPSHOT.jar`) containing the new `org.hibernate.dialect.CockroachDB201Dialect`. To simplfy testing, I published the custom Hibernate jar to publically assessible custom Maven repository... https://mymavenrepo.com/repo/RxBukD1nCtgtoR5src2I/. Before testing, I ran the following commands to build Genie and create local updated Docker images with the new dependencies.
16-
17-
```
18-
./gradlew clean build -x check
19-
./gradlew clean dockerBuildAllImages -x check
20-
```
21-
22-
Once the new docker images are ready, run the following.
23-
2410
1) run `./up.sh`
25-
3) from a local shell run the following to test...
11+
2) from a local shell run the following to test...
2612
```
2713
curl 'http://localhost:8080/api/v3/applications' -i -X POST -H 'Content-Type: application/json; charset=UTF-8' -d '{
2814
"id" : null,
@@ -42,16 +28,6 @@ curl 'http://localhost:8080/api/v3/applications' -i -X POST -H 'Content-Type: ap
4228
}'
4329
```
4430

45-
An alternate method to test the Genie server would be to simply build Genie from the fork and run something like this (assuming CRDB is up)
46-
```
47-
java -jar genie-app/build/libs/genie-app-4.0.0-SNAPSHOT.jar \
48-
--spring.jpa.hibernate.ddl-auto=create \
49-
--spring.flyway.enabled=false \
50-
--spring.datasource.url=jdbc:postgresql://127.0.0.1:26250/genie?sslmode=disable \
51-
--spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.CockroachDB201Dialect \
52-
--spring.datasource.platform=postgresql
53-
```
54-
5531
## Helpful Commands
5632

5733
### Open Interactive Shells
@@ -60,18 +36,5 @@ docker-compose exec crdb /bin/bash
6036
docker-compose exec genie /bin/bash
6137
```
6238

63-
## Publishing the custom CRDB Hibernate jar
64-
65-
I downloaded the `hibernate-core-5.5.0-SNAPSHOT.jar` jar (provided by CRDB engineering) to my local `Downloads` folder and ran the below command to upload this jar to a private `mvn` repo that I created here `https://mymavenrepo.com/app/repos/euqQvvGJ8W8mugiThH33/`
66-
67-
```
68-
mvn deploy:deploy-file -DgroupId=org.hibernate \
69-
-DartifactId=hibernate-core \
70-
-Dversion=5.5.0-SNAPSHOT \
71-
-Dpackaging=jar \
72-
-Dfile=hibernate-core-5.5.0-SNAPSHOT.jar \
73-
-Durl=https://mymavenrepo.com/repo/bj1Jazo305dltxkS0McV/
74-
```
75-
7639

7740

example-netflix-genie/docker-compose.yml

+2-54
Original file line numberDiff line numberDiff line change
@@ -26,59 +26,7 @@ services:
2626
ports:
2727
- "8080:8080"
2828
depends_on:
29-
- genie-hadoop-prod
30-
- genie-hadoop-test
31-
- genie-apache
32-
- genie-presto
3329
- crdb
3430
tty: true
35-
container_name: genie_demo_app
36-
hostname: genie_demo_app
37-
38-
genie-apache:
39-
image: netflixoss/genie-demo-apache:latest.snapshot
40-
tty: true
41-
container_name: genie_demo_apache
42-
hostname: genie_demo_apache
43-
44-
genie-client:
45-
image: netflixoss/genie-demo-client:latest.snapshot
46-
depends_on:
47-
- genie
48-
tty: true
49-
container_name: genie_demo_client
50-
hostname: genie_demo_client
51-
52-
genie-hadoop-prod:
53-
image: sequenceiq/hadoop-docker:2.7.1
54-
command: /bin/bash -c "/usr/local/hadoop/sbin/mr-jobhistory-daemon.sh start historyserver && /etc/bootstrap.sh -bash"
55-
ports:
56-
- "19888:19888"
57-
- "50070:50070"
58-
- "50075:50075"
59-
- "8088:8088"
60-
- "8042:8042"
61-
tty: true
62-
container_name: genie_demo_hadoop_prod
63-
hostname: genie_demo_hadoop_prod
64-
65-
genie-hadoop-test:
66-
image: sequenceiq/hadoop-docker:2.7.1
67-
command: /bin/bash -c "/usr/local/hadoop/sbin/mr-jobhistory-daemon.sh start historyserver && /etc/bootstrap.sh -bash"
68-
ports:
69-
- "19889:19888"
70-
- "50071:50070"
71-
- "50076:50075"
72-
- "8089:8088"
73-
- "8043:8042"
74-
tty: true
75-
container_name: genie_demo_hadoop_test
76-
hostname: genie_demo_hadoop_test
77-
78-
genie-presto:
79-
image: prestosql/presto:337
80-
ports:
81-
- "9090:8080"
82-
tty: true
83-
container_name: genie_demo_presto
84-
hostname: genie_demo_presto
31+
container_name: genie
32+
hostname: genie

example-netflix-genie/genie/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM netflixoss/genie-app:latest.snapshot
1+
FROM netflixoss/genie-app:latest.candidate
22

33
LABEL maintainer="[email protected]"
44

0 commit comments

Comments
 (0)