【发布时间】:2026-02-10 07:30:01
【问题描述】:
我在 Windows 10 中尝试通过 docker 启动 Confluent CE。请参阅他们的说明here。
问题是我相信这些是专门针对 MAC 操作系统的,而 Windows 对以下命令的语法要求略有不同:
wget https://github.com/confluentinc/kafka-connect-datagen/raw/master/config/connector_pageviews_cos.config
curl -X POST -H "Content-Type: application/json" --data @connector_pageviews_cos.config http://localhost:8083/connectors
我想我应该将 wget 结果传递给 curl。如何在 Windows 10 中做到这一点?
powershell 异常:
At line:1 char:57
+ ... ntent-Type: application/json" --data @connector_pageviews_cos.config ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~
The splatting operator '@' cannot be used to reference variables in an expression. '@connector_pageviews_cos' can be
used only as an argument to a command. To reference variables in an expression use '$connector_pageviews_cos'.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : SplattingNotPermitted
谢谢!
【问题讨论】:
标签: powershell curl windows-10 wget