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
d2c86e71
Commit
d2c86e71
authored
11 years ago
by
KarthikTunga
Browse files
Options
Downloads
Patches
Plain Diff
SPARK-627 - reading --config argument
parent
d585613e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/slaves.sh
+16
-0
16 additions, 0 deletions
bin/slaves.sh
bin/spark-daemon.sh
+17
-0
17 additions, 0 deletions
bin/spark-daemon.sh
with
33 additions
and
0 deletions
bin/slaves.sh
+
16
−
0
View file @
d2c86e71
...
@@ -46,6 +46,22 @@ bin=`cd "$bin"; pwd`
...
@@ -46,6 +46,22 @@ bin=`cd "$bin"; pwd`
# spark-env.sh. Save it here.
# spark-env.sh. Save it here.
HOSTLIST
=
$SPARK_SLAVES
HOSTLIST
=
$SPARK_SLAVES
#check if conf dir passed as an argument
if
[
"
$1
"
==
"--config"
]
then
shift
conf_dir
=
$1
if
[
!
-d
"
$conf_dir
"
]
then
echo
"
$conf_dir
is not a valid directory"
echo
$usage
exit
1
else
export
SPARK_CONF_DIR
=
$conf_dir
fi
shift
fi
if
[
-f
"
${
SPARK_CONF_DIR
}
/spark-env.sh"
]
;
then
if
[
-f
"
${
SPARK_CONF_DIR
}
/spark-env.sh"
]
;
then
.
"
${
SPARK_CONF_DIR
}
/spark-env.sh"
.
"
${
SPARK_CONF_DIR
}
/spark-env.sh"
fi
fi
...
...
This diff is collapsed.
Click to expand it.
bin/spark-daemon.sh
+
17
−
0
View file @
d2c86e71
...
@@ -43,6 +43,23 @@ bin=`cd "$bin"; pwd`
...
@@ -43,6 +43,23 @@ bin=`cd "$bin"; pwd`
.
"
$bin
/spark-config.sh"
.
"
$bin
/spark-config.sh"
# get arguments
# get arguments
# check if conf dir passed as an argument
if
[
"
$1
"
==
"--config"
]
then
shift
conf_dir
=
$1
if
[
!
-d
"
$conf_dir
"
]
then
echo
"
$conf_dir
is not a valid directory"
echo
"FOUL :"
$usage
exit
1
else
export
SPARK_CONF_DIR
=
$conf_dir
fi
shift
fi
startStop
=
$1
startStop
=
$1
shift
shift
command
=
$1
command
=
$1
...
...
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