add shell to download external dependencies and update BUILD.md.
Project: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/commit/86e39c27 Tree: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/tree/86e39c27 Diff: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/diff/86e39c27 Branch: refs/heads/branch-0.1.0 Commit: 86e39c2729e036ce816c0d97e95d49c0d9b44e4e Parents: b4a4703 Author: DO YUNG YOON <[email protected]> Authored: Tue Aug 9 11:09:32 2016 +0900 Committer: DO YUNG YOON <[email protected]> Committed: Tue Aug 9 11:09:32 2016 +0900 ---------------------------------------------------------------------- BUILD.md | 9 ++++----- bin/download.sh | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/86e39c27/BUILD.md ---------------------------------------------------------------------- diff --git a/BUILD.md b/BUILD.md index 2e21dce..c32cebd 100644 --- a/BUILD.md +++ b/BUILD.md @@ -4,15 +4,14 @@ > `brew install sbt` if you are on a Mac. (Otherwise, checkout the [SBT > document](http://www.scala-sbt.org/0.13/docs/Manual-Installation.html). 2. Download third_party dependencies. - 3. download [mysql-jdbc-connector](http://dev.mysql.com/downloads/connector/j/) and locate it into `s2core/lib` and `s2counter_core` - 4. download [patched-asynchbase](https://github.com/SteamShon/asynchbase/blob/mvn-repo/org/hbase/asynchbase/1.7.2-S2GRAPH/asynchbase-1.7.2-S2GRAPH-jar-with-dependencies.jar) and locate it into `s2core/lib` - + 1. run `bin/download.sh`. + 2. build and package from source code. -> `sbt package` to create a package at the directory `target/deploy` +> `sbt package` to create a package at the directory `target/` once build is done, `target/s2graph-0.1.0-incubating-bin` will be created. -then `bin/start-s2graph.sh` will launch the following. +then `target/s2graph-0.1.0-incubating-bin/bin/start-s2graph.sh` will launch the following. 1. S2Graph server. 2. Standalone HBase server as the data storage. http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/86e39c27/bin/download.sh ---------------------------------------------------------------------- diff --git a/bin/download.sh b/bin/download.sh new file mode 100644 index 0000000..7674351 --- /dev/null +++ b/bin/download.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +mkdir -p s2core/lib +mkdir -p s2counter_core/lib + +wget https://github.com/SteamShon/asynchbase/raw/mvn-repo/org/hbase/asynchbase/1.7.2-S2GRAPH/asynchbase-1.7.2-S2GRAPH-jar-with-dependencies.jar + +mv asynchbase-1.7.2-S2GRAPH-jar-with-dependencies.jar s2core/lib + +wget http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.39.tar.gz + +tar xvzf mysql-connector-java-5.1.39.tar.gz + +cp mysql-connector-java-5.*/mysql-connector-java-5.*-bin.jar s2core/lib/ +cp mysql-connector-java-5.*/mysql-connector-java-5.*-bin.jar s2counter_core/lib/ \ No newline at end of file
