MapR 5.0 Documentation : Installing and Configuring the MapR Plugin for Sahara

 

Complete the following steps to install and configure the MapR Plugin for Sahara:

  1. Clone the MapR plugin repository from GitHub to a local directory in your OpenStack environment:

    $ git clone -b stable/liberty https://github.com/openstack/sahara.git /tmp/sahara
    Cloning into '/tmp/sahara'...
    remote: Counting objects: 23841, done.
    remote: Compressing objects: 100% (6589/6589), done.
    remote: Total 23841 (delta 15416), reused 23841 (delta 15416) Receiving objects: 100% (23841/23841), 8.64 MiB | 4.82 MiB/s, done. Resolving deltas: 100% (15416/15416), done.
    Checking connectivity... done.
  2. Copy the contents of the MapR plugin directory to the Sahara home directory:

    $ cp -R /tmp/sahara/sahara/plugins/mapr/ /opt/stack/sahara/sahara/plugins
    $ cd /opt/stack/sahara
    $ ls
    babel.cfg         etc          MANIFEST.in           README.rst       sahara setup.py               tox.ini
    CONTRIBUTING.rst  HACKING.rst  openstack-common.conf requirements.txt sahara.egg-info  test-requirements.txt  worlddump-2015-02-05-192311.txt
    doc               LICENSE      pylintrc              run_tests.sh     setup.cfg
    tools
  3. Register the MapR plugin with Sahara by adding an entry to the setup.cfg file (<OpenStack-home>/sahara/setup.cfg):

    [entry_points]
    ...
    sahara.cluster.plugins =
    vanilla = sahara.plugins.vanilla.plugin:VanillaProvider
    hdp = sahara.plugins.hdp.ambariplugin:AmbariPlugin
    cdh = sahara.plugins.cdh.plugin:CDHPluginProvider
    mapr = sahara.plugins.mapr.plugin:MapRPlugin
    fake = sahara.plugins.fake.plugin:FakePluginProvider
    spark = sahara.plugins.spark.plugin:SparkProvider
  4. Enable the plugin by adding a MapR plugin entry to the sahara.conf file (/etc/sahara/sahara.conf):

    [DEFAULT]
    use_floating_ips = false
    ...
    plugins = vanilla,mapr
    debug = True
    verbose = True
  5. Recompile by running the following commands. The sahara-db-manage command completes the process by executing a script that updates the Sahara database.

    $ cd /opt/stack/sahara
    $ sudo python setup.py install
    $ sahara-db-manage --config-file /etc/sahara/sahara.conf upgrade head
  6. Restart Sahara. For example, you can use this command:

    $ sahara-all --config-file /etc/sahara/sahara.conf