Skip to content

Instantly share code, notes, and snippets.

@mbukatov
Created July 3, 2015 08:39
Show Gist options
  • Save mbukatov/6fe5fbc4b2e3fbf3b06b to your computer and use it in GitHub Desktop.
Save mbukatov/6fe5fbc4b2e3fbf3b06b to your computer and use it in GitHub Desktop.
---
- hosts: bigtop_master
user: root
vars:
state: stopped
tasks:
- name: Hadoop services on master node
service: name={{ item }} enabled=true state={{ state }}
with_items:
- hadoop-hdfs-datanode
- hadoop-hdfs-namenode
- hadoop-hdfs-secondarynamenode
- hadoop-yarn-nodemanager
- hadoop-yarn-resourcemanager
- hadoop-yarn-proxyserver
- hadoop-mapreduce-historyserver
- hadoop-httpfs
- flume-agent
- hbase-master
- hbase-regionserver
- hbase-thrift
- hue
- oozie
- solr-server
- spark-master
- spark-worker
- sqoop-server
- zookeeper-server
- hosts: bigtop_nodes
user: root
vars:
state: stopped
tasks:
- name: Hadoop services on slave nodes
service: name={{ item }} enabled=true state={{ state }}
with_items:
- hadoop-hdfs-datanode
- hadoop-yarn-nodemanager
- flume-agent
- hbase-regionserver
- solr-server
- spark-worker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment