Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
spark
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs525-sp18-g07
spark
Commits
cb4ef192
Commit
cb4ef192
authored
11 years ago
by
Jey Kottalam
Browse files
Options
Downloads
Patches
Plain Diff
yarn support
parent
8b1c1520
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bin/compute-classpath.cmd
+2
-0
2 additions, 0 deletions
bin/compute-classpath.cmd
bin/compute-classpath.sh
+2
-0
2 additions, 0 deletions
bin/compute-classpath.sh
project/SparkBuild.scala
+6
-6
6 additions, 6 deletions
project/SparkBuild.scala
with
10 additions
and
6 deletions
bin/compute-classpath.cmd
+
2
−
0
View file @
cb4ef192
...
...
@@ -34,6 +34,7 @@ set EXAMPLES_DIR=%FWDIR%examples
set
BAGEL_DIR
=
%FWDIR%
bagel
set
MLLIB_DIR
=
%FWDIR%
mllib
set
TOOLS_DIR
=
%FWDIR%
tools
set
YARN_DIR
=
%FWDIR%
yarn
set
STREAMING_DIR
=
%FWDIR%
streaming
set
PYSPARK_DIR
=
%FWDIR%
python
...
...
@@ -50,6 +51,7 @@ set CLASSPATH=%CLASSPATH%;%FWDIR%python\lib\*
set
CLASSPATH
=
%CLASSPATH%
;
%BAGEL_DIR%
\target\scala
-
%SCALA_VERSION%
\classes
set
CLASSPATH
=
%CLASSPATH%
;
%MLLIB_DIR%
\target\scala
-
%SCALA_VERSION%
\classes
set
CLASSPATH
=
%CLASSPATH%
;
%TOOLS_DIR%
\target\scala
-
%SCALA_VERSION%
\classes
set
CLASSPATH
=
%CLASSPATH%
;
%YARN_DIR%
\target\scala
-
%SCALA_VERSION%
\classes
rem Add hadoop conf dir - else FileSystem.*, etc fail
rem Note, this assumes that there is either a HADOOP_CONF_DIR or YARN_CONF_DIR which hosts
...
...
This diff is collapsed.
Click to expand it.
bin/compute-classpath.sh
+
2
−
0
View file @
cb4ef192
...
...
@@ -37,6 +37,7 @@ EXAMPLES_DIR="$FWDIR/examples"
BAGEL_DIR
=
"
$FWDIR
/bagel"
MLLIB_DIR
=
"
$FWDIR
/mllib"
TOOLS_DIR
=
"
$FWDIR
/tools"
YARN_DIR
=
"
$FWDIR
/yarn"
STREAMING_DIR
=
"
$FWDIR
/streaming"
PYSPARK_DIR
=
"
$FWDIR
/python"
...
...
@@ -72,6 +73,7 @@ function dev_classpath {
CLASSPATH
=
"
$CLASSPATH
:
$BAGEL_DIR
/target/scala-
$SCALA_VERSION
/classes"
CLASSPATH
=
"
$CLASSPATH
:
$MLLIB_DIR
/target/scala-
$SCALA_VERSION
/classes"
CLASSPATH
=
"
$CLASSPATH
:
$TOOLS_DIR
/target/scala-
$SCALA_VERSION
/classes"
CLASSPATH
=
"
$CLASSPATH
:
$YARN_DIR
/target/scala-
$SCALA_VERSION
/classes"
for
jar
in
`
find
$PYSPARK_DIR
/lib
-name
'*jar'
`
;
do
CLASSPATH
=
"
$CLASSPATH
:
$jar
"
done
...
...
This diff is collapsed.
Click to expand it.
project/SparkBuild.scala
+
6
−
6
View file @
cb4ef192
...
...
@@ -170,7 +170,7 @@ object SparkBuild extends Build {
"org.apache.mesos"
%
"mesos"
%
"0.12.1"
,
"io.netty"
%
"netty-all"
%
"4.0.0.Beta2"
,
"org.apache.derby"
%
"derby"
%
"10.4.2.0"
%
"test"
,
"org.apache.hadoop"
%
"hadoop-client"
%
"1.0.4"
,
"org.apache.hadoop"
%
"hadoop-client"
%
"1.0.4"
excludeAll
(
excludeJackson
,
excludeNetty
,
excludeAsm
)
,
"com.codahale.metrics"
%
"metrics-core"
%
"3.0.0"
,
"com.codahale.metrics"
%
"metrics-jvm"
%
"3.0.0"
,
"com.codahale.metrics"
%
"metrics-json"
%
"3.0.0"
,
...
...
@@ -239,12 +239,12 @@ object SparkBuild extends Build {
name
:=
"spark-yarn"
,
libraryDependencies
++=
Seq
(
// Exclude rule required for all ?
"org.apache.hadoop"
%
"hadoop-client"
%
"2.0.2-alpha"
excludeAll
(
excludeJackson
,
excludeNetty
),
"org.apache.hadoop"
%
"hadoop-yarn-api"
%
"2.0.2-alpha"
excludeAll
(
excludeJackson
,
excludeNetty
),
"org.apache.hadoop"
%
"hadoop-yarn-common"
%
"2.0.2-alpha"
excludeAll
(
excludeJackson
,
excludeNetty
),
"org.apache.hadoop"
%
"hadoop-yarn-client"
%
"2.0.2-alpha"
excludeAll
(
excludeJackson
,
excludeNetty
)
"org.apache.hadoop"
%
"hadoop-client"
%
"2.0.2-alpha"
excludeAll
(
excludeJackson
,
excludeNetty
,
excludeAsm
),
"org.apache.hadoop"
%
"hadoop-yarn-api"
%
"2.0.2-alpha"
excludeAll
(
excludeJackson
,
excludeNetty
,
excludeAsm
),
"org.apache.hadoop"
%
"hadoop-yarn-common"
%
"2.0.2-alpha"
excludeAll
(
excludeJackson
,
excludeNetty
,
excludeAsm
),
"org.apache.hadoop"
%
"hadoop-yarn-client"
%
"2.0.2-alpha"
excludeAll
(
excludeJackson
,
excludeNetty
,
excludeAsm
)
)
)
)
++
assemblySettings
++
extraAssemblySettings
def
extraAssemblySettings
()
=
Seq
(
test
in
assembly
:=
{})
++
Seq
(
mergeStrategy
in
assembly
:=
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment