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
d0533f70
Commit
d0533f70
authored
11 years ago
by
Patrick Wendell
Browse files
Options
Downloads
Patches
Plain Diff
Rename to Client
parent
3d939e5f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/src/main/scala/org/apache/spark/deploy/Client.scala
+3
-6
3 additions, 6 deletions
core/src/main/scala/org/apache/spark/deploy/Client.scala
core/src/main/scala/org/apache/spark/deploy/ClientArguments.scala
+2
-2
2 additions, 2 deletions
.../main/scala/org/apache/spark/deploy/ClientArguments.scala
with
5 additions
and
8 deletions
core/src/main/scala/org/apache/spark/deploy/
client/Driver
Client.scala
→
core/src/main/scala/org/apache/spark/deploy/Client.scala
+
3
−
6
View file @
d0533f70
...
...
@@ -15,22 +15,19 @@
* limitations under the License.
*/
package
org.apache.spark.deploy
.client
package
org.apache.spark.deploy
import
scala.collection.JavaConversions._
import
scala.collection.mutable.Map
import
scala.concurrent._
import
akka.actor._
import
akka.actor.Actor
import
org.apache.log4j.
{
Level
,
Logger
}
import
org.apache.spark.
{
Logging
,
SparkConf
}
import
org.apache.spark.deploy.
{
Command
,
DriverDescription
}
import
org.apache.spark.deploy.DeployMessages._
import
org.apache.spark.deploy.master.Master
import
org.apache.spark.util.
{
AkkaUtils
,
Utils
}
import
org.apache.log4j.
{
Logger
,
Level
}
import
akka.remote.RemotingLifecycleEvent
/**
* Actor that sends a single message to the standalone master and returns the response in the
...
...
@@ -61,7 +58,7 @@ class DriverActor(master: String, response: Promise[(Boolean, String)]) extends
object
DriverClient
{
def
main
(
args
:
Array
[
String
])
{
val
driverArgs
=
new
Driver
ClientArguments
(
args
)
val
driverArgs
=
new
ClientArguments
(
args
)
val
conf
=
new
SparkConf
()
if
(!
driverArgs
.
logLevel
.
isGreaterOrEqual
(
Level
.
WARN
))
{
...
...
This diff is collapsed.
Click to expand it.
core/src/main/scala/org/apache/spark/deploy/
client/Driver
ClientArguments.scala
→
core/src/main/scala/org/apache/spark/deploy/ClientArguments.scala
+
2
−
2
View file @
d0533f70
...
...
@@ -15,7 +15,7 @@
* limitations under the License.
*/
package
org.apache.spark.deploy
.client
package
org.apache.spark.deploy
import
scala.collection.mutable.ListBuffer
...
...
@@ -24,7 +24,7 @@ import org.apache.log4j.Level
/**
* Command-line parser for the driver client.
*/
private
[
spark
]
class
Driver
ClientArguments
(
args
:
Array
[
String
])
{
private
[
spark
]
class
ClientArguments
(
args
:
Array
[
String
])
{
val
defaultCores
=
1
val
defaultMemory
=
512
...
...
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