Description
run es on mesos,executor start fail with logs:
LIBPROCESS_IP is set to '10.10.11.26'
Expecting 'MESOS_SLAVE_PID' to be set in the environment.
my mesos cluster use ip 192.168.2.* ,but executor use another nic ip:10.10.11.*,don't know why!
any help?
docker logs:
[root@nj-p2-192-168-2-26 64c52a38-646f-49a1-a335-36fbd067afe2]# cat stderr
I0109 16:18:24.203261 58379 exec.cpp:162] Version: 1.3.1
I0109 16:18:24.220844 58396 exec.cpp:237] Executor registered on agent 1cd3bfc5-adf8-41ee-aacc-751203f6184b-S2
Expecting 'MESOS_SLAVE_PID' to be set in the environment.
E0109 16:18:26.115447 58417 process.cpp:956] Failed to accept socket: future discarded
[root@nj-p2-192-168-2-26 64c52a38-646f-49a1-a335-36fbd067afe2]# cat stdout
Registered docker executor on 192.168.2.26
Starting task elasticsearch_192.168.2.26_20180109T081823.986Z
LIBPROCESS_IP is set to '10.10.11.26'
marathon json:
[root@nj-p2-192-168-1-160 liyuan]# cat elasticsearch-scheduler.json
{
"ports": [
26666
],
"id": "elasticsearch-scheduler",
"cpus": 0.2,
"mem": 512.0,
"instances": 1,
"requirePorts": true,
"constraints": [["hostname", "LIKE", "192.168.2.25"]],
"container": {
"type": "DOCKER",
"docker": {
"image": "mesos/elasticsearch-scheduler",
"network": "HOST",
"privileged": true
}
},
"args": ["--zookeeperMesosUrl", "zk://192.168.1.160:2181,192.168.1.7:2181,192.168.1.67:2181/mesos", "--webUiPort", "26666", "--elasticsearchPorts", "26664,26665", "--dataDir", "/usr/local/inveno/elasticsearchdata", "--elasticsearchClusterName", "esbigdata", "--elasticsearchCpu", "3", "--elasticsearchDisk", "409600", "--elasticsearchNodes", "3", "--elasticsearchRam", "10240", "--elasticsearchDockerImage", "mesos/elasticsearch-executor"],
"env": {
"JAVA_OPTS": "-Xms128m -Xmx256m"
},
"healthChecks": [
{
"portIndex": 0,
"protocol": "TCP",
"gracePeriodSeconds": 300,
"intervalSeconds": 60,
"timeoutSeconds": 20,
"maxConsecutiveFailures": 3
}
]
}
my host ip:
[root@nj-p2-192-168-2-25 /tmp]# ifconfig
docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
ether 02:42:83:2e:5a:69 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
em1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.10.11.25 netmask 255.255.252.0 broadcast 10.10.11.255
inet6 fe80::8218:44ff:fee1:9b8c prefixlen 64 scopeid 0x20
ether 80:18:44:e1:9b:8c txqueuelen 1000 (Ethernet)
RX packets 1901557 bytes 1366494037 (1.2 GiB)
RX errors 0 dropped 17497 overruns 0 frame 0
TX packets 520553 bytes 39134749 (37.3 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 41
em2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.2.25 netmask 255.255.252.0 broadcast 192.168.3.255
inet6 fe80::8218:44ff:fee1:9b8d prefixlen 64 scopeid 0x20
ether 80:18:44:e1:9b:8d txqueuelen 1000 (Ethernet)
RX packets 22630085 bytes 3568517410 (3.3 GiB)
RX errors 0 dropped 17847 overruns 0 frame 0
TX packets 8589209 bytes 2147505623 (2.0 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 45