When you want to put kibana 4 export.json under git, you'll see that the file changes even if you did not touch searches, vizs or dashboards. The script below uses jq to keep kibana 4 objects (and object keys) in a constant order. Thus, no diffs if you left your kiaban untouched
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# !/bin/bash | |
ES_BASE=/.../elasticsearch-1.4.2 | |
ES_CMD=${ES_BASE}/bin/elasticsearch | |
# cleanup. Commented so that it doesn't harm your environment | |
# kill $(jps | grep Elas | awk '{print $1}') | |
# rm ${ES_BASE}/logs/* | |
# start two clusters |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# my configuration | |
# elasticsearch-1.0.0 | |
# elasticsearch-hadoop-yarn.jar from 1.3.0.M2 | |
# hadoop-2.2.0-bin | |
# hive-0.12.0-bin | |
# pig-0.12.0/ with recompiled pig-0.12.0-withouthadoop.jar for yarn | |
ES_CLUSTER="localhost:9200" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# my configuration | |
# elasticsearch-1.0.0 | |
# elasticsearch-hadoop-yarn.jar from 1.3.0.M2 | |
# hadoop-2.2.0-bin | |
# hive-0.12.0-bin | |
# pig-0.12.0/ with recompiled pig-0.12.0-withouthadoop.jar for yarn | |
ES_CLUSTER="localhost:9200" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# my configuration | |
# elasticsearch-1.0.0 | |
# elasticsearch-hadoop-yarn.jar from 1.3.0.M2 | |
# hadoop-2.2.0-bin | |
# hive-0.12.0-bin | |
ES_CLUSTER="localhost:9200" |