In the GetMongo processor, you can specify a Query. If you leave it blank, the processor will look in the input FlowFile's for the query, so you must transform your Kafka messages to valid MongoDB queries in JSON format.
Alternatively, you can use the MongoDBLookupService directly. It will translate key-value pairs in the incoming record to valid MongoDB queries automatically.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…