Skip to content

Commit

Permalink
Main updated to add Executor URL as a flag in command line. Readme up…
Browse files Browse the repository at this point in the history
…dated accordingly
  • Loading branch information
sayden authored and mariocastroc committed May 27, 2016
1 parent c3a54de commit 90fee5d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,12 @@ To recall:
### Filling Executor information

```go
// URIs
executorUri := "http://s3-eu-west-1.amazonaws.com/enablers/executor"
//ExecutorInfo
executorUris := []*mesosproto.CommandInfo_URI{
{
Value: &executorUri,
Executable: proto.Bool(true),
},
{
Value: executorUri,
Executable: proto.Bool(true),
},
}

//Info
Expand Down Expand Up @@ -324,7 +323,7 @@ To finish our Scheduler, we have to fill a `mesosproto.FrameworkInfo` object:
//Framework
frameworkInfo := &mesosproto.FrameworkInfo{
User: proto.String("root"), // Mesos-go will fill in user.
Name: proto.String("Stratio Server Framework (Go)"),
Name: proto.String("Web Server Framework (Go)"),
}
```
Expand Down
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (

var (
master = flag.String("master", "127.0.0.1:5050", "Master address <ip:port>")
executorUri = flag.String("executor", "127.0.0.1:8080/executor", "Url to download the executor from")
)

func init() {
Expand All @@ -24,10 +25,9 @@ func init() {

func main() {
//ExecutorInfo
executorUri := "http://s3-eu-west-1.amazonaws.com/enablers/executor"
executorUris := []*mesosproto.CommandInfo_URI{
{
Value: &executorUri,
Value: executorUri,
Executable: proto.Bool(true),
},
}
Expand All @@ -52,7 +52,7 @@ func main() {
//Framework
frameworkInfo := &mesosproto.FrameworkInfo{
User: proto.String("root"), // Mesos-go will fill in user.
Name: proto.String("Stratio Server Framework (Go)"),
Name: proto.String("Web Server Framework (Go)"),
}

//Scheduler Driver
Expand Down

0 comments on commit 90fee5d

Please sign in to comment.