airflow-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Iván Robla Albarrán <ivanro...@gmail.com>
Subject Problem with Run_as_user with Airflow
Date Fri, 22 Sep 2017 11:11:29 GMT
Hi,


I am trying to use the run_as_user and when a execute the job, i have this
problem

[2017-09-21 13:03:29,681] {base_task_runner.py:112} INFO - Running:
['bash', '-c', u'sudo -H -u uingigcb airflow run user_test uingigcb
2017-09-19T00:00:00 --job_id 33 --raw -sd DAGS_FOLDER/user_test.py
--cfg_path /tmp/tmpOJ2SIy']
[2017-09-21 13:03:30,191] {base_task_runner.py:95} INFO - Subtask:
[2017-09-21 13:03:30,191] {__init__.py:57} INFO - Using executor
SequentialExecutor
[2017-09-21 13:03:30,589] {base_task_runner.py:95} INFO - Subtask:
Traceback (most recent call last):
[2017-09-21 13:03:30,589] {base_task_runner.py:95} INFO - Subtask:
File "/opt/conda/2/airflow/bin/airflow", line 28, in <module>
[2017-09-21 13:03:30,590] {base_task_runner.py:95} INFO - Subtask:
args.func(args)
[2017-09-21 13:03:30,590] {base_task_runner.py:95} INFO - Subtask:
File "/opt/conda/2/airflow/lib/python2.7/site-packages/airflow/bin/cli.py",
line 329, in run
[2017-09-21 13:03:30,590] {base_task_runner.py:95} INFO - Subtask:
with open(args.cfg_path, 'r') as conf_file:
[2017-09-21 13:03:30,590] {base_task_runner.py:95} INFO - Subtask:
IOError: [Errno 13] Permission denied: '/tmp/tmpOJ2SIy'
[2017-09-21 13:03:34,724] {jobs.py:2083} INFO - Task exited with return code 1


The temporal dir is not create before the execution of the job

¿Could you help me?

Thanks!!!

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message