Skip to content

Commit b733db4

Browse files
authored
Merge pull request apache#60 from mesosphere/update-build
[SPARK-299] [SPARK-314] mesos profile
2 parents 8b5da09 + c473b93 commit b733db4

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

bin/jenkins.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,9 @@ function make_distribution {
1313
if [ -f make-distribution.sh ]; then
1414
./make-distribution.sh -Phadoop-2.4 -DskipTests
1515
else
16-
./dev/make-distribution.sh -Phadoop-2.4 -DskipTests
16+
./dev/make-distribution.sh -Pmesos -Phadoop-2.6 -DskipTests
1717
fi
1818

19-
# tmp
20-
#wget http://spark-build.s3.amazonaws.com/spark-0738bc281ea93f09c541e47d61b98fe7babc74e0.tgz
21-
#tar xvf spark-0738bc281ea93f09c541e47d61b98fe7babc74e0.tgz
22-
#rm spark-0738bc281ea93f09c541e47d61b98fe7babc74e0.tgz
23-
#mv spark-0738bc281ea93f09c541e47d61b98fe7babc74e0 dist
24-
2519
local DIST="spark-${GIT_COMMIT}"
2620
mv dist ${DIST}
2721
tar czf ${DIST}.tgz ${DIST}
@@ -48,7 +42,7 @@ function rename_dist {
4842
function upload_to_s3 {
4943
pushd spark
5044

51-
aws s3 cp \
45+
aws --debug s3 cp \
5246
--acl public-read \
5347
spark-*.tgz \
5448
"s3://${S3_BUCKET}/${S3_PREFIX}"

bin/launch-cluster.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ CCM_RESPONSE=$(http --ignore-stdin \
2828
time=60 \
2929
channel=${DCOS_CHANNEL} \
3030
cluster_desc="DC/OS Spark testing cluster" \
31-
template=ee.single-master.cloudformation.json \
31+
template=single-master.cloudformation.json \
3232
adminlocation=0.0.0.0/0 \
3333
public_agents=1 \
3434
private_agents=1)

bin/test.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,13 @@ start_cluster() {
4141
if [ -z "${DCOS_URL}" ]; then
4242
DCOS_URL=http://$(./bin/launch-cluster.sh)
4343
fi
44-
TOKEN=$(python -c "import requests;js={'uid':'"${DCOS_USERNAME}"', 'password': '"${DCOS_PASSWORD}"'};r=requests.post('"${DCOS_URL}"/acs/api/v1/auth/login',json=js);print(r.json()['token'])")
44+
45+
# EE
46+
#TOKEN=$(python -c "import requests;js={'uid':'"${DCOS_USERNAME}"', 'password': '"${DCOS_PASSWORD}"'};r=requests.post('"${DCOS_URL}"/acs/api/v1/auth/login',json=js);print(r.json()['token'])")
47+
48+
# Open
49+
TOKEN=$(python -c "import requests; import sys; js = {'token':'"${DCOS_OAUTH_TOKEN}"'}; r=requests.post('"${DCOS_URL}"/acs/api/v1/auth/login',json=js); sys.stderr.write(str(r.json())); print(r.json()['token'])")
50+
4551
dcos config set core.dcos_acs_token ${TOKEN}
4652
}
4753

0 commit comments

Comments
 (0)