apache-nifi

how to whitelist host header in nifi?

和自甴很熟 提交于 2021-02-11 15:54:38
问题 Deployed the nifi in eks cluster when tried to access the nifi from loadbalancer gives following error: System Error The request contained an invalid host header [abc.com] in the request [/nifi]. Check for request manipulation or third-party intercept. Valid host headers are [empty] or: 127.0.0.1 127.0.0.1:8443 localhost localhost:8443 ::1 nifi-deployment-59494c46dc-v4kk6 nifi-deployment-59494c46dc-v4kk6:8443 172.35.3.165 172.35.3.165:8443 How to whitelist loadbalancer dns name in host header

Using sys.stdout.write() to create multiple files in NiFi?

喜夏-厌秋 提交于 2021-02-11 12:04:37
问题 I have a pipeline in NiFi that pulls down some invalid JSON that I need to clean up. The best solution I've concocted is to run a Python script via ExecuteStreamCommand and simultaneously clean/split it up in one fell swoop. However, even though I use sys.stdout.write() in my for loop, only the original JSON comes out in the output stream in NiFi. Am I misusing sys.stdout.write() or is this possible, but I've just done something wrong? My end goal is for each line of the json to be a new flow

Using sys.stdout.write() to create multiple files in NiFi?

僤鯓⒐⒋嵵緔 提交于 2021-02-11 12:02:46
问题 I have a pipeline in NiFi that pulls down some invalid JSON that I need to clean up. The best solution I've concocted is to run a Python script via ExecuteStreamCommand and simultaneously clean/split it up in one fell swoop. However, even though I use sys.stdout.write() in my for loop, only the original JSON comes out in the output stream in NiFi. Am I misusing sys.stdout.write() or is this possible, but I've just done something wrong? My end goal is for each line of the json to be a new flow

Complex transformations and filters with Apache NiFi

佐手、 提交于 2021-02-11 06:54:41
问题 I have a JSON array: [ { "account_login" : "some_mail@gmail.com", "view_id" : 11313231, "join_id" : "utm_campaign=toyota&utm_content=multiformat_sites&utm_medium=cpc&utm_source=mytarget", "start_date" : "2020-08-01", "end_date" : "2020-08-31" }, { "account_login" : "another_mail@lab.net", "view_id" : 19556319183, "join_id" : "utm_campaign=mazda&utm_content=keywords_social-networks&utm_medium=cpc&utm_source=facebook", "start_date" : "2020-12-22", "end_date" : "2020-12-23" }, { ... } ] For each

PublishJMS processor fails while publishing json message to IBM Websphere MQ

廉价感情. 提交于 2021-02-10 17:44:15
问题 I am facing an issue in PublishJMS processor of NIFI while pushing the json message from it. Note: Just to add tried various processors to see if the attributes can be modified, but none helped, I am able to figure out the issue is only because I am using ConsumeJMS & PublishJMS together in the same flow. JSON Message to be published: {"dataprepcomplete":{"modelfamilytype":"property","groupid":"1","claims":[{"requestid":"1","claimid":"10001"},{"requestid":"2","claimid":"10002"}]}} The issue

Nifi: how to make ListenHTTP work with SSL

。_饼干妹妹 提交于 2021-02-10 06:59:40
问题 Objective Because of Nifi integration with other tools through HTTP, I have to make ListenHTTP processor public facing. API Gateway on all 3 environments is too expensive for me. So I closed all VM ingress ports (except the one needed for ListenHTTP ) for outer networks. Issue My configuration of ListenHTTP with StandardRestrictedSSLContextService doesn't work. Without SSL it worked, but was unsecure. user$ curl -X POST -H "Content-Type: application/json" --data "test" https://localhost:7070

How do I parse a date field and generate a date in string format in NiFi

≯℡__Kan透↙ 提交于 2021-02-09 07:26:07
问题 Each of my flow file contains 2000 records. I would like to parse 01/01/2000 into a column year = 2000, column month = Jan and column day = 01 i.e. the input column 01/01/2000 into 3 values separated by commas 01,Jan,2000 回答1: Lets say you have a schema like this for a person with a birthday and you want to split out the birthday: { "name": "person", "namespace": "nifi", "type": "record", "fields": [ { "name": "first_name", "type": "string" }, { "name": "last_name", "type": "string" }, {

How do I parse a date field and generate a date in string format in NiFi

情到浓时终转凉″ 提交于 2021-02-09 07:15:10
问题 Each of my flow file contains 2000 records. I would like to parse 01/01/2000 into a column year = 2000, column month = Jan and column day = 01 i.e. the input column 01/01/2000 into 3 values separated by commas 01,Jan,2000 回答1: Lets say you have a schema like this for a person with a birthday and you want to split out the birthday: { "name": "person", "namespace": "nifi", "type": "record", "fields": [ { "name": "first_name", "type": "string" }, { "name": "last_name", "type": "string" }, {

How do I parse a date field and generate a date in string format in NiFi

最后都变了- 提交于 2021-02-09 07:13:28
问题 Each of my flow file contains 2000 records. I would like to parse 01/01/2000 into a column year = 2000, column month = Jan and column day = 01 i.e. the input column 01/01/2000 into 3 values separated by commas 01,Jan,2000 回答1: Lets say you have a schema like this for a person with a birthday and you want to split out the birthday: { "name": "person", "namespace": "nifi", "type": "record", "fields": [ { "name": "first_name", "type": "string" }, { "name": "last_name", "type": "string" }, {

How do I parse a date field and generate a date in string format in NiFi

不问归期 提交于 2021-02-09 07:12:57
问题 Each of my flow file contains 2000 records. I would like to parse 01/01/2000 into a column year = 2000, column month = Jan and column day = 01 i.e. the input column 01/01/2000 into 3 values separated by commas 01,Jan,2000 回答1: Lets say you have a schema like this for a person with a birthday and you want to split out the birthday: { "name": "person", "namespace": "nifi", "type": "record", "fields": [ { "name": "first_name", "type": "string" }, { "name": "last_name", "type": "string" }, {