airflow.sensors.hdfs_sensor
¶
Module Contents¶
-
class
airflow.sensors.hdfs_sensor.
HdfsSensor
(filepath, hdfs_conn_id='hdfs_default', ignored_ext=None, ignore_copying=True, file_size=None, hook=HDFSHook, *args, **kwargs)[source]¶ Bases:
airflow.sensors.base_sensor_operator.BaseSensorOperator
Waits for a file or folder to land in HDFS
-
static
filter_for_filesize
(result, size=None)[source]¶ Will test the filepath result and test if its size is at least self.filesize
- Parameters
result – a list of dicts returned by Snakebite ls
size – the file size in MB a file should be at least to trigger True
- Returns
(bool) depending on the matching criteria
-
static