[2018-08-01 13:06:30,038] {base_task_runner.py:98} INFO - Subtask: [2018-08-01 13:06:30,038] {bash_operator.py:101} INFO - python: can't open file '/home/airflow/gcs/dags/DS_quotes/test_convert_columns.py': [Errno 2] No such file or directory
[2018-08-01 13:06:30,634] {base_task_runner.py:98} INFO - Subtask: [2018-08-01 13:06:30,630] {bash_operator.py:105} INFO - Command exited with return code 2[2018-08-01 21:37:32,409] {models.py:1427} INFO - Executing <Task(BigQueryOperator): bq_to_bq> on 2018-07-30 14:30:00
[2018-08-01 21:37:32,409] {base_task_runner.py:115} INFO - Running: ['bash', '-c', u'airflow run dsquotes_upload13 bq_to_bq 2018-07-30T14:30:00 --job_id 1925 --raw -sd DAGS_FOLDER/ds_quotes_upload3.py']
[2018-08-01 21:37:35,187] {base_task_runner.py:98} INFO - Subtask: [2018-08-01 21:37:35,185] {__init__.py:45} INFO - Using executor CeleryExecutor
[2018-08-01 21:37:35,322] {base_task_runner.py:98} INFO - Subtask: [2018-08-01 21:37:35,320] {models.py:189} INFO - Filling up the DagBag from /home/airflow/gcs/dags/ds_quotes_upload3.py
[2018-08-01 21:37:36,054] {base_task_runner.py:98} INFO - Subtask: [2018-08-01 21:37:36,050] {models.py:2505} ERROR - /home/airflow/gcs/data/DS_quotes/sql_script/gclid_export.sql
[2018-08-01 21:37:36,061] {base_task_runner.py:98} INFO - Subtask: Traceback (most recent call last):
[2018-08-01 21:37:36,064] {base_task_runner.py:98} INFO - Subtask: File "/usr/local/lib/python2.7/site-packages/airflow/models.py", line 2503, in resolve_template_files
[2018-08-01 21:37:36,065] {base_task_runner.py:98} INFO - Subtask: setattr(self, attr, env.loader.get_source(env, content)[0])
[2018-08-01 21:37:36,067] {base_task_runner.py:98} INFO - Subtask: File "/usr/local/lib/python2.7/site-packages/jinja2/loaders.py", line 187, in get_source
[2018-08-01 21:37:36,067] {base_task_runner.py:98} INFO - Subtask: raise TemplateNotFound(template)
[2018-08-01 21:37:36,070] {base_task_runner.py:98} INFO - Subtask: TemplateNotFound: /home/airflow/gcs/data/DS_quotes/sql_script/gclid_export.sql
[2018-08-01 21:37:36,377] {base_task_runner.py:98} INFO - Subtask: Traceback (most recent call last):
[2018-08-01 21:37:36,379] {base_task_runner.py:98} INFO - Subtask: File "/usr/local/bin/airflow", line 27, in <module>
[2018-08-01 21:37:36,385] {base_task_runner.py:98} INFO - Subtask: args.func(args)
[2018-08-01 21:37:36,386] {base_task_runner.py:98} INFO - Subtask: File "/usr/local/lib/python2.7/site-packages/airflow/bin/cli.py", line 392, in run
[2018-08-01 21:37:36,388] {base_task_runner.py:98} INFO - Subtask: pool=args.pool,
[2018-08-01 21:37:36,388] {base_task_runner.py:98} INFO - Subtask: File "/usr/local/lib/python2.7/site-packages/airflow/utils/db.py", line 50, in wrapper
[2018-08-01 21:37:36,391] {base_task_runner.py:98} INFO - Subtask: result = func(*args, **kwargs)
[2018-08-01 21:37:36,392] {base_task_runner.py:98} INFO - Subtask: File "/usr/local/lib/python2.7/site-packages/airflow/models.py", line 1477, in _run_raw_task
[2018-08-01 21:37:36,392] {base_task_runner.py:98} INFO - Subtask: self.render_templates()
[2018-08-01 21:37:36,393] {base_task_runner.py:98} INFO - Subtask: File "/usr/local/lib/python2.7/site-packages/airflow/models.py", line 1760, in render_templates
[2018-08-01 21:37:36,393] {base_task_runner.py:98} INFO - Subtask: rendered_content = rt(attr, content, jinja_context)
[2018-08-01 21:37:36,396] {base_task_runner.py:98} INFO - Subtask: File "/usr/local/lib/python2.7/site-packages/airflow/models.py", line 2481, in render_template
[2018-08-01 21:37:36,397] {base_task_runner.py:98} INFO - Subtask: return jinja_env.get_template(content).render(**context)
[2018-08-01 21:37:36,397] {base_task_runner.py:98} INFO - Subtask: File "/usr/local/lib/python2.7/site-packages/jinja2/environment.py", line 812, in get_template
[2018-08-01 21:37:36,398] {base_task_runner.py:98} INFO - Subtask: return self._load_template(name, self.make_globals(globals))
[2018-08-01 21:37:36,401] {base_task_runner.py:98} INFO - Subtask: File "/usr/local/lib/python2.7/site-packages/jinja2/environment.py", line 774, in _load_template
[2018-08-01 21:37:36,402] {base_task_runner.py:98} INFO - Subtask: cache_key = self.loader.get_source(self, name)[1]
[2018-08-01 21:37:36,405] {base_task_runner.py:98} INFO - Subtask: File "/usr/local/lib/python2.7/site-packages/jinja2/loaders.py", line 187, in get_source
[2018-08-01 21:37:36,406] {base_task_runner.py:98} INFO - Subtask: raise TemplateNotFound(template)
[2018-08-01 21:37:36,406] {base_task_runner.py:98} INFO - Subtask: jinja2.exceptions.TemplateNotFound: /home/airflow/gcs/data/DS_quotes/sql_script/gclid_export.sql
--
You received this message because you are subscribed to the Google Groups "cloud-composer-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-composer-di...@googlegroups.com.
To post to this group, send email to cloud-compo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-composer-discuss/0b2c724b-f774-41d3-bb0b-7f783ab2d7e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-composer-discuss+unsub...@googlegroups.com.
[2018-08-02 10:49:48,021] {models.py:1427} INFO - Executing <Task(BashOperator): ds_run_conversion_script> on 2018-07-30 14:30:00
[2018-08-02 10:49:48,022] {base_task_runner.py:115} INFO - Running: ['bash', '-c', u'airflow run dsquotes_upload21 ds_run_conversion_script 2018-07-30T14:30:00 --job_id 1990 --raw -sd DAGS_FOLDER/DS_quotes_upload.py']
[2018-08-02 10:49:50,576] {base_task_runner.py:98} INFO - Subtask: [2018-08-02 10:49:50,575] {__init__.py:45} INFO - Using executor CeleryExecutor
[2018-08-02 10:49:50,704] {base_task_runner.py:98} INFO - Subtask: [2018-08-02 10:49:50,702] {models.py:189} INFO - Filling up the DagBag from /home/airflow/gcs/dags/DS_quotes_upload.py
[2018-08-02 10:49:51,742] {base_task_runner.py:98} INFO - Subtask: [2018-08-02 10:49:51,742] {bash_operator.py:70} INFO - Tmp dir root location:
[2018-08-02 10:49:51,743] {base_task_runner.py:98} INFO - Subtask: /tmp
[2018-08-02 10:49:51,749] {base_task_runner.py:98} INFO - Subtask: [2018-08-02 10:49:51,746] {bash_operator.py:80} INFO - Temporary script location: /tmp/airflowtmpOMTtMk//tmp/airflowtmpOMTtMk/ds_run_conversion_script_Y4o0J
[2018-08-02 10:49:51,750] {base_task_runner.py:98} INFO - Subtask: [2018-08-02 10:49:51,748] {bash_operator.py:88} INFO - Running command: python /home/airflow/gcs/data/DS/test_convert_columns.py
[2018-08-02 10:49:51,766] {base_task_runner.py:98} INFO - Subtask: [2018-08-02 10:49:51,764] {bash_operator.py:97} INFO - Output:
[2018-08-02 10:49:53,831] {base_task_runner.py:98} INFO - Subtask: [2018-08-02 10:49:53,830] {bash_operator.py:101} INFO - python: can't open file '/home/airflow/gcs/data/DS/test_convert_columns.py': [Errno 2] No such file or directory
[2018-08-02 10:49:54,555] {base_task_runner.py:98} INFO - Subtask: [2018-08-02 10:49:54,553] {bash_operator.py:105} INFO - Command exited with return code 2
[2018-08-02 10:49:54,658] {base_task_runner.py:98} INFO - Subtask: Traceback (most recent call last):
[2018-08-02 10:49:54,660] {base_task_runner.py:98} INFO - Subtask: File "/usr/local/bin/airflow", line 27, in <module>
[2018-08-02 10:49:54,661] {base_task_runner.py:98} INFO - Subtask: args.func(args)
[2018-08-02 10:49:54,664] {base_task_runner.py:98} INFO - Subtask: File "/usr/local/lib/python2.7/site-packages/airflow/bin/cli.py", line 392, in run
[2018-08-02 10:49:54,665] {base_task_runner.py:98} INFO - Subtask: pool=args.pool,
[2018-08-02 10:49:54,666] {base_task_runner.py:98} INFO - Subtask: File "/usr/local/lib/python2.7/site-packages/airflow/utils/db.py", line 50, in wrapper
[2018-08-02 10:49:54,667] {base_task_runner.py:98} INFO - Subtask: result = func(*args, **kwargs)
[2018-08-02 10:49:54,669] {base_task_runner.py:98} INFO - Subtask: File "/usr/local/lib/python2.7/site-packages/airflow/models.py", line 1492, in _run_raw_task
[2018-08-02 10:49:54,670] {base_task_runner.py:98} INFO - Subtask: result = task_copy.execute(context=context)
[2018-08-02 10:49:54,670] {base_task_runner.py:98} INFO - Subtask: File "/usr/local/lib/python2.7/site-packages/airflow/operators/bash_operator.py", line 109, in execute
[2018-08-02 10:49:54,671] {base_task_runner.py:98} INFO - Subtask: raise AirflowException("Bash command failed")
[2018-08-02 10:49:54,671] {base_task_runner.py:98} INFO - Subtask: airflow.exceptions.AirflowException: Bash command failedTemporary script location: /tmp/airflowtmpOMTtMk//tmp/airflowtmpOMTtMk/ds_run_conversion_script_Y4o0Jin your logs means. Another simpler thing you could try is to run the script directly in the operator, using the Python operator and instructions at link.
Hi Feng,
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-composer-di...@googlegroups.com.
To post to this group, send email to cloud-compo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-composer-discuss/0b2c724b-f774-41d3-bb0b-7f783ab2d7e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "cloud-composer-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-composer-di...@googlegroups.com.
To post to this group, send email to cloud-compo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-composer-discuss/7a89b5b7-5e01-48bb-ba2e-1ecc097bdb6a%40googlegroups.com.
Hi Feng,
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-composer-discuss+unsub...@googlegroups.com.
To post to this group, send email to cloud-compo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-composer-discuss/0b2c724b-f774-41d3-bb0b-7f783ab2d7e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "cloud-composer-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-composer-discuss+unsub...@googlegroups.com.
Hi Feng,
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-composer-di...@googlegroups.com.
To post to this group, send email to cloud-compo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-composer-discuss/0b2c724b-f774-41d3-bb0b-7f783ab2d7e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "cloud-composer-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-composer-di...@googlegroups.com.
To post to this group, send email to cloud-compo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-composer-discuss/7a89b5b7-5e01-48bb-ba2e-1ecc097bdb6a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "cloud-composer-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-composer-di...@googlegroups.com.
To post to this group, send email to cloud-compo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-composer-discuss/d963203f-ccaf-4ba4-b494-33d2278f6d85%40googlegroups.com.