airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Riccomini (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AIRFLOW-119) "Template Not Found" error from QuboleOperator
Date Thu, 19 May 2016 02:40:12 GMT

    [ https://issues.apache.org/jira/browse/AIRFLOW-119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15290323#comment-15290323
] 

Chris Riccomini commented on AIRFLOW-119:
-----------------------------------------

Ah, I see my confusion. Here's the relevant code in models.py:

{code}
        if (
                isinstance(content, six.string_types) and
                any([content.endswith(ext) for ext in exts])):
            return jinja_env.get_template(content).render(**context)
        else:
            return self.render_template_from_field(attr, content, context, jinja_env)
{code}

Any templated variable ends in a template_ext, it will get loaded off the disk. Now what you're
saying makes sense to me.

> "Template Not Found" error from QuboleOperator
> ----------------------------------------------
>
>                 Key: AIRFLOW-119
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-119
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: operators
>    Affects Versions: Airflow 1.7.0
>            Reporter: Sumit Maheshwari
>              Labels: qds
>
> From the given example set, when I am using qbol operator for a hive workload, whose
script resides in s3 and ends with ".qbl", I am getting "Template Not Found" error. 
> Also it would be nice, if airflow always tags commands going from airflow to qds. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message