Skip to content

Instantly share code, notes, and snippets.

@solidsnack
Created December 17, 2013 19:34
Show Gist options
  • Save solidsnack/8011197 to your computer and use it in GitHub Desktop.
Save solidsnack/8011197 to your computer and use it in GitHub Desktop.
Can be fixed with: /usr/local/sbin/mesos-slave --recover=cleanup
I1217 19:23:11.844920 2201 state.cpp:33] Recovering state from '/tmp/mesos/meta'
Incompatible slave info detected.
------------------------------------------------------------
Old slave info:
hostname: "ip-10-46-210-228.ec2.internal"
webui_hostname: "ip-10-46-210-228.ec2.internal"
resources {
name: "cpus"
type: SCALAR
scalar {
value: 1
}
role: "*"
}
resources {
name: "mem"
type: SCALAR
scalar {
value: 627
}
role: "*"
}
resources {
name: "disk"
type: SCALAR
scalar {
value: 7935
}
role: "*"
}
resources {
name: "ports"
type: RANGES
ranges {
range {
begin: 31000
end: 32000
}
}
role: "*"
}
id {
value: "201312171906-3838979594-5050-1012-0"
}
checkpoint: true
port: 5051
------------------------------------------------------------
New slave info:
hostname: "ip-10-46-210-228.ec2.internal"
webui_hostname: "ip-10-46-210-228.ec2.internal"
resources {
name: "cpus"
type: SCALAR
scalar {
value: 1
}
role: "*"
}
resources {
name: "mem"
type: SCALAR
scalar {
value: 627
}
role: "*"
}
resources {
name: "disk"
type: SCALAR
scalar {
value: 7935
}
role: "*"
}
resources {
name: "ports"
type: RANGES
ranges {
range {
begin: 31000
end: 32000
}
}
role: "*"
}
attributes {
name: "host"
type: TEXT
text {
value: "ip-10-46-210-228"
}
}
attributes {
name: "rack"
type: TEXT
text {
value: "a"
}
}
id {
value: "201312171906-3838979594-5050-1012-0"
}
checkpoint: true
port: 5051
------------------------------------------------------------
To properly upgrade the slave do as follows:
Step 1: Start the slave with --recover=cleanup.
Step 2: Wait till the slave kills all executors and shuts down.
Step 3: Start the upgraded slave with --recover=reconnect.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment