forked from apache/spark
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Spark-483] Add Kerberos principal and secret-based key tab to the CL…
…I, also update libmesos in Dockerfile (apache#164) * wip, decode base64 secrets * improved logging * change makefile back * makefile... * use libmesos bundle instead of private image * update docs and remove tgt? * remove dead code * fix typo * fixed hdfs.md with tgt instructions
- Loading branch information
Arthur Rand
authored
Aug 9, 2017
1 parent
0751fcf
commit 6ec5bb9
Showing
7 changed files
with
106 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
PATH_ENV = 'PATH' | ||
KERBEROS_PRINCIPAL_ARG = "--kerberos-principal" | ||
KEYTAB_SECRET_PATH_ARG = "--keytab-secret-path" | ||
ENCODED_SUFFIX = ".base64" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,8 +18,8 @@ | |
# docker build -t spark:git-`git rev-parse --short HEAD` . | ||
|
||
# Basing from Mesos image so the Mesos native library is present. | ||
FROM mesosphere/mesos-modules-private:dcos-ee-mesos-modules-1.8.5-rc2 | ||
MAINTAINER Michael Gummelt <[email protected]> | ||
FROM ubuntu:14.04 | ||
MAINTAINER Michael Gummelt <[email protected]>, Arthur Rand <[email protected]> | ||
|
||
# Set environment variables. | ||
ENV DEBIAN_FRONTEND "noninteractive" | ||
|
@@ -37,13 +37,21 @@ RUN apt-get update && \ | |
apt-get install -y curl | ||
RUN apt-get install -y r-base | ||
|
||
RUN cd /usr/lib/jvm && \ | ||
RUN mkdir -p /opt/mesosphere/ && \ | ||
cd /opt/mesosphere && \ | ||
curl -L -O https://downloads.mesosphere.io/libmesos-bundle/libmesos-bundle-1.10-1.4-63e0814.tar.gz && \ | ||
tar zxf libmesos-bundle-1.10-1.4-63e0814.tar.gz && \ | ||
rm libmesos-bundle-1.10-1.4-63e0814.tar.gz | ||
|
||
RUN mkdir -p /usr/lib/jvm/ && \ | ||
cd /usr/lib/jvm && \ | ||
curl -L -O https://downloads.mesosphere.com/java/jre-8u112-linux-x64-jce-unlimited.tar.gz && \ | ||
tar zxf jre-8u112-linux-x64-jce-unlimited.tar.gz && \ | ||
rm jre-8u112-linux-x64-jce-unlimited.tar.gz | ||
|
||
ENV JAVA_HOME /usr/lib/jvm/jre1.8.0_112 | ||
ENV MESOS_NATIVE_JAVA_LIBRARY /usr/lib/libmesos.so | ||
ENV MESOS_NATIVE_JAVA_LIBRARY /opt/mesosphere/libmesos-bundle/lib/libmesos.so | ||
ENV LD_LIBRARY_PATH /opt/mesosphere/libmesos-bundle/lib/ | ||
ENV HADOOP_CONF_DIR /etc/hadoop | ||
|
||
RUN mkdir /etc/hadoop | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters