S3KeySensorAdlsGen1OperatorTransformer¶
-
class
ditto.transformers.s3.S3KeySensorAdlsGen1OperatorTransformer(target_dag, defaults)[source]¶ Bases:
ditto.api.OperatorTransformerTransforms a
S3KeySensorinto aAzureDataLakeStorageGen1WebHdfsSensor- Parameters
target_dag¶ (
DAG) – the target to which the transformed operators must be addeddefaults¶ (
TransformerDefaults) – the default configuration for this transformer
-
transform(src_operator, parent_fragment, upstream_fragments)[source]¶ You need to add the
adls_conn_idto the source operator (or preferably DAG) for this to work. Theglob_pathfor the ADLS sensor is coped from thebucket_keyof the s3 sensor, so make sure that is templatized for changing between s3:// and adls:// paths using config- Return type