1500字范文,内容丰富有趣,写作好帮手!
1500字范文 > nifi执行linux命令log shell - 无法使用Nifi curl命令启动处理器 - SO中文参考 - www.soinside.com...

nifi执行linux命令log shell - 无法使用Nifi curl命令启动处理器 - SO中文参考 - www.soinside.com...

时间:2022-07-19 04:08:41

相关推荐

nifi执行linux命令log shell - 无法使用Nifi curl命令启动处理器 - SO中文参考 - www.soinside.com...

我正在尝试运行以下curl命令来启动和停止我在Nifi中的处理器:

curl -i -H 'Content-Type: application/json' -XPUT -d '{"id":"016a1048-82dc-1262-fc26-ffcac4e76c1a","status":"Running"}' http://localhost:9090/nifi-api/processors/016a1048-82dc-1262-fc26-ffcac4e76c1a

但我收到以下错误:

HTTP/1.1 400 Bad Request

Date: Fri, 26 Apr 07:41:09 GMT

X-Frame-Options: SAMEORIGIN

Content-Security-Policy: frame-ancestors 'self'

X-XSS-Protection: 1; mode=block

Content-Type: text/plain

Vary: Accept-Encoding

Content-Length: 423

Server: Jetty(9.4.11.v0605)

Cannot construct instance of `org.apache.nifi.web.api.dto.status.ProcessorStatusDTO` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('Running')

at [Source: (org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream); line: 1, column: 55] (through reference chain: org.apache.nifi.web.api.entity.ProcessorEntity["status"])

我究竟做错了什么?

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。