Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Commit 453f3fc

Browse files
author
Christopher Merrick
committed
Update README.md
1 parent ee9730b commit 453f3fc

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ Credit goes to the folks at LinkedIn for pioneering this approach - read Jay Kre
1818
- stronger schema-ing of data
1919
- process for capturing an initial state of the data
2020

21+
22+
### building
23+
24+
Requires Java 7.
25+
26+
You will need to have the [open-replicator](https://github.com/cmerrick/open-replicator) project installed to your local maven repo as it has not yet been published. Clone that project and install it with `mvn install`.
27+
28+
Build an uberjar with [Leiningen](http://leiningen.org/) using `lein uberjar`.
29+
2130
### use with mysql
2231

2332
How to use plainview to listen to your MySQL replication stream and write raw change data to Amazon S3.
@@ -69,7 +78,7 @@ export AWS_SECRET_KEY=<your-secret>
6978
The key will need full permissions on Kinesis. From the same shell, run the producer
7079

7180
```bash
72-
lein run -m plainview.producer -i <server-id> -f <mysql-file> -n <mysql-position> -P <mysql-port> -u <repl-user> -p <repl-pass> -s <kinesis-stream>
81+
java -cp plainview-0.1.0-SNAPSHOT-standalone.jar plainview.Producer -i <server-id> -f <mysql-file> -n <mysql-position> -P <mysql-port> -u <repl-user> -p <repl-pass> -s <kinesis-stream>
7382
```
7483

7584
Where
@@ -96,7 +105,7 @@ export AWS_SECRET_KEY=<your-secret>
96105
This key will need read permission on Kinesis, full permission on DynamoDB, and permission to write to an S3 bucket. From the same shell, run the consumer:
97106

98107
```bash
99-
lein run -m plainview.consumer -a <kinesis-app> -b <s3-bucket> -s <kinesis-stream>
108+
java -cp plainview-0.1.0-SNAPSHOT-standalone.jar plainview.Consumer -a <kinesis-app> -b <s3-bucket> -s <kinesis-stream>
100109
```
101110

102111
Where

0 commit comments

Comments
 (0)