Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
464 views
in Technique[技术] by (71.8m points)

QueryRecord returns error while using attributes (Apache NiFi)

I have a simple FlowFile which contains JSON:

{
  "name" : "ga:sessions",
  "val" : "0"
}

And some attributes:

account.login = "[email protected]"
account.id = "123456789"

I want to use QueryRecord processor to prepare JSON for saving into database. processor

But I get an error:

error

QueryRecord successfully set account_login from attribute but returns error. What is the problem? If I will not use attributes in QueryRecord SQL statement, I'll not get an error:

[{
  "metric_name" : "ga:sessions",
  "metric_value" : "0"
}]

How to solve it?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...