Member since
10-26-2017
16
Posts
2
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
3521 | 11-20-2017 09:27 AM |
01-20-2018
07:42 AM
Maybe this is already a solution https://community.hortonworks.com/questions/101298/apache-nifi-json-to-xml-or-xml-translation.html But could someone explain me how to set up this exactly with input json string from flowfile and output xml should be than again a flowfile.
... View more
10-19-2018
06:11 PM
@Andy Gisbo Yes, that guide is accurate example of using OpenID with google.
... View more
06-06-2019
12:49 AM
The above was originally posted in the Community Help Track. On Thu Jun 6 00:38 UTC 2019, a member of the HCC moderation staff moved it to the Data Ingestion & Streaming track. The Community Help Track is intended for questions about using the HCC site itself.
... View more
10-23-2018
01:24 PM
1 Kudo
Did you solve this problem? I have a very simple way. You can use JSONPath expression like "$[-1].id" in EvaluateJsonPath. "-1" means last index of attribute.
... View more
11-04-2017
01:42 PM
1 Kudo
thx for the answer, it worked perfectly.
... View more
03-12-2018
04:17 AM
@Andrew Lim 1)My requirement is We have CSV data in one of the remote machine. every one hour csv data(huge data) is generating in remote machine. So i used SFTP for that. From there i need to put data to Kafka topics.So i used Publish Kafka record.I have not used Json conversion which is written in above article.But i am going to use it. 2) Yes i got the flow from your article. I have missed schema.name attribute and schema registry bcoz i dont understand what to mention in this.do i need to mention column name which is there in input file. 3) and I am just started learning kafka. and i created partitions in one of topic, i have no idea how to load data to specific partitions using nifi. If you have any suggestion better than this can you guide me ?
... View more
03-16-2018
03:29 AM
Hi @Ward Bekker I am trying the same code but getting error : Code is below one , could you let me know what is wrong, I have added dependency as well. import net.sf.json.JSON import net.sf.json.JSONObject import net.sf.json.JSONSerializer import net.sf.json.xml.XMLSerializer String str = '''{ "glossary": { "title": "example glossary", "GlossDiv": { "title": "S", "GlossList": { "GlossEntry": { "ID": "SGML", "SortAs": "SGML", "GlossTerm": "Standard Generalized Markup Language", "Acronym": "SGML", "Abbrev": "ISO 8879:1986", "GlossDef": { "para": "A meta-markup language, used to create markup languages such as DocBook.", "GlossSeeAlso": ["GML", "XML"] }, "GlossSee": "markup" } } } } }'''JSON json = JSONSerializer.toJSON( str ) XMLSerializer xmlSerializer = new XMLSerializer() xmlSerializer.setTypeHintsCompatibility( false ) String xml = xmlSerializer.write( json ) print(xml)
... View more