Skip to content

Commit

Permalink
Merge branch 'master' into dataframe
Browse files Browse the repository at this point in the history
  • Loading branch information
fe2s authored Oct 20, 2018
2 parents b7bb3b4 + 526c9b5 commit 1854a78
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,11 @@ export REDIS_CLUSTER_NODE1_CONF
export REDIS_CLUSTER_NODE2_CONF
export REDIS_CLUSTER_NODE3_CONF

start:
start-standalone:
echo "$$REDIS_STANDALONE_NODE_CONF" | redis-server -


start-cluster:
echo "$$REDIS_CLUSTER_NODE1_CONF" | redis-server -
echo "$$REDIS_CLUSTER_NODE2_CONF" | redis-server -
echo "$$REDIS_CLUSTER_NODE3_CONF" | redis-server -
Expand All @@ -63,15 +66,25 @@ start:
slots=$$(seq 10000 10922); slots=$$(echo $$slots | tr '\n' ' '); redis-cli -p 7380 cluster addslots $$slots > /dev/null
slots=$$(seq 10923 16383); slots=$$(echo $$slots | tr '\n' ' '); redis-cli -p 7381 cluster addslots $$slots > /dev/null

stop:
start:
make start-standalone
make start-cluster

stop-standalone:
kill `cat /tmp/redis_standalone_node_for_spark-redis.pid`

stop-cluster:
kill `cat /tmp/redis_cluster_node1_for_spark-redis.pid` || true
kill `cat /tmp/redis_cluster_node2_for_spark-redis.pid` || true
kill `cat /tmp/redis_cluster_node3_for_spark-redis.pid` || true
rm -f /tmp/redis_cluster_node1_for_spark-redis.conf
rm -f /tmp/redis_cluster_node2_for_spark-redis.conf
rm -f /tmp/redis_cluster_node3_for_spark-redis.conf

stop:
make stop-standalone
make stop-cluster

test:
make start
# with --batch-mode maven doesn't print 'Progress: 125/150kB', the progress lines take up 90% of the log and causes
Expand Down

0 comments on commit 1854a78

Please sign in to comment.