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
[INFO 06-01-2010 22:33:58] Vagrant: [Tue, 01 Jun 2010 22:33:58 -0700] INFO: Installing package[cassandra] version 0.6.2 | |
: stdout | |
[INFO 06-01-2010 22:34:06] Vagrant: [Tue, 01 Jun 2010 22:34:06 -0700] ERROR: service[cassandra] (/tmp/vagrant-chef/cookbooks-0/cassandra/recipes/default.rb line 30) had an error: | |
wrong number of arguments (0 for 1) | |
/usr/lib/ruby/gems/1.8/gems/chef-0.8.6/bin/../lib/chef/provider/service.rb:36:in `enable_service' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.8.6/bin/../lib/chef/provider/service.rb:36:in `action_enable' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.8.6/bin/../lib/chef/runner.rb:60:in `send' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.8.6/bin/../lib/chef/runner.rb:60:in `run_action' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.8.6/bin/../lib/chef/runner.rb:114:in `converge' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.8.6/bin/../lib/chef/runner.rb:113:in `each' |
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
public boolean has_key(String keySpace, String columnFamilyName, String key) throws Exception { | |
TTransport tr = new TSocket("localhost", 9160); | |
TProtocol proto = new TBinaryProtocol(tr); | |
Cassandra.Client client = new Cassandra.Client(proto); | |
tr.open(); | |
SlicePredicate predicate = new SlicePredicate(); | |
SliceRange sliceRange = new SliceRange(); | |
sliceRange.setCount(1); | |
sliceRange.setStart(new byte[0]); |
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/sh | |
### What: | |
# Download and untar the zookeeper distribution and run this to | |
# create a replicated zookeeper on localhost | |
## How: | |
# Create a directory to run servers in | |
# Copy the zookeeper distribution into it 3x | |
### |
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
# see http://ole-martin.net/hbase-tutorial-for-beginners/ | |
require 'java' | |
require 'hbase-0.20.2.jar' | |
require 'lib/zookeeper-3.2.1.jar' | |
require 'lib/commons-logging-1.0.4.jar' | |
require 'lib/commons-logging-api-1.0.4.jar' | |
require 'lib/hadoop-0.20.1-hdfs127-core.jar' | |
require 'lib/log4j-1.2.15.jar' |
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
# Divine Panda | |
service "foo" do | |
action :nothing | |
end | |
template "/etc/foo/config.conf" do | |
source "config.conf.erb" | |
action :create | |
notifies :restart, resources(:service => "foo") | |
end |
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
cat config/client.rb | |
# | |
# Chef Client Config File | |
# | |
log_level :info | |
log_location STDOUT | |
ssl_verify_mode :verify_none | |
registration_url "http://localhost:4000" | |
openid_url "http://localhost:4001" |
NewerOlder