[ https://issues.apache.org/jira/browse/MESOS-6640?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Artem Harutyunyan updated MESOS-6640: ------------------------------------- Description: After {{work_dir}} became a required command line flag for {{mesos-agent}} it's only possible to launch {{mesos-local}} if MESOS_WORK_DIR environment variable is set. Using {{work_dir}} that {{mesos-local}} presumably allows to set does not work: {code} ~/src/mesos-install $ ./bin/mesos-local --work_dir=/tmp/foo I1124 13:26:42.609170 2103623680 replica.cpp:776] Replica recovered with log positions 0 -> 0 with 1 holes and 0 unlearned I1124 13:26:42.610047 1601536 recover.cpp:451] Starting replica recovery I1124 13:26:42.610213 1601536 recover.cpp:477] Replica is in EMPTY status I1124 13:26:42.615016 2138112 replica.cpp:673] Replica in EMPTY status received a broadcasted recover request from __req_res__(1)@10.204.3.193:5050 I1124 13:26:42.617058 1064960 master.cpp:380] Master 73762f1c-314b-4e7c-a7e9-b820bfd9dde7 (xkcd2358.railnet.train) started on 10.204.3.193:5050 I1124 13:26:42.617082 1064960 master.cpp:382] Flags at startup: --agent_ping_timeout="15secs" --agent_reregister_timeout="10mins" --allocation_interval="1secs" --allocator="HierarchicalDRF" --authenticate_agents="false" --authenticate_frameworks="false" --authenticate_http_frameworks="false" --authenticate_http_readonly="false" --authenticate_http_readwrite="false" --authenticators="crammd5" --authorizers="local" --framework_sorter="drf" --help="false" --hostname_lookup="true" --http_authenticators="basic" --initialize_driver_logging="true" --log_auto_initialize="true" --logbufsecs="0" --logging_level="INFO" --max_agent_ping_timeouts="5" --max_completed_frameworks="50" --max_completed_tasks_per_framework="1000" --quiet="false" --recovery_agent_removal_limit="100%" --registry="replicated_log" --registry_fetch_timeout="1mins" --registry_gc_interval="15mins" --registry_max_agent_age="2weeks" --registry_max_agent_count="102400" --registry_store_timeout="20secs" --registry_strict="false" --root_submissions="true" --user_sorter="drf" --version="false" --webui_dir="/Users/xkcd2358/src/mesos-install/share/mesos/webui" --work_dir="/tmp/foo" --zk_session_timeout="10secs" I1124 13:26:42.617246 2138112 recover.cpp:197] Received a recover response from a replica in EMPTY status I1124 13:26:42.617292 1064960 master.cpp:434] Master allowing unauthenticated frameworks to register I1124 13:26:42.617301 1064960 master.cpp:448] Master allowing unauthenticated agents to register I1124 13:26:42.617306 1064960 master.cpp:462] Master allowing HTTP frameworks to register without authentication I1124 13:26:42.617316 1064960 master.cpp:504] Using default 'crammd5' authenticator W1124 13:26:42.617328 1064960 authenticator.cpp:512] No credentials provided, authentication requests will be refused I1124 13:26:42.617334 1064960 authenticator.cpp:519] Initializing server SASL Failed to start a local cluster while loading agent flags from the environment: Flag 'work_dir' is required, but it was not provided ~/src/mesos-install $ {code} was: After {{work_dir}} became a required command line flag for {{mesos-agent}} it's only possible to launch {{mesos-local}} if MESOS_WORK_DIR environment variable is set. Using {{work_dir}} that {{mesos-local}} presumably allows to set does not work: {code} ~/src/mesos-install $ ./bin/mesos-local --work_dir=/tmp/foo I1124 13:26:42.609170 2103623680 replica.cpp:776] Replica recovered with log positions 0 -> 0 with 1 holes and 0 unlearned I1124 13:26:42.610047 1601536 recover.cpp:451] Starting replica recovery I1124 13:26:42.610213 1601536 recover.cpp:477] Replica is in EMPTY status I1124 13:26:42.615016 2138112 replica.cpp:673] Replica in EMPTY status received a broadcasted recover request from __req_res__(1)@10.204.3.193:5050 I1124 13:26:42.617058 1064960 master.cpp:380] Master 73762f1c-314b-4e7c-a7e9-b820bfd9dde7 (xkcd2358.railnet.train) started on 10.204.3.193:5050 I1124 13:26:42.617082 1064960 master.cpp:382] Flags at startup: --agent_ping_timeout="15secs" --agent_reregister_timeout="10mins" --allocation_interval="1secs" --allocator="HierarchicalDRF" --authenticate_agents="false" --authenticate_frameworks="false" --authenticate_http_frameworks="false" --authenticate_http_readonly="false" --authenticate_http_readwrite="false" --authenticators="crammd5" --authorizers="local" --framework_sorter="drf" --help="false" --hostname_lookup="true" --http_authenticators="basic" --initialize_driver_logging="true" --log_auto_initialize="true" --logbufsecs="0" --logging_level="INFO" --max_agent_ping_timeouts="5" --max_completed_frameworks="50" --max_completed_tasks_per_framework="1000" --quiet="false" --recovery_agent_removal_limit="100%" --registry="replicated_log" --registry_fetch_timeout="1mins" --registry_gc_interval="15mins" --registry_max_agent_age="2weeks" --registry_max_agent_count="102400" --registry_store_timeout="20secs" --registry_strict="false" --root_submissions="true" --user_sorter="drf" --version="false" --webui_dir="/Users/xkcd2358/src/mesos-install/share/mesos/webui" --work_dir="/tmp/foo" --zk_session_timeout="10secs" I1124 13:26:42.617246 2138112 recover.cpp:197] Received a recover response from a replica in EMPTY status I1124 13:26:42.617292 1064960 master.cpp:434] Master allowing unauthenticated frameworks to register I1124 13:26:42.617301 1064960 master.cpp:448] Master allowing unauthenticated agents to register I1124 13:26:42.617306 1064960 master.cpp:462] Master allowing HTTP frameworks to register without authentication I1124 13:26:42.617316 1064960 master.cpp:504] Using default 'crammd5' authenticator W1124 13:26:42.617328 1064960 authenticator.cpp:512] No credentials provided, authentication requests will be refused I1124 13:26:42.617334 1064960 authenticator.cpp:519] Initializing server SASL Failed to start a local cluster while loading agent flags from the environment: Flag 'work_dir' is required, but it was not provided ~/src/mesos-install $ {code} > mesos-local doesn't hande --work_dir correctly > ---------------------------------------------- > > Key: MESOS-6640 > URL: https://issues.apache.org/jira/browse/MESOS-6640 > Project: Mesos > Issue Type: Bug > Reporter: Artem Harutyunyan > Labels: beginner, newbie > Fix For: 1.2.0 > > > After {{work_dir}} became a required command line flag for {{mesos-agent}} > it's only possible to launch {{mesos-local}} if MESOS_WORK_DIR environment > variable is set. Using {{work_dir}} that {{mesos-local}} presumably allows > to set does not work: > {code} > ~/src/mesos-install $ ./bin/mesos-local --work_dir=/tmp/foo > I1124 13:26:42.609170 2103623680 replica.cpp:776] Replica recovered with log > positions 0 -> 0 with 1 holes and 0 unlearned > I1124 13:26:42.610047 1601536 recover.cpp:451] Starting replica recovery > I1124 13:26:42.610213 1601536 recover.cpp:477] Replica is in EMPTY status > I1124 13:26:42.615016 2138112 replica.cpp:673] Replica in EMPTY status > received a broadcasted recover request from __req_res__(1)@10.204.3.193:5050 > I1124 13:26:42.617058 1064960 master.cpp:380] Master > 73762f1c-314b-4e7c-a7e9-b820bfd9dde7 (xkcd2358.railnet.train) started on > 10.204.3.193:5050 > I1124 13:26:42.617082 1064960 master.cpp:382] Flags at startup: > --agent_ping_timeout="15secs" --agent_reregister_timeout="10mins" > --allocation_interval="1secs" --allocator="HierarchicalDRF" > --authenticate_agents="false" --authenticate_frameworks="false" > --authenticate_http_frameworks="false" --authenticate_http_readonly="false" > --authenticate_http_readwrite="false" --authenticators="crammd5" > --authorizers="local" --framework_sorter="drf" --help="false" > --hostname_lookup="true" --http_authenticators="basic" > --initialize_driver_logging="true" --log_auto_initialize="true" > --logbufsecs="0" --logging_level="INFO" --max_agent_ping_timeouts="5" > --max_completed_frameworks="50" --max_completed_tasks_per_framework="1000" > --quiet="false" --recovery_agent_removal_limit="100%" > --registry="replicated_log" --registry_fetch_timeout="1mins" > --registry_gc_interval="15mins" --registry_max_agent_age="2weeks" > --registry_max_agent_count="102400" --registry_store_timeout="20secs" > --registry_strict="false" --root_submissions="true" --user_sorter="drf" > --version="false" > --webui_dir="/Users/xkcd2358/src/mesos-install/share/mesos/webui" > --work_dir="/tmp/foo" --zk_session_timeout="10secs" > I1124 13:26:42.617246 2138112 recover.cpp:197] Received a recover response > from a replica in EMPTY status > I1124 13:26:42.617292 1064960 master.cpp:434] Master allowing unauthenticated > frameworks to register > I1124 13:26:42.617301 1064960 master.cpp:448] Master allowing unauthenticated > agents to register > I1124 13:26:42.617306 1064960 master.cpp:462] Master allowing HTTP frameworks > to register without authentication > I1124 13:26:42.617316 1064960 master.cpp:504] Using default 'crammd5' > authenticator > W1124 13:26:42.617328 1064960 authenticator.cpp:512] No credentials provided, > authentication requests will be refused > I1124 13:26:42.617334 1064960 authenticator.cpp:519] Initializing server SASL > Failed to start a local cluster while loading agent flags from the > environment: Flag 'work_dir' is required, but it was not provided > ~/src/mesos-install $ > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)