You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Ash Berlin-Taylor (JIRA)" <ji...@apache.org> on 2019/04/23 08:40:00 UTC
[jira] [Closed] (AIRFLOW-4378) EXCEPTION: ValueError: Unable to
configure handler 'processor': expected token ':', got '}'
[ https://issues.apache.org/jira/browse/AIRFLOW-4378?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ash Berlin-Taylor closed AIRFLOW-4378.
--------------------------------------
Resolution: Not A Bug
The file you copied from Github is a template that is rendered before being written out.
When airflow is first run if the config file doesn't exist it will write out a file containing the default values.
A doc patch to make this clearer/less confusing for the next person would be welcome!
> EXCEPTION: ValueError: Unable to configure handler 'processor': expected token ':', got '}'
> -------------------------------------------------------------------------------------------
>
> Key: AIRFLOW-4378
> URL: https://issues.apache.org/jira/browse/AIRFLOW-4378
> Project: Apache Airflow
> Issue Type: Bug
> Components: core
> Affects Versions: 1.10.3
> Environment: CentOS 7.6.x
> Python 3.6.7 (via Anaconda VENV)
> Reporter: NOELLE MILTON VEGA
> Priority: Major
> Labels: bug
>
> Hello Friends:
> I'm new to AirFlow and was following the tutorial when I experienced the following.
> When I perform the following setup sequence, I receive the exception shown:
>
> {code:java}
> jdoe@CentOS$ conda install apache-airflow
> # This is performed from within a Python 3.6.7 Anaconda venv.
> jdoe@CentOS$ pip freeze | egrep -i 'airflow|jinja'
> apache-airflow==1.10.3
> Jinja2==2.10
> # pip(1) and conda(1) above are supplied from the virtual environment.
> jdoe@CentOS$ export AIRFLOW_HOME=/home/jdoe/agile.ds.d/stack.d/airflow.d; \
> export AIRFLOW_CONFIG=${AIRFLOW_HOME}/airflow.cfg
> # airflow.cfg above was copy/pasted from default_airflow.cfg on GitHub.
> jdoe@CentOS$ mkdir -p ${AIRFLOW_HOME}/dags/
> Both of the following statements emit the exception shown below:
> jdoe@CentOS$ python3 -c 'from airflow import DAG' # --AND--
> jdoe@CentOS$ python3 -c 'from airflow.operators.bash_operator import BashOperator'{code}
>
> ----
>
> {code:java}
> EXCEPTION:
> ValueError: Unable to configure handler 'processor': expected token ':', got '}'{code}
> Any ideas or direction?
> Thank you!
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)