Граф коммитов

61 Коммитов

Автор SHA1 Сообщение Дата
David Cavaletto f6734b3b85
Enable Sphinx spellcheck for doc generation (#10280) 2020-08-12 21:30:37 +01:00
Kamil Breguła 1d36b0303b
Fix references in docs (#8984) 2020-05-23 17:43:04 +02:00
Kamil Breguła 97a429f9d0
[AIRFLOW-6714] Remove magic comments about UTF-8 (#7338) 2020-02-02 22:18:19 +01:00
Kamil Breguła 0481b9a957
[AIRFLOW-6539][AIP-21] Move Apache classes to providers.apache package (#7142)
* [AIP-21] Move contrib.hooks.pinot_hook providers.apache.pinot.hooks.pinot

* [AIP-21] Move contrib.hooks.spark_jdbc_hook providers.apache.spark.hooks.spark_jdbc

* [AIP-21] Move contrib.hooks.spark_jdbc_script providers.apache.spark.hooks.spark_jdbc_script

* [AIP-21] Move contrib.hooks.spark_sql_hook providers.apache.spark.hooks.spark_sql

* [AIP-21] Move contrib.hooks.spark_submit_hook providers.apache.spark.hooks.spark_submit

* [AIP-21] Move contrib.hooks.sqoop_hook providers.apache.sqoop.hooks.sqoop

* [AIP-21] Move contrib.operators.druid_operator providers.apache.druid.operators.druid

* [AIP-21] Move contrib.operators.spark_jdbc_operator providers.apache.spark.operators.spark_jdbc

* [AIP-21] Move contrib.operators.spark_sql_operator providers.apache.spark.operators.spark_sql

* [AIP-21] Move contrib.operators.spark_submit_operator providers.apache.spark.operators.spark_submit

* [AIP-21] Move contrib.operators.sqoop_operator providers.apache.sqoop.operators.sqoop

* [AIP-21] Move contrib.sensors.hdfs_sensor providers.apache.hdfs.sensors.hdfs

* [AIP-21] Move hooks.druid_hook providers.apache.druid.hooks.druid

* [AIP-21] Move hooks.hdfs_hook providers.apache.hdfs.hooks.hdfs

* [AIP-21] Move hooks.hive_hooks providers.apache.hive.hooks.hive

* [AIP-21] Move hooks.pig_hook providers.apache.pig.hooks.pig

* [AIP-21] Move hooks.webhdfs_hook providers.apache.hdfs.hooks.webhdfs

* [AIP-21] Move operators.druid_check_operator providers.apache.druid.operators.druid_check

* [AIP-21] Move operators.hive_operator providers.apache.hive.operators.hive

* [AIP-21] Move operators.hive_stats_operator providers.apache.hive.operators.hive_stats

* [AIP-21] Move operators.pig_operator providers.apache.pig.operators.pig

* [AIP-21] Move sensors.hive_partition_sensor providers.apache.hive.sensors.hive_partition

* [AIP-21] Move sensors.metastore_partition_sensor providers.apache.hive.sensors.metastore_partition

* [AIP-21] Move sensors.named_hive_partition_sensor providers.apache.hive.sensors.named_hive_partition

* [AIP-21] Move sensors.web_hdfs_sensor providers.apache.hdfs.sensors.web_hdfs

* Update docs

* [AIP-21] Move sensors.hdfs_sensor providers.apache.hdfs.sensors.hdfs
2020-01-12 15:51:30 +01:00
Jarek Potiuk b355fd65ac
[AIRFLOW-6140] Add missing types for some core classes (#6702) 2019-12-04 21:35:07 +01:00
Jarek Potiuk a36cfe049a
[AIRFLOW-6004] Untangle Executors class to avoid cyclic imports (#6596)
There are cyclic imports detected seemingly randomly by pylint checks when some
    of the PRs are run in CI

    It was not deterministic because pylint usually uses as many processors as
    many are available and it splits the list of .py files between the separate
    pylint processors - depending on how the split is done, pylint check might
    or might not detect it. The cycle is always detected when all files are used.

    In order to make it more deterministic, all pylint and mypy errors were resolved
    in all executors package and in dag_processor.

    At the same time plugins_manager had also been moved out of the executors
    and all of the operators/hooks/sensors/macros because it was also causing
    cyclic dependencies and it's far easier to untangle those dependencies
    in executor when we move the intialisation of all plugins to plugins_manager.

    Additionally require_serial is set in pre-commit configuration to
    make sure cycle detection is deterministic.
2019-12-03 16:02:20 +01:00
Jarek Potiuk 2f2f89c148
[AIRFLOW-6139] Consistent spaces in pylint enable/disable (#6701) 2019-12-01 12:26:10 +01:00
Tomek eeec376b57 [AIRFLOW-5838] Make all __init__ pylint compatible (#6503) 2019-11-05 11:39:23 +01:00
Kevin Yang d719e1fd67 [AIRFLOW-5362] Reorder imports (#5944) 2019-10-02 16:30:03 +01:00
Pedro Ortiz Monasterio 3c064d4416 AIRFLOW-5492: added missing docstrings (#6107) 2019-09-15 14:40:00 -07:00
Ash Berlin-Taylor 3dcfe2801c
[AIRFLOW-4343] Show warning in UI if scheduler is not running (#5127)
Now that the webserver is more stateless, if the scheduler is not
running the list of dags won't populate, making it harder for new
starters to work out what is going on.

New dep is BSD-2 which is Cat-A under ASF
2019-05-29 10:50:07 +01:00
Jiajie Zhong d2a2e2cbff [AIRFLOW-4200] Remove all __future__ imports (#5020) 2019-04-22 11:26:11 +02:00
Kamil Breguła 6b38649fa6 [AIRFLOW-XXX] Improve linking to classes (#4655) 2019-02-07 11:57:32 +00:00
Kaxil Naik 5127ea34e1 [AIRFLOW-3023] Fix docstring datatypes 2018-09-06 15:07:43 -07:00
Holden Karau e765a0315c [AIRFLOW-2847] Remove legacy imports support for plugins (#3692) 2018-09-05 20:58:39 -07:00
Taylor D. Edmiston 9131d6cc8f [AIRFLOW-2851] Canonicalize "as _..." etc imports (#3696) 2018-08-07 11:53:50 -07:00
Tao feng 45c0c54792 [AIRFLOW-2429] Fix hook, macros folder flake8 error
Closes #3420 from feng-tao/flake8_p4
2018-05-28 16:23:44 +02:00
Kaxil Naik 1f0a717b65 [AIRFLOW-2502] Change Single triple quotes to double for docstrings
- Changed single triple quotes to double quote
characters to be consistent with the docstring
convention in PEP 257

Closes #3396 from kaxil/AIRFLOW-2502
2018-05-21 23:22:35 +02:00
Bolke de Bruin c7a472ed6b [AIRFLOW-2287] Fix incorrect ASF headers
Closes #3219 from bolkedebruin/fix_header
2018-04-14 09:13:23 +02:00
Kevin Yang 9a315efc79 [Airflow-2202] Add filter support in HiveMetastoreHook().max_partition()
Adding back support for filter in max_partition()
which could be used by some valid use cases. It
will work for tables with multiple partitions,
which is the behavior before (tho the doc stated
it only works for single partitioned table). This
change also kept the behavior when trying to get
max partition on a sub-partitioned table without
supplying filter--it will return the max partition
value of the partition key even it is not unique.

Some extra checks are added to provide more
meaningful exception messages.

Closes #3117 from yrqls21/kevin_yang_add_filter
2018-03-16 18:01:54 -07:00
Kevin Yang b8c2cea362 [AIRFLOW-2150] Use lighter call in HiveMetastoreHook().max_partition()
Call self.metastore.get_partition_names() instead of
self.metastore.get_partitions(), which is extremely expensive for
large tables, in HiveMetastoreHook().max_partition().

Closes #3082 from
yrqls21/kevin_yang_fix_hive_max_partition
2018-03-07 16:12:18 -08:00
Kengo Seki 1ae7e5b9af [AIRFLOW-1317] Fix minor issues in API reference 2017-06-20 20:16:35 -04:00
julien-gm 0da540bf78 [AIRFLOW-1145] Fix closest_date_partition function with before set to True
If we're looking for the closest date before, we should take the latest date in the list of date before.

Closes #2257 from julien-gm/fix_closest-date-
partition
2017-05-13 21:10:13 +02:00
George Leslie-Waksman eb5982d4aa [AIRFLOW-333][AIRFLOW-258] Fix non-module plugin components
* Distinguish between module and non-module plugin
components
* Fix handling of non-module plugin components

  * admin views, flask blueprints, and menu links
need to not be
    wrapped in modules

* Fix improper use of zope.deprecation.deprecated

  * zope.deprecation.deprecated does NOT support
classes as
    first parameter
  * deprecating classes must be handled by calling
the deprecate
    function on the class name

* Added tests for plugin loading
* Updated plugin documentation to match test
plugin
* Updated executors to always load plugins
* More logging

Closes #1738 from gwax/plugin_module_fixes
2016-10-01 23:43:20 -07:00
Stanislav Kudriashev 189e6b8874 [AIRFLOW-348] Fix code style warnings
Closes #1672 from skudriashev/airflow-348
2016-07-22 13:04:03 +02:00
Ajay Yadav 3ffa656d97 [AIRFLOW-248] Add Apache license header to all files
- Added Apache license header for files with extension (.service, .in, .mako, .properties, .ini, .sh, .ldif, .coveragerc, .cfg, .yml, .conf, .sql, .css, .js, .html, .xml.
- Added/Replaced shebang on all .sh files with portable version - #!/usr/bin/env bash.
- Skipped third party css and js files. Skipped all minified js files as well.

Closes #1598 from ajayyadava/248
2016-06-21 08:15:42 -07:00
jlowin 851adc5547 [AIRFLOW-31] Use standard imports for hooks/operators 2016-06-16 14:55:07 -04:00
Maxime 8fd35adb4f Adding datetil to macros and documenting macros references 2015-11-19 16:43:58 +00:00
Jeremiah Lowin e7ee93ff8c use list to allow indexing 2015-08-06 23:48:08 -04:00
Jeremiah Lowin d926f7b495 futurize stage 1: absolute imports 2015-08-06 23:02:53 -04:00
Maxime 5d4a21faac Making sure macrosfrom plugins get integrated 2015-07-04 19:54:23 +00:00
Maxime Beauchemin 84dcc17cf2 Take 2 on more explicit plugins 2015-06-18 20:57:13 -07:00
Maxime Beauchemin 22ac771af1 A simple plugin system for Airflow 2015-06-17 00:00:54 +00:00
Arthur Wiedmer 2bc60775d8 Reducing flake warnings where it made sense 2015-06-09 17:31:13 -07:00
e3 2574507de2 Random spelling updates. 2015-06-05 19:41:36 +02:00
Arthur Wiedmer 8eabc502af fix a bug in case of date equality 2015-05-03 17:22:48 -07:00
Maxime 4ab60cc4a7 Getting the tests to run 2015-05-02 06:22:26 +00:00
LDAP/krishna_bhupatiraju de89c8d029 changes max suggested 2015-04-29 04:01:48 +00:00
LDAP/krishna_bhupatiraju 3ae5d53f54 added code for ds_format 2015-04-29 03:17:31 +00:00
Arthur Wiedmer e5af257b6a fixing small typos 2015-04-21 07:49:00 -07:00
Maxime 329ebeb688 Improvements to max_partition 2015-03-04 20:14:34 +00:00
Maxime dadc534e55 Hive2Samba to use hiveserver2, refactoring HiveHooks 2015-02-17 08:40:50 +00:00
Maxime e8ba17bba6 Removing hooks defaults from config 2015-02-14 09:29:42 +00:00
Maxime Beauchemin bdb205aebc Unit tests! 2015-02-08 21:50:18 -08:00
Maxime Beauchemin 10a56377a0 Yet more documentation improvments' 2015-02-02 22:09:49 -08:00
Maxime Beauchemin 748af9e254 Impoving the docs, adding autodocs for command line 2015-02-01 08:01:46 -08:00
Maxime 28b3056192 Adding task_instance_key_str to default template macros 2015-01-26 17:42:30 -08:00
Arthur Wiedmer 53e350f137 [closest_ds macro] linting
Following flake8 recs + changing return type of helper function
2015-01-23 01:30:43 +00:00
Arthur Wiedmer 69e298ddd7 [macros] added macro closest_ds_partition
Added a hive macro to get the closest ds partition. It can get the
closest right before, the closest after, or either way.

@mistercrunch
2015-01-22 23:19:35 +00:00
Arthur Wiedmer 03b2189df5 closest partition macro 2015-01-22 23:19:35 +00:00