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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -