Giter VIP home page Giter VIP logo

hopsworks-chef's Introduction

HopsWorks

Chef cookbook to install HopsWorks, Hadoop for Humans.

Vagrant Installation

Requirements: Vagrant, Virtualbox, Min 9 GB of main memory

Install the omnibus plugin, if needed:

vagrant plugin install vagrant-omnibus

Clone this repo, then run:

cd hopsworks-chef
# remove any old berkshelf cookbooks/cache
rm -rf cookbooks Berksfile.lock
berks vendor cookbooks
vagrant up

After hopsworks has installed, access hopsworks from your browser, with the username and password below:

http://localhost:8080/hopsworks

Default credentials:

user: [email protected]
password: admin

On-Premise RedHat/Centos/Fedora Installations

By default, Redhat/Centos/Fedora disable "ssh hostname sudo ", because it will show the password in clear. This prevents Karamel from executing Chef recipes on bare-metal Centos/Redhat hosts. To overcome this, you can force the use of a pseudeo-terminal, by commenting out the following line in /etc/sudoers:

Comment out this line below, in /etc/sudoers

#Defaults requiretty

This has to be done for all hosts in the cluster on which Karamel will be executed.

Installing on Localhost for Development

You can install the hopsworks stack on your ubuntu host by first forking hopsworks and then cloning it from the repository in which you cloned Hopsworks. F

# Example of cloning from my own repo, where I cloned Hopsworks to.
git clone git://github.com/jimdowling/hopsworks.git


# This command copies all Hopswork's dependent cookbooks into the /tmp/cookbooks folder:
berks vendor /tmp

# This command updates the hopsworks.json to install all servers with the id of the current user ($USER)
./fix-hopsworks.json.sh

# This command runs chef to execute all the recipes
sudo chef-solo -c solo.rb -j hopsworks.json

Development Tips

Javascript/HTML development on localhost

If you are only editing javascript or html code, you can easily debug and view your changes by running the script:

cd scripts
./local-deploy.sh

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Develop

You probably want to change the Vagrantfile - ports. And you don't want this change to affect your push/pull

git update-index --skip-worktree Vagrantfile

and when you actually want to change something and push it

git update-index --no-skip-worktree Vagrantfile

hopsworks-chef's People

Contributors

tkakantousis avatar kouzant avatar misdess avatar kerkinos avatar berthoug avatar kamalhakim avatar juancroca avatar ermiasg avatar tha-robert avatar giannokostas avatar maismail avatar o-alex avatar jsvhqr avatar

Stargazers

Johan Eker avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

ekeroid

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.