zeppelin/scripts/vagrant/zeppelin-dev/roles/python-addons/tasks/main.yml

29 lines
1.1 KiB
YAML
Raw Normal View History

Vagrant Virtual Machine and Readme.md This script creates a virtual machine that launches a repeatable, known set of core dependencies required for developing Zeppelin. It can also be used to run an existing Zeppelin build if you don't plan to build from source. For pyspark users, this script also includes several helpful Python Libraries and one obscure configuration to help with matplotlib plotting inside Zeppelin. The virtual machine consists of: - Ubuntu Server 14.04 LTS - Node.js 0.12.7 - npm 2.11.3 - ruby 1.9.3 + bundler, rake, make (only required for building jekyll documentation) - Maven 3.3.3 - Git - Unzip - libfontconfig to avoid phatomJs missing dependency issues - openjdk-7-jdk - Python addons: pip, matplotlib, scipy, numpy, pandas - Changes are made to the python backend configuration so that pyspark can render matplotlib plots without an interactive window Author: Jeff Steinmetz <jeffrey.steinmetz@gmail.com> Closes #460 from jeffsteinmetz/master and squashes the following commits: cfb1034 [Jeff Steinmetz] add ruby 1.9.3 install + bundler, make and rake for jekyll doc support. Add vagrant port 4000 forwarding for jekyll documentation build watcher 9a78355 [Jeff Steinmetz] remove apache python script from commit 97a5819 [Jeff Steinmetz] remove apache python script. remove nodesource and use official node.js distribution download 0b169a6 [Jeff Steinmetz] remove license from apache-mirror-selector.py. Simplify node install a86c55f [Jeff Steinmetz] typo fixed. licenses in supporting readme and apache mirror python script 3ec6a6b [Jeff Steinmetz] add virtual machine to docs 4b70e63 [Jeff Steinmetz] remove reference to python backend config in readme. 5c31125 [Jeff Steinmetz] add apache-mirror-selector to ansible playbook 11fdc0d [Jeff Steinmetz] removed matplotlib global Agg config. Updated vagrant virtual box settings with hostname and vm name. upated python example to set Agg afc26a4 [Jeff Steinmetz] roll back to original top level README.md de07f00 [Jeff Steinmetz] update readme based on comments. Add license 853ddca [Jeff Steinmetz] vagrant virtual machine and readme ff8078a [Jeff Steinmetz] vagrant virtual machine and readme fb31785 [Jeff Steinmetz] initial commit of vagrant virtual machine script 5888360 [Jeff Steinmetz] merge upstream 1eb27eb [Jeff Steinmetz] expanded build instructions to include pyspark, and clarified maven and node.js requirements
2015-11-26 21:24:51 +00:00
# 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.
# setup zeppelin python dependencies
# Assumes Ubuntu Server 14.04 LTS (HVM) - ami-f64f77b3 64 bit
# Assumes Java 7 installed as part of the top level playbook
---
- name: Install python dependencies. This will take a while.
apt: pkg={{ item }} state=latest
with_items:
- python-pip
- python-matplotlib
- python-scipy
- python-numpy
- python-pandas