我有例外:
re.sub(r'^$\n', '', s, flags=re.MULTILINE)
我的配置如下:
Unable to deliver event. Exception follows.
java.lang.ClassCastException: java.lang.String cannot be cast to org.json.simple.JSONObject
at com.telefonica.iot.cygnus.backends.http.HttpBackend.createJsonResponse(HttpBackend.java:353)
at com.telefonica.iot.cygnus.backends.http.HttpBackend.doRequest(HttpBackend.java:205)
at com.telefonica.iot.cygnus.backends.http.HttpBackend.doRequest(HttpBackend.java:131)
at com.telefonica.iot.cygnus.backends.ckan.CKANBackendImpl.doCKANRequest(CKANBackendImpl.java:566)
at com.telefonica.iot.cygnus.backends.ckan.CKANBackendImpl.insert(CKANBackendImpl.java:178)
at com.telefonica.iot.cygnus.backends.ckan.CKANBackendImpl.persist(CKANBackendImpl.java:90)
at com.telefonica.iot.cygnus.sinks.NGSICKANSink.persistAggregation(NGSICKANSink.java:525)
at com.telefonica.iot.cygnus.sinks.NGSICKANSink.persistBatch(NGSICKANSink.java:260)
at com.telefonica.iot.cygnus.sinks.NGSISink.processNewBatches(NGSISink.java:558)
at com.telefonica.iot.cygnus.sinks.NGSISink.process(NGSISink.java:370)
at org.apache.flume.sink.DefaultSinkProcessor.process(DefaultSinkProcessor.java:68)
at org.apache.flume.SinkRunner$PollingRunner.run(SinkRunner.java:147)
所以我使用CKAN接收器,我可以看到在CKAN中成功创建了一个包,但资源中没有内容。任何帮助将不胜感激!提前谢谢!