# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. # -*- mode: ruby -*- # vi: set ft=ruby : # Note: Machine's ip is 192.168.33.10 # username : vagrant # password : vagrant # # accumulo instance : dev # accumulo username : root # accumulo password : root Vagrant.configure(2) do |config| config.vm.box = "ubuntu/trusty64" config.vm.provider "virtualbox" do |vb| vb.name = "rya-example-box" vb.memory = "4096" vb.cpus = 4 end config.vm.network :private_network, ip: "192.168.33.10" config.vm.hostname = "rya-example-box" config.vm.provision "shell", inline: <<-SHELL echo "Updating host file with permanent ip" sudo sed -i 's/127.0.1.1/192.168.33.10/' /etc/hosts cat >> /etc/hosts <> /home/vagrant/.bashrc <> accumulo-$ACCUMULO_VERSION/conf/accumulo-site.xml < instance.dfs.urifile:/// instance.dfs.dir/data/accumulo instance.zookeeper.hostlocalhost:2181 instance.secretDONTTELL tserver.port.searchtrue logger.dir.walog/data/accumulo/walogs tserver.cache.data.size15M tserver.cache.index.size15M tserver.memory.maps.max256M tserver.walog.max.size256M tserver.memory.maps.native.enabledfalse trace.token.property.passwordroot gc.cycle.delay4s gc.cycle.start0s tserver.compaction.major.delay3 general.classpaths /data/accumulo/lib/[^.].*.jar, /home/vagrant/hadoop-1.2.1/share/hadoop/common/.*.jar, /home/vagrant/hadoop-1.2.1/share/hadoop/common/lib/.*.jar, /home/vagrant/hadoop-1.2.1/share/hadoop/hdfs/.*.jar, /home/vagrant/hadoop-1.2.1/share/hadoop/mapreduce/.*.jar, /home/vagrant/hadoop-1.2.1/share/hadoop/yarn/.*.jar, /home/vagrant/accumulo-$ACCUMULO_VERSION/server/target/classes/, /home/vagrant/accumulo-$ACCUMULO_VERSION/lib/accumulo-server.jar, /home/vagrant/accumulo-$ACCUMULO_VERSION/core/target/classes/, /home/vagrant/accumulo-$ACCUMULO_VERSION/lib/accumulo-core.jar, /home/vagrant/accumulo-$ACCUMULO_VERSION/start/target/classes/, /home/vagrant/accumulo-$ACCUMULO_VERSION/lib/accumulo-start.jar, /home/vagrant/accumulo-$ACCUMULO_VERSION/fate/target/classes/, /home/vagrant/accumulo-$ACCUMULO_VERSION/lib/accumulo-fate.jar, /home/vagrant/accumulo-$ACCUMULO_VERSION/proxy/target/classes/, /home/vagrant/accumulo-$ACCUMULO_VERSION/lib/accumulo-proxy.jar, /home/vagrant/accumulo-$ACCUMULO_VERSION/lib/[^.].*.jar, /home/vagrant/zookeeper-3.4.5-cdh4.5.0/zookeeper[^.].*.jar, $HADOOP_CONF_DIR, /home/vagrant/hadoop-1.2.1/[^.].*.jar, /home/vagrant/hadoop-1.2.1/lib/[^.].*.jar, general.dynamic.classpaths/data/accumulo/lib/ext/[^.].*.jar trace.port.client0 monitor.port.client0 master.port.client0 tserver.port.client0 gc.port.client0 EOF cat > accumulo-$ACCUMULO_VERSION/conf/masters < accumulo-$ACCUMULO_VERSION/conf/slaves < /var/lib/tomcat7/webapps/web.rya/WEB-INF/classes/environment.properties <