[
https://issues.apache.org/jira/browse/AIRFLOW-2376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16471190#comment-16471190
]
Siddharth Anand commented on AIRFLOW-2376:
------------------------------------------
Can you provide all steps to reproduce? Are you getting this when starting the
scheduler with LocalExecutor?
> backports.configparser.NoSectionError: No section: u'hive'
> ----------------------------------------------------------
>
> Key: AIRFLOW-2376
> URL: https://issues.apache.org/jira/browse/AIRFLOW-2376
> Project: Apache Airflow
> Issue Type: Improvement
> Components: configuration, core
> Affects Versions: 1.10.0, 2.0.0
> Reporter: Ruslan Dautkhanov
> Assignee: Tao Feng
> Priority: Major
>
> Airflow master throws
> {noformat}
> [2018-04-25 11:42:42,452] {models.py:1509} INFO - Executing
> <Task(DummyOperator): start> on 2018-04-25T10:28:11.172589-06:00
> [2018-04-25 11:42:42,452] {base_task_runner.py:123} INFO - Running: ['bash',
> '-c', u'airflow run DISCOVER-Oracle-Load-Mar2017-v1 start
> 2018-04-25T10:28:11.172589-06:00 --job_id 545 --pool DISCOVER-Prod --raw -sd
> DAGS_FOLDER/discover/discover-ora-load-2.py --cfg_path /tmp/tmpyI6FvX']
> [2018-04-25 11:42:43,241] {base_task_runner.py:106} INFO - Job 545: Subtask
> start
> /opt/cloudera/parcels/Anaconda/lib/python2.7/site-packages/psycopg2/__init__.py:144:
> UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in
> order to keep installing from binary please use "pip install psycopg2-binary"
> instead. For details see:
> <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.
> [2018-04-25 11:42:43,242] {base_task_runner.py:106} INFO - Job 545: Subtask
> start """)
> [2018-04-25 11:42:43,355] {base_task_runner.py:106} INFO - Job 545: Subtask
> start [2018-04-25 11:42:43,353] {__init__.py:50} INFO - Using executor
> LocalExecutor
> [2018-04-25 11:42:43,546] {base_task_runner.py:106} INFO - Job 545: Subtask
> start Traceback (most recent call last):
> [2018-04-25 11:42:43,546] {base_task_runner.py:106} INFO - Job 545: Subtask
> start File "/opt/cloudera/parcels/Anaconda/bin/airflow", line 6, in <module>
> [2018-04-25 11:42:43,546] {base_task_runner.py:106} INFO - Job 545: Subtask
> start exec(compile(open(__file__).read(), __file__, 'exec'))
> [2018-04-25 11:42:43,546] {base_task_runner.py:106} INFO - Job 545: Subtask
> start File
> "/opt/airflow/airflow-20180420/src/apache-airflow/airflow/bin/airflow", line
> 32, in <module>
> [2018-04-25 11:42:43,547] {base_task_runner.py:106} INFO - Job 545: Subtask
> start args.func(args)
> [2018-04-25 11:42:43,547] {base_task_runner.py:106} INFO - Job 545: Subtask
> start File
> "/opt/airflow/airflow-20180420/src/apache-airflow/airflow/utils/cli.py", line
> 77, in wrapper
> [2018-04-25 11:42:43,547] {base_task_runner.py:106} INFO - Job 545: Subtask
> start raise e
> [2018-04-25 11:42:43,547] {base_task_runner.py:106} INFO - Job 545: Subtask
> start backports.configparser.NoSectionError: No section: u'hive'
> [2018-04-25 11:42:47,415] {logging_mixin.py:95} INFO - [2018-04-25
> 11:42:47,415] {jobs.py:2548} INFO - Task exited with return code 1
> {noformat}
> Adding empty "hive" section into airflow.cfg works around this.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)