Automating Kiji Schema Changes

September 10th, 2013 duckworth Posted in Code, Java No Comments »

We had a need to automate the deployment of our Kiji schema changes as part of our automated deployment process. With the new DDL based Kiji schema definitions it was fairly easy to put together a quick and dirty Rails style migration framework to store the latest schema version and run any DDL statements that haven't been run. It is currently only supports forward only migrations (no rollback) and is built as a maven plugin.

You can explicitly invoke the plugin by running one of the following goals:


mvn kiji-schema-migrations:generate -DmigrationName=A_Lot_Of_Changes

mvn kiji-schema-migrations:migrate

mvn kiji-schema-migrations:reset

Project is here https://github.com/duckworth/kiji-schema-migrations

AddThis Social Bookmark Button