Nifi - No Viable alternative @ Input '{' -


while trying insert xml data in cassendra db using apache nifi, getting below error. what's going wrong?

error : "no viable alternative @ input '{'

below replacetext processor entries:

search value : (?s:(^.*)$) replacement value : $1 character set : utf-8 maximum buffer size :1 mb replacement strategy :regex replace evaluation mode :entire text 

putcassandraql expects input valid cql statement. if have json in content (presumably following suggestions your other question), need create cql statement json "payload", such using replacetext following replacement value:

insert mytable json '$1'  

if previous flow file contains json object (and has no single quotes or escaped), should create valid cql statement it, use in putcassandraql.


Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -