blob: e1904a05671b42a092ba6ad569ebd77960f206cc [file] [log] [blame] [view]
---
layout: page
title: Installation
description: Project Community Page
group: nav-right
---
<!--
{% comment %}
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to you under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
{% endcomment %}
-->
{% include JB/setup %}
# Installing Toolbox as Ubuntu user
1. Toolbox will need some OS dependencies
```
sudo apt-get install libsasl2-dev python-pip graphviz -y
```
2. We strongly recommend the use of VirtualEnv and VirtualEnvWrapper
```
sudo pip install --upgrade pip
sudo pip install virtualenvwrapper --ignore-installed six
```
3. Spark installation (**Optional**)
```
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
```
If you do not have /opt directory created, before unpacking spark, run:
```
sudo mkdir /opt
```
4. Marvin uses dafault values for these environment variables, but you can customize them (**Optional**)
```
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
```
5. Install python-toolbox
```
mkvirtualenv python-toolbox-env
setvirtualenvproject
pip install marvin-python-toolbox
```
6. Test the installation
```
marvin
```
7. Youtube tutorial
[![Python Toolbox Install](http://img.youtube.com/vi/2iljFG9EZ_Q/0.jpg)](https://www.youtube.com/watch?v=2iljFG9EZ_Q "Python Toolbox Install")
----
* [Installing Marvin](/marvin-platform-book/ch2_toolbox_installation/overview)