Skip to content
This repository has been archived by the owner on Feb 25, 2020. It is now read-only.

Shard Admin Notes

dchenbecker edited this page Oct 4, 2012 · 2 revisions

Initial Setup

Shard Checkpoint

In order to bring up a shard, an initial checkpoint is needed. The checkpoint will be stored in the path

/precog-<systemId>/shard/checkpoint/<hostname>

where systemId is defined in the shard config under services.quirrel.v1.queryExecutor.systemId. You can set this using the YggUtils utility with an initial JSON value (initial is a special value that resets to zero):

java -cp yggdrasil-assembly-1.1.1-SNAPSHOT.jar com.precog.yggdrasil.util.YggUtils zk -uc '/precog-dev/shard/checkpoint/devqclus02:initial'

And you can also confirm/view a checkpoint with the same utility:

java -cp yggdrasil-assembly-1.1.1-SNAPSHOT.jar com.precog.yggdrasil.util.YggUtils zk -c /precog-dev/shard/checkpoint

Note that the utility to view checkpoints needs to point at the parent of the checkpoint path.

Clone this wiki locally