Skip to content

ryane/dcos-hdfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DCOS hdfs Subcommand

Basic DCOS subcommand

Setup

  1. Make sure you meet requirements for installing packages
  2. Clone git repo for the dcos hdfs cli:

    git clone git@github.com:mesosphere/dcos-hdfs.git
  3. Change directory to the repo directory:

    cd dcos-hdfs

Configure Environment and Run

  1. TODO: Talk about how to configure the root dcos cli
  2. source the setup file to add the dcos-hdfs command line interface to your PATH:

    source env/bin/activate
  3. Get started by calling the DCOS hdfs CLI's help:

    dcos hdfs help
  4. Generate an options.json file for your HDFS deployment:

    dcos hdfs config-gen /path/to/mesos-site.xml
  5. Then you can use the dcos cli to install hdfs like so:

    dcos package install --options=options.json hdfs

Running Tests:

Setup

Tox, our test runner, tests against both Python 2.7 and Python 3.4 environments.

If you're using OS X, be sure to use the officially distributed Python 3.4 installer since the Homebrew version is missing a necessary library.

Running

Tox will run unit and integration tests in both Python environments using a temporarily created virtualenv.

You should ensure DCOS_CONFIG is set and that the config file points to the Marathon instance you want to use for integration tests.

There are two ways to run tests, you can either use the virtualenv created by make env above:

make test

Or, assuming you have tox installed (via sudo pip install tox):

tox

Other Useful Commands

  1. List all of the supported test environments:

    tox --listenvs
  2. Run a specific set of tests:

    tox -e <testenv>