| |
| |
| <!DOCTYPE html> |
| <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> |
| <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> |
| <head> |
| <meta charset="utf-8"> |
| |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| |
| <title>Install Apache Marvin-AI — Apache Marvin-AI 0.0.5 documentation</title> |
| |
| |
| |
| |
| |
| |
| |
| |
| <script type="text/javascript" src="../_static/js/modernizr.min.js"></script> |
| |
| |
| <script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script> |
| <script type="text/javascript" src="../_static/jquery.js"></script> |
| <script type="text/javascript" src="../_static/underscore.js"></script> |
| <script type="text/javascript" src="../_static/doctools.js"></script> |
| <script type="text/javascript" src="../_static/language_data.js"></script> |
| |
| <script type="text/javascript" src="../_static/js/theme.js"></script> |
| |
| |
| |
| |
| <link rel="stylesheet" href="../_static/css/theme.css" type="text/css" /> |
| <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> |
| <link rel="index" title="Index" href="../genindex.html" /> |
| <link rel="search" title="Search" href="../search.html" /> |
| <link rel="next" title="Creating a New Engine" href="create-engine.html" /> |
| <link rel="prev" title="Main Components" href="main-components.html" /> |
| </head> |
| |
| <body class="wy-body-for-nav"> |
| |
| |
| <div class="wy-grid-for-nav"> |
| |
| <nav data-toggle="wy-nav-shift" class="wy-nav-side"> |
| <div class="wy-side-scroll"> |
| <div class="wy-side-nav-search" > |
| |
| |
| |
| <a href="../index.html" class="icon icon-home"> Apache Marvin-AI |
| |
| |
| |
| </a> |
| |
| |
| |
| |
| |
| |
| |
| <div role="search"> |
| <form id="rtd-search-form" class="wy-form" action="../search.html" method="get"> |
| <input type="text" name="q" placeholder="Search docs" /> |
| <input type="hidden" name="check_keywords" value="yes" /> |
| <input type="hidden" name="area" value="default" /> |
| </form> |
| </div> |
| |
| |
| </div> |
| |
| <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation"> |
| |
| |
| |
| |
| |
| |
| <p class="caption"><span class="caption-text">Contents:</span></p> |
| <ul class="current"> |
| <li class="toctree-l1"><a class="reference internal" href="overview-marvin.html">Overview</a></li> |
| <li class="toctree-l1"><a class="reference internal" href="main-components.html">Main Components</a></li> |
| <li class="toctree-l1 current"><a class="current reference internal" href="#">Install Apache Marvin-AI</a><ul> |
| <li class="toctree-l2"><a class="reference internal" href="#ubuntu-install">Ubuntu Install</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="#macos-install">MacOS Install</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="#docker-install">Docker Install</a></li> |
| </ul> |
| </li> |
| <li class="toctree-l1"><a class="reference internal" href="create-engine.html">Creating a New Engine</a></li> |
| <li class="toctree-l1"><a class="reference internal" href="existing-engine.html">Working in an Existent Engine</a></li> |
| <li class="toctree-l1"><a class="reference internal" href="features.html">Features</a></li> |
| <li class="toctree-l1"><a class="reference internal" href="architecture.html">Architecture</a></li> |
| <li class="toctree-l1"><a class="reference internal" href="community.html">Community</a></li> |
| </ul> |
| |
| |
| |
| </div> |
| </div> |
| </nav> |
| |
| <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> |
| |
| |
| <nav class="wy-nav-top" aria-label="top navigation"> |
| |
| <i data-toggle="wy-nav-top" class="fa fa-bars"></i> |
| <a href="../index.html">Apache Marvin-AI</a> |
| |
| </nav> |
| |
| |
| <div class="wy-nav-content"> |
| |
| <div class="rst-content"> |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| <div role="navigation" aria-label="breadcrumbs navigation"> |
| |
| <ul class="wy-breadcrumbs"> |
| |
| <li><a href="../index.html">Docs</a> »</li> |
| |
| <li>Install Apache Marvin-AI</li> |
| |
| |
| <li class="wy-breadcrumbs-aside"> |
| |
| |
| <a href="../_sources/pages/install-marvin.rst.txt" rel="nofollow"> View page source</a> |
| |
| |
| </li> |
| |
| </ul> |
| |
| |
| <hr/> |
| </div> |
| <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> |
| <div itemprop="articleBody"> |
| |
| <div class="section" id="install-apache-marvin-ai"> |
| <h1>Install Apache Marvin-AI<a class="headerlink" href="#install-apache-marvin-ai" title="Permalink to this headline">¶</a></h1> |
| <p>Welcome to Apache Marvin-AI install guide.</p> |
| <p><strong>We strongly recommend the utilization of Python 3.6 or any latest version.</strong></p> |
| <div class="section" id="ubuntu-install"> |
| <h2>Ubuntu Install<a class="headerlink" href="#ubuntu-install" title="Permalink to this headline">¶</a></h2> |
| <p>Toolbox will need some OS dependencies:</p> |
| <div class="highlight-default notranslate"><div class="highlight"><pre><span></span>$ sudo apt-get install libsasl2-dev python-pip graphviz dialog swig -y |
| </pre></div> |
| </div> |
| <p>We strongly recommend the use of VirtualEnv and VirtualEnvWrapper:</p> |
| <div class="highlight-default notranslate"><div class="highlight"><pre><span></span>$ sudo pip install --upgrade pip |
| $ sudo pip install virtualenvwrapper --ignore-installed six |
| </pre></div> |
| </div> |
| <p>Spark installation (Optional):</p> |
| <div class="highlight-default notranslate"><div class="highlight"><pre><span></span>$ curl https://d3kbcqa49mib13.cloudfront.net/spark-2.1.1-bin-hadoop2.6.tgz -o /tmp/spark-2.1.1-bin-hadoop2.6.tgz |
| $ sudo tar -xf /tmp/spark-2.1.1-bin-hadoop2.6.tgz -C /opt/ |
| $ sudo ln -s /opt/spark-2.1.1-bin-hadoop2.6 /opt/spark |
| $ echo "export SPARK_HOME=/opt/spark" >> $HOME/.bash_profile |
| </pre></div> |
| </div> |
| <p>If you do not have /opt directory created, before unpacking spark, run:</p> |
| <div class="highlight-default notranslate"><div class="highlight"><pre><span></span>$ sudo mkdir /opt |
| </pre></div> |
| </div> |
| <p>Marvin uses dafault values for these environment variables, but you can customize them (Optional):</p> |
| <div class="highlight-default notranslate"><div class="highlight"><pre><span></span>$ echo "export WORKON_HOME=$HOME/.virtualenvs" >> $HOME/.bash_profile |
| $ echo "export MARVIN_HOME=$HOME/marvin" >> $HOME/.bash_profile |
| $ echo "export MARVIN_DATA_PATH=$HOME/marvin/data" >> $HOME/.bash_profile |
| $ echo "source virtualenvwrapper.sh" >> $HOME/.bash_profile |
| $ source ~/.bash_profile |
| </pre></div> |
| </div> |
| <p>Install python-toolbox:</p> |
| <div class="highlight-default notranslate"><div class="highlight"><pre><span></span>$ mkvirtualenv python-toolbox-env |
| $ setvirtualenvproject |
| $ pip install marvin-python-toolbox |
| </pre></div> |
| </div> |
| <p>Test the installation:</p> |
| <div class="highlight-default notranslate"><div class="highlight"><pre><span></span>$ marvin |
| </pre></div> |
| </div> |
| </div> |
| <div class="section" id="macos-install"> |
| <h2>MacOS Install<a class="headerlink" href="#macos-install" title="Permalink to this headline">¶</a></h2> |
| <p>Toolbox will need some OS dependencies:</p> |
| <div class="highlight-default notranslate"><div class="highlight"><pre><span></span>$ sudo easy_install pip |
| $ brew install openssl graphviz |
| </pre></div> |
| </div> |
| <p>We strongly recommend the use of VirtualEnv and VirtualEnvWrapper:</p> |
| <div class="highlight-default notranslate"><div class="highlight"><pre><span></span>$ sudo pip install --upgrade pip |
| $ sudo pip install virtualenvwrapper --ignore-installed six |
| </pre></div> |
| </div> |
| <p>Spark installation (Optional):</p> |
| <div class="highlight-default notranslate"><div class="highlight"><pre><span></span>$ curl https://d3kbcqa49mib13.cloudfront.net/spark-2.1.1-bin-hadoop2.6.tgz -o /tmp/spark-2.1.1-bin-hadoop2.6.tgz |
| $ sudo tar -xf /tmp/spark-2.1.1-bin-hadoop2.6.tgz -C /opt/ |
| $ sudo ln -s /opt/spark-2.1.1-bin-hadoop2.6 /opt/spark |
| $ echo "export SPARK_HOME=/opt/spark" >> $HOME/.bash_profile |
| </pre></div> |
| </div> |
| <p>If you do not have /opt directory created, before unpacking spark, run:</p> |
| <div class="highlight-default notranslate"><div class="highlight"><pre><span></span>$ sudo mkdir /opt |
| </pre></div> |
| </div> |
| <p>Marvin uses dafault values for these environment variables, but you can customize them (Optional):</p> |
| <div class="highlight-default notranslate"><div class="highlight"><pre><span></span>$ echo "export WORKON_HOME=$HOME/.virtualenvs" >> $HOME/.bash_profile |
| $ echo "export MARVIN_HOME=$HOME/marvin" >> $HOME/.bash_profile |
| $ echo "export MARVIN_DATA_PATH=$HOME/marvin/data" >> $HOME/.bash_profile |
| $ echo "source virtualenvwrapper.sh" >> $HOME/.bash_profile |
| $ source ~/.bash_profile |
| </pre></div> |
| </div> |
| <p>Install python-toolbox:</p> |
| <div class="highlight-default notranslate"><div class="highlight"><pre><span></span>$ mkvirtualenv python-toolbox-env |
| $ setvirtualenvproject |
| $ pip install marvin-python-toolbox |
| </pre></div> |
| </div> |
| <p>Test the installation:</p> |
| <div class="highlight-default notranslate"><div class="highlight"><pre><span></span>$ marvin |
| </pre></div> |
| </div> |
| </div> |
| <div class="section" id="docker-install"> |
| <h2>Docker Install<a class="headerlink" href="#docker-install" title="Permalink to this headline">¶</a></h2> |
| </div> |
| </div> |
| |
| |
| </div> |
| |
| </div> |
| <footer> |
| |
| <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation"> |
| |
| <a href="create-engine.html" class="btn btn-neutral float-right" title="Creating a New Engine" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a> |
| |
| |
| <a href="main-components.html" class="btn btn-neutral float-left" title="Main Components" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a> |
| |
| </div> |
| |
| |
| <hr/> |
| |
| <div role="contentinfo"> |
| <p> |
| |
| </p> |
| </div> |
| Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. |
| |
| </footer> |
| |
| </div> |
| </div> |
| |
| </section> |
| |
| </div> |
| |
| |
| |
| <script type="text/javascript"> |
| jQuery(function () { |
| SphinxRtdTheme.Navigation.enable(true); |
| }); |
| </script> |
| |
| |
| |
| |
| |
| |
| </body> |
| </html> |