This page (revision-19) was last changed on 23-Apr-2022 17:05 by HarryMetske

This page was created on 23-Apr-2022 17:05 by unknown

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
19 23-Apr-2022 17:05 13 KB HarryMetske to previous
18 23-Apr-2022 17:05 13 KB Harry Metske to previous | to last
17 23-Apr-2022 17:05 13 KB Harry Metske to previous | to last
16 23-Apr-2022 17:05 14 KB Harry Metske to previous | to last
15 23-Apr-2022 17:05 14 KB Harry Metske to previous | to last
14 23-Apr-2022 17:05 14 KB Harry Metske to previous | to last
13 23-Apr-2022 17:05 13 KB Harry Metske to previous | to last
12 23-Apr-2022 17:05 11 KB Harry Metske to previous | to last
11 23-Apr-2022 17:05 11 KB Harry Metske to previous | to last
10 23-Apr-2022 17:05 10 KB Harry Metske to previous | to last
9 23-Apr-2022 17:05 10 KB Harry Metske to previous | to last
8 23-Apr-2022 17:05 10 KB Harry Metske to previous | to last
7 23-Apr-2022 17:05 10 KB Harry Metske to previous | to last
6 23-Apr-2022 17:05 9 KB Harry Metske to previous | to last
5 23-Apr-2022 17:05 9 KB Harry Metske to previous | to last
4 23-Apr-2022 17:05 8 KB Harry Metske to previous | to last
3 23-Apr-2022 17:05 6 KB Harry Metske to previous | to last
2 23-Apr-2022 17:05 5 KB Harry Metske to previous | to last
1 23-Apr-2022 17:05 4 KB unknown to last

Page References

Incoming links Outgoing links
Mesos...nobody

Version management

Difference between version and

At line 22 removed 2 lines
# ...
\\
At line 23 added 96 lines
See the Mesos configuration documentation at :
* [https://docs.mesosphere.com/reference/mesos-master/]
* [https://docs.mesosphere.com/reference/mesos-slave/]
* [http://mesos.apache.org/documentation/latest/configuration/]
I got it, create the following files (and restarting master and slave), as the doc says you can create files for flags :
''A file named the same name as the flag may be placed in the /etc/mesos-master directory. So a /etc/mesos-master/hostname file containing the value of 10.141.141.10 is like running the master with the option --hostname=10.141.141.10''
:
{{{
/etc/mesos/mesos-master/authenticate ==> true
/etc/mesos/mesos-master/authenticate_slaves ==> true
/etc/mesos/mesos-master/credentials ==> /etc/mesos/mesos-config/mesos-master.passwd
/etc/mesos/mesos-slave/credential ==> /etc/mesos/mesos-config/mesos-slave.passwd
/etc/mesos/mesos-config/mesos-master.passwd ==> user password
/etc/mesos/mesos-config/mesos-slave.passwd ==> user password
}}}
Use the __mesos state__ command to verify:
{{{
[root@node1 conf]# mesos state
{
"lost_tasks": 0,
"build_user": "root",
"pid": "master@192.168.33.10:5050",
"build_time": 1427387871,
"finished_tasks": 0,
"unregistered_frameworks": [],
"id": "20150421-050455-169978048-5050-945",
"git_sha": "e890e2414903bb69cab730d5204f10b10d2e91bb",
"build_date": "2015-03-26 16:37:51",
"hostname": "node1",
"version": "0.22.0",
"log_dir": "/var/log/mesos",
"killed_tasks": 0,
"leader": "master@192.168.33.10:5050",
"deactivated_slaves": 0,
"failed_tasks": 0,
"start_time": 1429592695.33795,
"git_tag": "0.22.0",
"staged_tasks": 0,
"completed_frameworks": [],
"elected_time": 1429592710.071,
"orphan_tasks": [],
"activated_slaves": 0,
"frameworks": [],
"flags": {
"help": "false",
"zk": "zk://localhost:2181/mesos",
"recovery_slave_removal_limit": "100%",
"port": "5050",
"logbufsecs": "0",
"authenticate": "true",
"work_dir": "/var/lib/mesos",
"slave_reregister_timeout": "10mins",
"authenticators": "crammd5",
"authenticate_slaves": "true",
"framework_sorter": "drf",
"version": "false",
"log_dir": "/var/log/mesos",
"logging_level": "INFO",
"log_auto_initialize": "true",
"registry_strict": "false",
"registry_fetch_timeout": "1mins",
"root_submissions": "true",
"webui_dir": "/usr/share/mesos/webui",
"registry": "replicated_log",
"credentials": "/etc/mesos-config/mesos-master.passwd",
"allocation_interval": "1secs",
"zk_session_timeout": "10secs",
"quorum": "1",
"user_sorter": "drf",
"quiet": "false",
"registry_store_timeout": "5secs",
"initialize_driver_logging": "true"
},
"started_tasks": 0,
"slaves": []
}
}}}
But it all fails :
{{{
Apr 21 06:11:48 node1 mesos-master[945]: W0421 06:11:48.951118 1175 master.cpp:3866] Failed to authenticate slave(1)@192.168.33.10:5051: Failed to get list of mechanisms: SASL(-4): no mechanism available: Internal Error -4 in server.c near line 1757
Apr 21 06:11:48 node1 mesos-master[945]: I0421 06:11:48.954591 1175 master.cpp:3813] Authenticating slave(1)@192.168.33.10:5051
Apr 21 06:11:48 node1 mesos-master[945]: I0421 06:11:48.954753 1175 master.cpp:3824] Using default CRAM-MD5 authenticator
Apr 21 06:11:48 node1 mesos-master[945]: I0421 06:11:48.955693 1175 authenticator.hpp:170] Creating new server SASL connection
Apr 21 06:11:48 node1 mesos-master[945]: W0421 06:11:48.957067 1175 authenticator.hpp:213] Failed to get list of mechanisms: no mechanism available
}}}
%%warning I reverted back to no security %%
At line 239 removed 97 lines
!! Authentication
See the Mesos configuration documentation at :
* [https://docs.mesosphere.com/reference/mesos-master/]
* [https://docs.mesosphere.com/reference/mesos-slave/]
* [http://mesos.apache.org/documentation/latest/configuration/]
I got it working by creating the following files (and restarting master and slave), as the doc says you can create files for flags :
''A file named the same name as the flag may be placed in the /etc/mesos-master directory. So a /etc/mesos-master/hostname file containing the value of 10.141.141.10 is like running the master with the option --hostname=10.141.141.10''
:
{{{
/etc/mesos/mesos-master/authenticate ==> true
/etc/mesos/mesos-master/authenticate_slaves ==> true
/etc/mesos/mesos-master/credentials ==> /etc/mesos/mesos-config/mesos-master.passwd
/etc/mesos/mesos-slave/credential ==> /etc/mesos/mesos-config/mesos-slave.passwd
/etc/mesos/mesos-config/mesos-master.passwd ==> user password
/etc/mesos/mesos-config/mesos-slave.passwd ==> user password
}}}
Use the __mesos state__ command to verify:
{{{
[root@node1 conf]# mesos state
{
"lost_tasks": 0,
"build_user": "root",
"pid": "master@192.168.33.10:5050",
"build_time": 1427387871,
"finished_tasks": 0,
"unregistered_frameworks": [],
"id": "20150421-050455-169978048-5050-945",
"git_sha": "e890e2414903bb69cab730d5204f10b10d2e91bb",
"build_date": "2015-03-26 16:37:51",
"hostname": "node1",
"version": "0.22.0",
"log_dir": "/var/log/mesos",
"killed_tasks": 0,
"leader": "master@192.168.33.10:5050",
"deactivated_slaves": 0,
"failed_tasks": 0,
"start_time": 1429592695.33795,
"git_tag": "0.22.0",
"staged_tasks": 0,
"completed_frameworks": [],
"elected_time": 1429592710.071,
"orphan_tasks": [],
"activated_slaves": 0,
"frameworks": [],
"flags": {
"help": "false",
"zk": "zk://localhost:2181/mesos",
"recovery_slave_removal_limit": "100%",
"port": "5050",
"logbufsecs": "0",
"authenticate": "true",
"work_dir": "/var/lib/mesos",
"slave_reregister_timeout": "10mins",
"authenticators": "crammd5",
"authenticate_slaves": "true",
"framework_sorter": "drf",
"version": "false",
"log_dir": "/var/log/mesos",
"logging_level": "INFO",
"log_auto_initialize": "true",
"registry_strict": "false",
"registry_fetch_timeout": "1mins",
"root_submissions": "true",
"webui_dir": "/usr/share/mesos/webui",
"registry": "replicated_log",
"credentials": "/etc/mesos-config/mesos-master.passwd",
"allocation_interval": "1secs",
"zk_session_timeout": "10secs",
"quorum": "1",
"user_sorter": "drf",
"quiet": "false",
"registry_store_timeout": "5secs",
"initialize_driver_logging": "true"
},
"started_tasks": 0,
"slaves": []
}
}}}
But it all fails :
{{{
Apr 21 06:11:48 node1 mesos-master[945]: W0421 06:11:48.951118 1175 master.cpp:3866] Failed to authenticate slave(1)@192.168.33.10:5051: Failed to get list of mechanisms: SASL(-4): no mechanism available: Internal Error -4 in server.c near line 1757
Apr 21 06:11:48 node1 mesos-master[945]: I0421 06:11:48.954591 1175 master.cpp:3813] Authenticating slave(1)@192.168.33.10:5051
Apr 21 06:11:48 node1 mesos-master[945]: I0421 06:11:48.954753 1175 master.cpp:3824] Using default CRAM-MD5 authenticator
Apr 21 06:11:48 node1 mesos-master[945]: I0421 06:11:48.955693 1175 authenticator.hpp:170] Creating new server SASL connection
Apr 21 06:11:48 node1 mesos-master[945]: W0421 06:11:48.957067 1175 authenticator.hpp:213] Failed to get list of mechanisms: no mechanism available
}}}
%%warning I reverted back to no security %%