Member since
02-05-2019
5
Posts
1
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
1767 | 09-30-2019 03:45 PM |
10-09-2019
11:16 AM
Thank you. It really helps 😃
... View more
10-05-2019
10:56 AM
Hi,
I try to replace text with space using ReplaceTextWithMapping processor. I have file with multiple lines
"action":"account sing up"
"action":"account sign in"
"action":"account sign out"
And I have a mapping file with \t separating the search value and replace value
account sing up asu
account sign in asi
account sign out aso
Regular expressions "action":"(.*)"
Matching group: 1
Result
"action":"account sing up"
"action":"account sign in"
"action":"account sign out"
Expected:
"action":"asu"
"action":"asi"
"action":"aso"
Does anyone know what I did wrong?
Thanks
David
... View more
Labels:
- Labels:
-
Apache NiFi
09-30-2019
03:45 PM
1 Kudo
I re0rder the json to {
"item":{"currency":"USD","name":"Beauty Lips"},"name":"david"
} I used ReplaceText processor search value: "item":(.*),"name" replace value: "item":${'$1':replaceFirst('"', ''):substringBeforeLast('"')},"name" It does not look beauty but it works =/ My question is why I don't need to use unexcapeJson() like this? "item":${'$1':replaceFirst('"', ''):substringBeforeLast('"'):unescapeJson()},"name"
... View more
09-27-2019
09:36 PM
Hi, I am looking for the way to convert the CSV to JSON
I have a csv file with json object as value,
"name","item"
"david","{""currency"":""USD"",""content"":""Beauty Lips""}"
I used ConvertRecord processor with CSVReader and JsonRecordSetWriter
And the output JSON is
{
"name":"david",
"item":"{\"currency\":\"USD\",\"content\":\"Beauty Lips\"}"
}
But what I expected is
{
"name":"david",
"item":{"currency":"USD","name":"Beauty Lips"}
}
How can I archive this?
Thank you
David
... View more
Labels:
- Labels:
-
Apache NiFi
02-05-2019
12:21 PM
Hi all, I would like to know if it is possible to create empty HDFS directory using NIFI? Looks like PutHDFS will need a file name. But in my case, I just want to create a directory without putting any file.
... View more
Labels:
- Labels:
-
Apache NiFi