apache-nifi

How to Trim and Update Attribute values for NiFi?

How to Trim and Update Attribute values for NiFi? Question: I want to trim all of the whitespace leading and/or tailing the subject. NiFi Processors being used: Get File Extract Text Update Attribute –The issue lies here AttributestoJSON ConvertJSONtoSQL PutSQL PutFile Mock Email: Body of Email fake data obviously Student: Troy Bolton Classification: Junior ID: …

Total answers: 1

Saving Python dictionary as JSON file using Kafka and NiFi

Saving Python dictionary as JSON file using Kafka and NiFi Question: I am attempting to send JSON data from Python, through Kafka, to a NiFi container where it will be saved. The Python script is below: server_address = "foobar:1234" producer = KafkaProducer(bootstrap_servers=server_address) data = {"type": "record", "name": "CSV", "namespace": "nifi", "fields": {"Id": 0, "Value": 10.1}} …

Total answers: 1

ValueError: MAC check failed when using PyCryptodome to decrypt data coming from NiFi

ValueError: MAC check failed when using PyCryptodome to decrypt data coming from NiFi Question: Can someone help me with this problem: I am encrypting a JSON in NiFi with AES_GCM algorithm and using a KDF PBKDF2. The idea is to decrypt this JSON with a python script using PyCryptodome. The following code is an attempt …

Total answers: 1

Airbnb Airflow vs Apache Nifi

Airbnb Airflow vs Apache Nifi Question: Are Airflow and Nifi perform the same job on workflows? What are the pro/con for each one? I need to read some json files, add more custom metadata to it and put it in a Kafka queue to be processed. I was able to do it in Nifi. I …

Total answers: 1