Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
e25aa2e1
Commit
e25aa2e1
authored
Nov 20, 2015
by
Zach Loafman
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #17603 from mattf/master
Eliminate need for wget (use curl), use fewer intermediate files be quiet
parents
b36687a4
314e0c55
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
Dockerfile
examples/spark/images/base/Dockerfile
+6
-7
No files found.
examples/spark/images/base/Dockerfile
View file @
e25aa2e1
...
...
@@ -8,23 +8,22 @@ ENV spark_ver 1.5.1
# is all we need.)
RUN
mkdir
-p
/opt
&&
\
cd
/opt
&&
\
wget http://www.us.apache.org/dist/hadoop/common/hadoop-
${
hadoop_ver
}
/hadoop-
${
hadoop_ver
}
.tar.gz
&&
\
tar
-zvxf
hadoop-
${
hadoop_ver
}
.tar.gz hadoop-
${
hadoop_ver
}
/lib/native
&&
\
rm
hadoop-
${
hadoop_ver
}
.tar.gz
&&
\
curl http://www.us.apache.org/dist/hadoop/common/hadoop-
${
hadoop_ver
}
/hadoop-
${
hadoop_ver
}
.tar.gz |
\
tar
-zx
hadoop-
${
hadoop_ver
}
/lib/native
&&
\
ln
-s
hadoop-
${
hadoop_ver
}
hadoop
&&
\
echo
Hadoop
${
hadoop_ver
}
native libraries installed
in
/opt/hadoop/lib/native
# Get Spark from US Apache mirror.
RUN
mkdir
-p
/opt
&&
\
cd
/opt
&&
\
wget http://www.us.apache.org/dist/spark/spark-
${
spark_ver
}
/spark-
${
spark_ver
}
-bin-hadoop2
.6.tgz
&&
\
tar
-zvxf
spark-
${
spark_ver
}
-bin-hadoop2
.6.tgz
&&
\
rm
spark-
${
spark_ver
}
-bin-hadoop2
.6.tgz
&&
\
curl http://www.us.apache.org/dist/spark/spark-
${
spark_ver
}
/spark-
${
spark_ver
}
-bin-hadoop2
.6.tgz |
\
tar
-zx
&&
\
ln
-s
spark-
${
spark_ver
}
-bin-hadoop2
.6 spark
&&
\
echo
Spark
${
spark_ver
}
installed
in
/opt
# Add the GCS connector.
RUN
wget
-O
/opt/spark/lib/gcs-connector-latest-hadoop2.jar https://storage.googleapis.com/hadoop-lib/gcs/gcs-connector-latest-hadoop2.jar
RUN
cd
/opt/spark/lib
&&
\
curl
-O
https://storage.googleapis.com/hadoop-lib/gcs/gcs-connector-latest-hadoop2.jar
# if numpy is installed on a driver it needs to be installed on all
# workers, so install it everywhere
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment