Installing and Configuring the MapR Plugin for Sahara

Complete the following steps to install and configure the MapR Plugin for Sahara:
  1. 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
    mapr = sahara.plugins.mapr.plugin:MapRPlugin
    cdh = sahara.plugins.cdh.plugin:CDHPluginProvider
    spark = sahara.plugins.spark.plugin:SparkProvider
  2. Enable the plugin by adding a MapR plugin entry to the sahara.conf file (/etc/sahara/sahara.conf):
    [DEFAULT]
    ...
    plugins = vanilla,hdp,cdh,spark,mapr
    ...
  3. 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
    $ tox -e venv -- sahara-db-manage --config-file /etc/sahara/sahara.conf upgrade head
  4. Restart Sahara. For example, you can use this command:
    $ tox -e venv -- sahara-all --config-file /etc/sahara/sahara.conf