bcajes / titan-cookbook Goto Github PK
View Code? Open in Web Editor NEWChef cookbook for Titan distributed graph database (embedded w/ cassandra + elastic search)
License: Apache License 2.0
Chef cookbook for Titan distributed graph database (embedded w/ cassandra + elastic search)
License: Apache License 2.0
I tried to run this cookbook with Vagrant and got following error:
==> webapp: ================================================================================
==> webapp: Error Syncing Cookbooks:
==> webapp: ================================================================================
==> webapp:
==> webapp: Unexpected Error:
==> webapp: -----------------
==> webapp:
==> webapp: URI::InvalidURIError: bad URI(is not URI?): chefzero://localhost:8889/file_store/repo/cookbooks/titan/templates/default/#cassandra.yaml.erb#
My Vagrantfile had chef.add_role "titan_role"
and titan_role.json was like this:
{
"name":"w_titan_role",
"description":"Titan Graph Database",
"json_class": "Chef::Role",
"chef_type": "role",
"default_attributes": {
},
"run_list": [
"recipe[titan]"
]
}
Then I run berks show titan
and inspected file contents which was downloaded from supermarket.chef.io
C:\Users\Joel\.berkshelf\cookbooks\titan-1.2.6>ls -al templates\default
total 148
-rw-r--r-- 1 Joel Administrators 2 Oct 20 06:28 #cassandra.yaml#
-rw-r--r-- 1 Joel Administrators 31133 Oct 20 06:28 #cassandra.yaml.erb#
drwxr-xr-x 2 Joel Administrators 4096 Oct 20 06:28 .
drwxr-xr-x 3 Joel Administrators 0 Oct 20 06:28 ..
-rw-r--r-- 1 Joel Administrators 32386 Oct 20 06:28 cassandra.yaml.erb
-rw-r--r-- 1 Joel Administrators 32388 Oct 20 06:28 cassandra.yaml.erb~
-rw-r--r-- 1 Joel Administrators 32145 Oct 20 06:28 cassandra.yaml~
-rw-r--r-- 1 Joel Administrators 6433 Oct 20 06:28 rexster-cassandra-es.xml.erb
-rw-r--r-- 1 Joel Administrators 6371 Oct 20 06:28 rexster-cassandra-es.xml.erb~
-rw-r--r-- 1 Joel Administrators 734 Oct 20 06:28 titan-server-cassandra-es.properties.erb
-rw-r--r-- 1 Joel Administrators 482 Oct 20 06:28 titan.upstart.conf.erb
When this cookbook uploaded to supermarket, temp files like #cassandra.yaml# ,it seems , was uploaded together.
For those who got same error, the work around for this is configure your Berksfile to download from github not from supermarket
cookbook 'titan', git: 'https://github.com/bcajes/titan-cookbook.git'
⚡ vagrant up --provision
Bringing machine 'titan' up with 'virtualbox' provider...
/Users/c/.vagrant.d/gems/gems/vagrant-berkshelf-1.3.7/lib/berkshelf/vagrant/env.rb:18:in `initialize': undefined method `scope' for #<Vagrant::UI::Colored:0x00000100b23d78> (NoMethodError)
from /Users/c/.vagrant.d/gems/gems/vagrant-berkshelf-1.3.7/lib/berkshelf/vagrant/action.rb:54:in `new'
from /Users/c/.vagrant.d/gems/gems/vagrant-berkshelf-1.3.7/lib/berkshelf/vagrant/action.rb:54:in `block in setup'
from /Users/c/.vagrant.d/gems/gems/vagrant-berkshelf-1.3.7/lib/berkshelf/vagrant/action.rb:53:in `tap'
from /Users/c/.vagrant.d/gems/gems/vagrant-berkshelf-1.3.7/lib/berkshelf/vagrant/action.rb:53:in `setup'
from /Users/c/.vagrant.d/gems/gems/vagrant-berkshelf-1.3.7/lib/berkshelf/vagrant/plugin.rb:15:in `provision'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:42:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:42:in `block (2 levels) in run'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:41:in `tap'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:41:in `block in run'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:40:in `map'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:40:in `run'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:196:in `action_raw'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:173:in `block in action'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/environment.rb:434:in `lock'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:161:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:161:in `action'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/batch_action.rb:82:in `block (2 levels) in run'
from /Applications/Vagrant/embedded/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `call'
from /Applications/Vagrant/embedded/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'
default[:titan][:storage][:properties] has a .erb at the end of it, it should be removed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.