|
From: <dme...@us...> - 2014-06-02 16:41:57
|
Revision: 8435
http://sourceforge.net/p/bigdata/code/8435
Author: dmekonnen
Date: 2014-06-02 16:41:49 +0000 (Mon, 02 Jun 2014)
Log Message:
-----------
Adding 'replication_factor' attribute to support HA1
Modified Paths:
--------------
branches/BIGDATA_RELEASE_1_3_0/src/resources/deployment/chef/attributes/default.rb
Added Paths:
-----------
branches/BIGDATA_RELEASE_1_3_0/src/resources/deployment/vagrant/samples/VirtualBox/Vagrantfile.ha1
Modified: branches/BIGDATA_RELEASE_1_3_0/src/resources/deployment/chef/attributes/default.rb
===================================================================
--- branches/BIGDATA_RELEASE_1_3_0/src/resources/deployment/chef/attributes/default.rb 2014-06-02 05:14:19 UTC (rev 8434)
+++ branches/BIGDATA_RELEASE_1_3_0/src/resources/deployment/chef/attributes/default.rb 2014-06-02 16:41:49 UTC (rev 8435)
@@ -90,6 +90,9 @@
# Name of the replication cluster to which this HAJournalServer will belong.
default['bigdata'][:logical_service_id] = 'HA-Replication-Cluster-1'
+ # Set the REPLICATION_FACTOR. 1 = HA1, 3 = HA3, etc
+ default['bigdata'][:replication_factor] = 3
+
# Where to find the Apache River service registrars (can also use multicast).
default['bigdata'][:river_locator1] = '33.33.33.10'
default['bigdata'][:river_locator2] = '33.33.33.11'
Added: branches/BIGDATA_RELEASE_1_3_0/src/resources/deployment/vagrant/samples/VirtualBox/Vagrantfile.ha1
===================================================================
--- branches/BIGDATA_RELEASE_1_3_0/src/resources/deployment/vagrant/samples/VirtualBox/Vagrantfile.ha1 (rev 0)
+++ branches/BIGDATA_RELEASE_1_3_0/src/resources/deployment/vagrant/samples/VirtualBox/Vagrantfile.ha1 2014-06-02 16:41:49 UTC (rev 8435)
@@ -0,0 +1,71 @@
+# -*- mode: ruby -*-
+# vi: set ft=ruby :
+#
+# Vagraant.ha1 - Install the Bigdata High Availability Server with 1 node with a VirtualBox Provider
+#
+# The launch synopsis for this Vagrantfile:
+#
+# % vagrant up
+# % vagrant halt
+# % vagrant up
+#
+# The "halt" and following "up" forces a restart of the services post-installation.
+# This is a temporary requirement until recipes are upated.
+
+Vagrant.require_plugin "vagrant-berkshelf"
+
+Vagrant.configure("2") do |config|
+
+config.vm.provider :virtualbox do |vb|
+ vb.customize ["modifyvm", :id, "--memory", "2048"]
+end
+
+script = <<SCRIPT
+ apt-get update
+ apt-get install -y curl
+ curl -L https://www.opscode.com/chef/install.sh | bash
+ mkdir -p /var/lib/zookeeper
+ echo "33.33.33.10 bigdataA" >> /etc/hosts
+ echo "33.33.33.11 bigdataB" >> /etc/hosts
+ echo "33.33.33.12 bigdataC" >> /etc/hosts
+SCRIPT
+
+$scriptA = "#{script}\n\techo 1 > /var/lib/zookeeper/myid\n"
+config.vm.define :bigdataA do |bigdataA|
+
+ bigdataA.vm.hostname = "bigdataA"
+ bigdataA.vm.box = "precise64"
+
+ bigdataA.berkshelf.enabled = true
+
+ bigdataA.vm.box_url = "http://files.vagrantup.com/precise64.box"
+
+ bigdataA.vm.network :private_network, ip: "33.33.33.10"
+
+ bigdataA.vm.provision :chef_solo do |chef|
+ chef.json = {
+ :bigdata => {
+ :install_flavor => "ha",
+ :replication_factor => 1
+ },
+ :java => {
+ :install_flavor => "oracle",
+ :jdk_version => "7",
+ :oracle => { 'accept_oracle_download_terms' => true }
+ },
+ :zookeeper => {
+ :zoocfg => { :clientPort=> '2081' }
+ }
+ }
+
+ bigdataA.vm.provision :shell, inline: $scriptA
+
+ chef.run_list = [
+ "recipe[bigdata::high_availability]"
+ ]
+
+ end
+
+end # bigdataA
+
+end
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|