Details
Description
Hi
I am new user for aurora. When I follow latest hello world doc (http://aurora.apache.org/documentation/latest/getting-started/tutorial/) to run first hello world aurora job, I meet below issues:
D0605 16:17:01.721896 8320 process.py:155] [process: 8320=hello_world]: Error trying to execute hello_world: [Errno 13] Permission denied:
How to solve this issue?
The below is "thermos_runner.DEBUG" log in Mesos Agent:
D0605 16:17:01.721050 8320 process.py:445] Wrapped cmdline: ['/bin/bash', '-c', u'echo "----gang---hello aurora-------";']
D0605 16:17:01.721333 8320 process.py:455] ENV is: {'HOME': '/var/lib/mesos/slaves/65c1f16f-4292-464f-954c-3471fafdc988-S0/frameworks/b6da6477-5047-4d02-a323-101dd2e6d8b6-0000/executors/thermos-www-data-devel-hello_world-0-1d35ab50-a8eb-42da-a4f0-1de0bfbcd8fe/runs/b1d09fc1-ff87-4ec3-9341-85b21040f304/sandbox', 'LOGNAME': 'www-data', 'USER': 'www-data', 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'}
D0605 16:17:01.721896 8320 process.py:155] [process: 8320=hello_world]: Error trying to execute hello_world: [Errno 13] Permission denied: '/var/lib/mesos/slaves/65c1f16f-4292-464f-954c-3471fafdc988-S0/frameworks/b6da6477-5047-4d02-a323-101dd2e6d8b6-0000/executors/thermos-www-data-devel-hello_world-0-1d35ab50-a8eb-42da-a4f0-1de0bfbcd8fe/runs/b1d09fc1-ff87-4ec3-9341-85b21040f304/sandbox'
D0605 16:17:01.722104 8320 process.py:155] [process: 8320=hello_world]: Coordinator exiting.
The below is /etc/aurora/clusters.json:
[root@cloudpoc3 ~]# more /etc/aurora/clusters.json
[
]
+_*The below is hello_world.aurora file:*_+
pkg_path = '/opt/aurora_test/hello_world.py'
- we use a trick here to make the configuration change with
- the contents of the file, for simplicity. in a normal setting, packages would be
- versioned, and the version number would be changed in the configuration.
import hashlib
with open(pkg_path, 'rb') as f:
pkg_checksum = hashlib.md5(f.read()).hexdigest()
- copy hello_world.py into the local sandbox
install = Process(
name = 'fetch_package',
cmdline = 'cp %s . && echo %s && chmod +x hello_world.py' % (pkg_path, pkg_checksum))
- run the script
- cmdline = 'python -u hello_world.py'
hello_world = Process(
name = 'hello_world',
cmdline = 'echo "---gang-hello aurora------";')
- describe the task
hello_world_task = SequentialTask(
processes = [hello_world],
resources = Resources(cpu = 2, ram = 4096*MB, disk=4096*MB))
jobs = [
Service(cluster = 'devcluster',
environment = 'devel',
role = 'www-data',
name = 'hello_world',
task = hello_world_task)
]
From Mesos WebUI, it seems normal:
Please see attached screen1.jpg