Skip to content

Commit f7504bc

Browse files
author
Jim Dowling
committed
new release to supermarket
1 parent ed3895a commit f7504bc

File tree

5 files changed

+54
-10
lines changed

5 files changed

+54
-10
lines changed

.kitchen.yml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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"

Berksfile

+4-7
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,9 @@ source 'https://supermarket.chef.io'
33

44
metadata
55

6-
cookbook 'kagent', github: "karamelchef/kagent-chef", branch: "master"
7-
86

97
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'

metadata.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@
44
license "Apache v2"
55
description 'Installs/Configures Spark'
66
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
7-
version "0.1.1"
7+
version "0.1.3"
88
source_url "https://github.com/hopshadoop/spark-chef"
99

1010
depends "kagent"
1111
depends "apache_hadoop"
1212
depends "java"
1313
depends "hops"
14-
#depends "scala"
1514

1615
recipe "install", "Installs Spark binaries"
1716
#link:<a target='_blank' href='http://%host%:8080/'>Launch the WebUI for the Spark Master</a>

release.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
#!/bin/bash
22

3+
34
cb=$(grep "^name\s*" metadata.rb | perl -p -e 's/"//g' | perl -p -e "s/name\s*//g")
45

56
echo "Releasing cookbook: $cb to Chef supermarket"
67
if [ $cb == "" ] ; then
78
echo "Couldnt determine cookbook name. Exiting..."
89
fi
910

11+
rm -f Berksfile.lock
1012
rm -rf /tmp/cookbooks
1113
berks vendor /tmp/cookbooks
1214
cp metadata.rb /tmp/cookbooks/$cb/

templates/default/spark-env.sh.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Copy it as.apache_hadoop.spark.env.sh and edit that to configure Spark for your site.
55

66
export SPARK_HOME=<%= node.hadoop_spark.base_dir %>
7-
export SCALA_HOME=<%= node.scala.home %>
7+
#export SCALA_HOME=
88

99
#export SPARK_JAR=
1010

0 commit comments

Comments
 (0)