Created
April 1, 2016 21:50
-
-
Save jbrisbin/5c3c331865eef87dcb78c4d8b065ec13 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ dcos --log-level=DEBUG package install --app --options=config.json --yes riak | |
The Mesos Riak Framework implementation is an experimental beta and there may be bugs, incomplete features, incorrect documentation or other discrepancies. The Riak framework should have at least 2GB of RAM and 0.5 CPUs to perform successfully. | |
2016-04-01 21:50:29,621 /usr/lib/python2.7/site-packages/dcos/package.py:options:1282 - Generated default options: {u'riak': {u'node': {u'url': u'http://riak-tools.s3.amazonaws.com/riak/2.1/2.1.3/ubuntu/trusty/riak-2.1.3-amd64.tar.gz', u'mem': 8000.0, u'disk': 20000.0, u'patches-url': u'http://riak-tools.s3.amazonaws.com/riak_explorer/0.1/0.1.2.patch/ubuntu/trusty/riak_explorer-0.1.2.patch-amd64.tar.gz', u'cpus': 1.0}, u'auth-secret-file': u'', u'healthcheck-timeout-seconds': 20, u'constraints': [], u'zk': u'leader.mesos:2181', u'auth-principal': u'', u'framework-name': u'riak', u'hostname': u'riak.mesos', u'auth-provider': u'', u'director': {u'url': u'http://riak-tools.s3.amazonaws.com/riak_mesos_director/0.3/0.3.2/ubuntu/trusty/riak_mesos_director-0.3.2-amd64.tar.gz', u'mem': 1024.0, u'use-public': False, u'cpus': 0.5}, u'instances': 1, u'healthcheck-interval-seconds': 60, u'user': u'root', u'scheduler': {u'url': u'http://riak-tools.s3.amazonaws.com/riak_mesos_scheduler/0.2/0.2.0/ubuntu/trusty/riak_mesos_scheduler-0.2.0-amd64.tar.gz', u'mem': 2048.0, u'cpus': 0.5, u'constraints': [[u'hostname', u'UNIQUE']]}, u'executor': {u'url': u'http://riak-tools.s3.amazonaws.com/riak_mesos_executor/0.2/0.2.1/ubuntu/trusty/riak_mesos_executor-0.2.1-amd64.tar.gz', u'mem': 512.0, u'cpus': 0.1}, u'master': u'leader.mesos:5050', u'healthcheck-max-consecutive-failures': 5, u'role': u'riak', u'marathon': u'marathon.mesos:8080', u'healthcheck-grace-period-seconds': 300}} | |
2016-04-01 21:50:29,622 /usr/lib/python2.7/site-packages/dcos/package.py:options:1287 - Merged options: {u'riak': {u'node': {u'url': u'http://108.168.237.112:31955/artifactory/builds/riak/riak_ts.1.3.0rc2/ubuntu/14.04/riak_ts.1.3.0rc2.tgz', u'mem': 8000.0, u'disk': 20000.0, u'patches-url': u'http://108.168.237.112:31955/artifactory/builds/riak-explorer/0.1.1.patch/mesos/0.26/ubuntu/14.04/riak-explorer-0.1.1.patch.tgz', u'cpus': 1.0}, u'auth-secret-file': u'', u'healthcheck-timeout-seconds': 20, u'zk': u'leader.mesos:2181', u'auth-principal': u'riak', u'framework-name': u'riak', u'hostname': u'riak.mesos', u'auth-provider': u'', u'failover-timeout': 10000.0, u'director': {u'url': u'http://108.168.237.112:31955/artifactory/builds/riak-mesos-director/0.3.1/mesos/0.26/ubuntu/14.04/riak-mesos-director-0.3.1.tgz', u'mem': 1024.0, u'use-public': False, u'cpus': 0.5}, u'instances': 1, u'healthcheck-interval-seconds': 60, u'user': u'root', u'scheduler': {u'url': u'http://108.168.237.112:31955/artifactory/builds/riak-mesos-scheduler/0.1.0/mesos/0.26/ubuntu/14.04/riak-mesos-scheduler-0.1.0.tgz', u'mem': 2048.0, u'cpus': 0.5, u'constraints': []}, u'executor': {u'url': u'http://108.168.237.112:31955/artifactory/builds/riak-mesos-executor/0.2.0/mesos/0.26/ubuntu/14.04/riak-mesos-executor-0.2.0.tgz', u'mem': 512.0, u'cpus': 0.1}, u'healthcheck-grace-period-seconds': 300, u'master': u'leader.mesos:5050', u'healthcheck-max-consecutive-failures': 5, u'role': u'riak', u'marathon': u'marathon.mesos:8080', u'constraints': []}} | |
Installing Marathon app for package [riak] version [0.4.1] | |
2016-04-01 21:50:29,623 /usr/lib/python2.7/site-packages/dcos/marathon.py:create_client:27 - Creating marathon client with: 'http://leader.mesos:8080' | |
2016-04-01 21:50:29,623 /usr/lib/python2.7/site-packages/dcos/http.py:_request:67 - Sending HTTP ['get'] to ['http://leader.mesos:8080/v2/info']: {'Accept': 'application/json'} | |
2016-04-01 21:50:29,626 /usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:_new_conn:207 - Starting new HTTP connection (1): leader.mesos | |
2016-04-01 21:50:29,822 /usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:_make_request:387 - "GET /v2/info HTTP/1.1" 200 None | |
2016-04-01 21:50:29,823 /usr/lib/python2.7/site-packages/dcos/http.py:_request:89 - Received HTTP response [200]: {'Transfer-Encoding': 'chunked', 'Expires': '0', 'Server': 'Jetty(9.3.z-SNAPSHOT)', 'Pragma': 'no-cache', 'Cache-Control': 'no-cache, no-store, must-revalidate', 'Date': 'Fri, 01 Apr 2016 21:50:03 GMT', 'Content-Type': 'application/json; qs=2', 'X-Marathon-Leader': 'http://198.23.95.242:8080'} | |
2016-04-01 21:50:29,823 /usr/lib/python2.7/site-packages/dcos/util.py:timer:576 - duration: dcos.http._request: 0.20s | |
2016-04-01 21:50:29,826 /usr/lib/python2.7/site-packages/dcos/util.py:render_mustache_json:526 - Rendered mustache template: { | |
"id":"riak", | |
"instances": 1, | |
"cpus": 0.5, | |
"mem": 2048.0, | |
"ports":[ 0 ], | |
"uris": ["http://108.168.237.112:31955/artifactory/builds/riak-mesos-scheduler/0.1.0/mesos/0.26/ubuntu/14.04/riak-mesos-scheduler-0.1.0.tgz", "http://108.168.237.112:31955/artifactory/builds/riak-mesos-executor/0.2.0/mesos/0.26/ubuntu/14.04/riak-mesos-executor-0.2.0.tgz", "http://108.168.237.112:31955/artifactory/builds/riak/riak_ts.1.3.0rc2/ubuntu/14.04/riak_ts.1.3.0rc2.tgz", "http://108.168.237.112:31955/artifactory/builds/riak-explorer/0.1.1.patch/mesos/0.26/ubuntu/14.04/riak-explorer-0.1.1.patch.tgz"], | |
"cmd":"./riak_mesos_scheduler/bin/ermf-scheduler", | |
"env": { | |
"RIAK_MESOS_NAME": "riak" | |
,"RIAK_MESOS_ZK": "leader.mesos:2181" | |
,"RIAK_MESOS_MASTER": "leader.mesos:5050" | |
,"RIAK_MESOS_USER": "root" | |
,"RIAK_MESOS_PRINCIPAL": "riak" | |
,"RIAK_MESOS_ROLE": "riak" | |
,"RIAK_MESOS_HOSTNAME": "riak.mesos" | |
,"RIAK_MESOS_FAILOVER_TIMEOUT": 10000.0 | |
,"RIAK_MESOS_NODE_CPUS": 1.0 | |
,"RIAK_MESOS_NODE_MEM": 8000.0 | |
,"RIAK_MESOS_NODE_DISK": 20000.0 | |
,"RIAK_MESOS_EXECUTOR_CPUS": 0.1 | |
,"RIAK_MESOS_EXECUTOR_MEM": 512.0 | |
}, | |
"healthChecks": [ | |
{ | |
"path": "/healthcheck", | |
"portIndex": 0, | |
"protocol": "HTTP", | |
"gracePeriodSeconds": 300, | |
"intervalSeconds": 60, | |
"timeoutSeconds": 20, | |
"maxConsecutiveFailures": 5, | |
"ignoreHttp1xx": false | |
}] | |
} | |
2016-04-01 21:50:29,830 /usr/lib/python2.7/site-packages/dcos/http.py:_request:67 - Sending HTTP ['post'] to ['http://leader.mesos:8080/v2/apps']: {'Accept': 'application/json'} | |
2016-04-01 21:50:29,834 /usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:_new_conn:207 - Starting new HTTP connection (1): leader.mesos | |
2016-04-01 21:50:30,144 /usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:_make_request:387 - "POST /v2/apps HTTP/1.1" 400 None | |
2016-04-01 21:50:30,146 /usr/lib/python2.7/site-packages/dcos/http.py:_request:89 - Received HTTP response [400]: {'Transfer-Encoding': 'chunked', 'Expires': '0', 'Server': 'Jetty(9.3.z-SNAPSHOT)', 'Pragma': 'no-cache', 'Cache-Control': 'no-cache, no-store, must-revalidate', 'Date': 'Fri, 01 Apr 2016 21:50:03 GMT', 'Content-Type': 'application/json', 'X-Marathon-Leader': 'http://198.23.95.242:8080'} | |
2016-04-01 21:50:30,147 /usr/lib/python2.7/site-packages/dcos/util.py:timer:576 - duration: dcos.http._request: 0.32s | |
Error on request [POST http://leader.mesos:8080/v2/apps]: HTTP 400: Bad Request: | |
{ | |
"details": [ | |
{ | |
"errors": [ | |
"error.expected.jsstring" | |
], | |
"path": "/env/RIAK_MESOS_EXECUTOR_CPUS" | |
}, | |
{ | |
"errors": [ | |
"error.expected.jsstring" | |
], | |
"path": "/env/RIAK_MESOS_NODE_MEM" | |
}, | |
{ | |
"errors": [ | |
"error.expected.jsstring" | |
], | |
"path": "/env/RIAK_MESOS_EXECUTOR_MEM" | |
}, | |
{ | |
"errors": [ | |
"error.expected.jsstring" | |
], | |
"path": "/env/RIAK_MESOS_FAILOVER_TIMEOUT" | |
}, | |
{ | |
"errors": [ | |
"error.expected.jsstring" | |
], | |
"path": "/env/RIAK_MESOS_NODE_DISK" | |
}, | |
{ | |
"errors": [ | |
"error.expected.jsstring" | |
], | |
"path": "/env/RIAK_MESOS_NODE_CPUS" | |
} | |
], | |
"message": "Invalid JSON" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment