EzDevInfo.com

bento

一款移动端优先的 CSS 栅格系统

bento start command fails with NoClassDefFoundError DNSCheckingTool

I was trying out the tutorial in https://github.com/kijiproject/kiji-schema/blob/master/kiji-schema-cassandra/cassandra_tutorial.md but got stuck at the place where we start the bento box. 'bento start'

It gives the following error:

cygpath: cannot create short name of c:\276273\WorkingFolder\Cassandra\cassandra
-bento\kiji-bento-ebi\cluster\lib\hbase-0.94.6-cdh4.3.0\logs
Running bento-cluster port configuration utility.
bento: line 620: /cygdrive/c/jdk1.6.0/bin/java: Argument list too long
Exception in thread "main" java.lang.NoClassDefFoundError: org/kiji/bento/tools/
DNSCheckingTool
Caused by: java.lang.ClassNotFoundException: org.kiji.bento.tools.DNSCheckingToo
l
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: org.kiji.bento.tools.DNSCheckingTool.  Program wi
ll exit.
Local DNS check failed.  Please resolve and try again.

Can you please help?


Source: (StackOverflow)

How to organize a Bento - Veewee - Vagrant project

I'm trying to use Bento, Veewee and Vagrant to automate the process of provisioning VMs. This approach has a lot of promise for simplifying development, dev-testing and QA processes.

(For those who haven't encountered these -- Vagrant makes it easy to quickly set up / tear down VMs in Virtual Box, VMWare, EC2 etc.; Veewee simplifies the process of building base boxes for Veewee; and Bento simplifies the process of defining base boxes and then automating the operation of Veewee).

The problem is, the interrelationship of Bento, Veewee and Vagrant is confusing. Many definition files, and some operations, are duplicated across layers and it isn't clear which layer should get the updates that're specific to my project. The Ruby environment also complicates this quite a lot -- seems like Bento commands all need to be run from the Bento directory, so boxes & other files end up in illogical places.

Can anyone suggest a file layout & workflow for using this combination of tools?


Source: (StackOverflow)

Advertisements

Ansible tasks cannot have sudo_user on a certain Vagrant box (bento)

The following task fails on a Vagrant box (ubuntu 12.04 chefless) http://opscode.github.io/bento/

  - name: ensure database is created
    postgresql_db: name={{dbname}}
    sudo_user: postgres

fd

failed: [192.168.78.8] => {"failed": true, "parsed": false}
invalid output was: Sorry, user vagrant is not allowed to execute '/bin/sh -c echo SUDO-SUCCESS-lalargtagydzinzenmftocwaiucrmxuk; /usr/bin/python /tmp/ansible-1392568385.89-150322815243790/postgresql_db' as postgres on cogol-dev.

Will I need to create my own box ?

=== content of /etc/sudoers

Defaults    env_reset
Defaults    exempt_group=sudo
Defaults    mail_badpass
Defaults    secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL:ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

# Allow members of group sudo to execute any command
%sudo   ALL=NOPASSWD:ALL

# See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d

Source: (StackOverflow)

What do I need to know to move my Bento database to an website?

I have a database I created using Bento on OS X that I would like moved online. I'm happy to start reading and experimenting but not sure to start. I've done basic python and java in the past but nothing more that what 5 hours on codeacademy.com would teach you. At first I'd just like the database to be for my personal use but after I get enough features I'd like to open it up to the community. This in an image what what the db looks like in bento at the moment. http://i.stack.imgur.com/B9pUR.png


Source: (StackOverflow)