I have setup mesos and marathon on my local itself. Now, when I begin to start-up mesos master and slave, I get a lot of logs and they seem to start up because I am able to access the web-page http:localhost:5050, but when I start marathon, it gives me this error: Failed to start a local cluster while loading agent flags from the environment: Flag 'work_dir' is required, but it was not provided
. Though I start the mesos-agent and mesos-slave using the following command,
sudo ./bin/mesos-master.sh --ip=127.0.0.1 --work_dir=/var/lib/mesos
and sudo ./bin/mesos-agent.sh --master=127.0.0.1:5050 --work_dir=/var/lib/mesos
I am not sure where else do I have to configure this flag? Also, one peculiar thing that I see while starting my mesos master is this: Master bound to loopback interface! Cannot communicate with remote schedulers or agents. You might want to set '--ip' flag to a routable IP address.
I am not really sure why I am getting this? Any clues? Thanks!