airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bolke de Bruin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AIRFLOW-948) cannot run "airflow initdb"
Date Tue, 14 Mar 2017 19:21:41 GMT

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

Bolke de Bruin commented on AIRFLOW-948:
----------------------------------------

pip install airflow[hive]

> cannot run "airflow initdb"
> ---------------------------
>
>                 Key: AIRFLOW-948
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-948
>             Project: Apache Airflow
>          Issue Type: Bug
>    Affects Versions: Airflow 1.7.1
>         Environment: Debian Jessie 8.2, Python 2.7.9, Python 3.4.2
>            Reporter: Tony Kucera
>
> [2017-03-07 08:45:38,241] {__init__.py:36} INFO - Using executor SequentialExecutor
> [2017-03-07 08:45:38,538] {driver.py:120} INFO - Generating grammar tables from /usr/lib/python3.4/lib2to3/Grammar.txt
> [2017-03-07 08:45:38,578] {driver.py:120} INFO - Generating grammar tables from /usr/lib/python3.4/lib2to3/PatternGrammar.txt
> DB: sqlite:////root/airflow/airflow.db
> [2017-03-07 08:45:38,898] {db.py:222} INFO - Creating tables
> INFO  [alembic.runtime.migration] Context impl SQLiteImpl.
> INFO  [alembic.runtime.migration] Will assume non-transactional DDL.
> ERROR [airflow.models.DagBag] Failed to import: /usr/local/lib/python3.4/dist-packages/airflow/example_dags/example_twitter_dag.py
> Traceback (most recent call last):
>   File "/usr/local/lib/python3.4/dist-packages/airflow/models.py", line 247, in process_file
>     m = imp.load_source(mod_name, filepath)
>   File "/usr/lib/python3.4/imp.py", line 171, in load_source
>     module = methods.load()
>   File "<frozen importlib._bootstrap>", line 1220, in load
>   File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
>   File "<frozen importlib._bootstrap>", line 1129, in _exec
>   File "<frozen importlib._bootstrap>", line 1471, in exec_module
>   File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
>   File "/usr/local/lib/python3.4/dist-packages/airflow/example_dags/example_twitter_dag.py",
line 26, in <module>
>     from airflow.operators import BashOperator, HiveOperator, PythonOperator
> ImportError: cannot import name 'HiveOperator'



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message