Removed cluster example as we replaced the need to create the Cluster object.
This commit is contained in:
parent
35111af66d
commit
f60aa3dd88
1 changed files with 0 additions and 8 deletions
|
@ -92,14 +92,6 @@ func main() {
|
||||||
//check if zkUrl is available.
|
//check if zkUrl is available.
|
||||||
if zkUrl != "" {
|
if zkUrl != "" {
|
||||||
fmt.Println("zkUrl: ", zkUrl)
|
fmt.Println("zkUrl: ", zkUrl)
|
||||||
cluster := &realis.Cluster{Name: "example",
|
|
||||||
AuthMechanism: "UNAUTHENTICATED",
|
|
||||||
ZK: zkUrl,
|
|
||||||
SchedZKPath: "/aurora/scheduler",
|
|
||||||
AgentRunDir: "latest",
|
|
||||||
AgentRoot: "/var/lib/mesos",
|
|
||||||
}
|
|
||||||
fmt.Printf("cluster: %+v \n", cluster)
|
|
||||||
clientOptions = append(clientOptions, realis.ZKUrl(zkUrl))
|
clientOptions = append(clientOptions, realis.ZKUrl(zkUrl))
|
||||||
} else {
|
} else {
|
||||||
clientOptions = append(clientOptions, realis.SchedulerUrl(url))
|
clientOptions = append(clientOptions, realis.SchedulerUrl(url))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue