File tree 5 files changed +54
-10
lines changed
5 files changed +54
-10
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ driver :
3
+ name : vagrant
4
+ customize :
5
+ memory : 8048
6
+ cpuexecutioncap : 90
7
+ cpus : 2
8
+ natdnshostresolver1 : " on"
9
+ natdnsproxy1 : " on"
10
+ nictype1 : " virtio"
11
+
12
+ provisioner :
13
+ name : chef_solo
14
+
15
+ platforms :
16
+ - name : ubuntu-14.04
17
+ # - name: centos-7.0
18
+ # - name: ubuntu-15.04
19
+
20
+ suites :
21
+ - name : default
22
+
23
+ suites :
24
+ - name : default
25
+ run_list :
26
+ - recipe[kagent::install]
27
+ - recipe[apache_hadoop::install]
28
+ - recipe[hadoop_spark::install]
29
+ - recipe[apache_hadoop::nn]
30
+ - recipe[apache_hadoop::rm]
31
+ - recipe[apache_hadoop::dn]
32
+ - recipe[apache_hadoop::nm]
33
+ - recipe[hadoop_spark::yarn]
34
+ - recipe[hadoop_spark::historyserver]
35
+ attributes :
36
+ hadoop_spark :
37
+ private_ips : ["10.0.2.15"]
38
+ apache_hadoop :
39
+ private_ips : ["10.0.2.15"]
40
+ kagent :
41
+ enabled : " false"
42
+ private_ips : ["10.0.2.15"]
43
+ public_ips : ["10.0.2.15"]
44
+ private_ips : ["10.0.2.15"]
45
+ public_ips : ["10.0.2.15"]
46
+ vagrant : " true"
Original file line number Diff line number Diff line change @@ -3,12 +3,9 @@ source 'https://supermarket.chef.io'
3
3
4
4
metadata
5
5
6
- cookbook 'kagent' , github : "karamelchef/kagent-chef" , branch : "master"
7
-
8
6
9
7
cookbook 'java'
10
- #cookbook 'scala', '~> 2.1.0'
11
-
12
- cookbook 'apache_hadoop' , github : "hopshadoop/apache-hadoop-chef" , branch : "master"
13
- cookbook 'hops' , github : "hopshadoop/hops-hadoop-chef" , branch : "master"
14
- cookbook 'ndb' , github : "hopshadoop/ndb-chef" , branch : "master"
8
+ cookbook 'ndb' , '~> 0.2.1'
9
+ cookbook 'kagent' , '~> 0.1.3'
10
+ cookbook 'apache_hadoop' , '~> 0.1.1'
11
+ cookbook 'hops' , '~> 0.1.1'
Original file line number Diff line number Diff line change 4
4
license "Apache v2"
5
5
description 'Installs/Configures Spark'
6
6
long_description IO . read ( File . join ( File . dirname ( __FILE__ ) , 'README.md' ) )
7
- version "0.1.1 "
7
+ version "0.1.3 "
8
8
source_url "https://github.com/hopshadoop/spark-chef"
9
9
10
10
depends "kagent"
11
11
depends "apache_hadoop"
12
12
depends "java"
13
13
depends "hops"
14
- #depends "scala"
15
14
16
15
recipe "install" , "Installs Spark binaries"
17
16
#link:<a target='_blank' href='http://%host%:8080/'>Launch the WebUI for the Spark Master</a>
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+
3
4
cb=$( grep " ^name\s*" metadata.rb | perl -p -e ' s/"//g' | perl -p -e " s/name\s*//g" )
4
5
5
6
echo " Releasing cookbook: $cb to Chef supermarket"
6
7
if [ $cb == " " ] ; then
7
8
echo " Couldnt determine cookbook name. Exiting..."
8
9
fi
9
10
11
+ rm -f Berksfile.lock
10
12
rm -rf /tmp/cookbooks
11
13
berks vendor /tmp/cookbooks
12
14
cp metadata.rb /tmp/cookbooks/$cb /
Original file line number Diff line number Diff line change 4
4
# Copy it as.apache_hadoop.spark.env.sh and edit that to configure Spark for your site.
5
5
6
6
export SPARK_HOME=< %= node.hadoop_spark.base_dir %>
7
- export SCALA_HOME=< %= node.scala.home % >
7
+ # export SCALA_HOME=
8
8
9
9
# export SPARK_JAR=
10
10
You can’t perform that action at this time.
0 commit comments