Skip to content
Snippets Groups Projects
Commit 893bad90 authored by Imran Rashid's avatar Imran Rashid
Browse files

use appid instead of frameworkid; simplify stupid condition

parent 8f18e7e8
No related branches found
No related tags found
No related merge requests found
......@@ -68,9 +68,9 @@ private[spark] object StandaloneExecutorBackend {
}
def main(args: Array[String]) {
if (!(args.length >= 4)) {
if (args.length < 4) {
//the reason we allow the last frameworkId argument is to make it easy to kill rogue executors
System.err.println("Usage: StandaloneExecutorBackend <driverUrl> <executorId> <hostname> <cores> [<frameworkid>]")
System.err.println("Usage: StandaloneExecutorBackend <driverUrl> <executorId> <hostname> <cores> [<appid>]")
System.exit(1)
}
run(args(0), args(1), args(2), args(3).toInt)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment