This is a common use-case, when a user needs to migrate a schema from one cluster to another.
For this, the --from-stdin option looks ideal to be used.
The only thing I changed here, is that I redirected the jq output to a file, and then used the file for the zoe schemas deploy command with --from-file option instead of --from-stdin, which is an unnecessary extra step.
zoe version print output:
{"projectVersion":"0.28.0","buildTimestamp":"2021-11-04T23:39:18.809435","createdBy":"Gradle 7.2","buildJdk":"14.0.2 (Azul Systems, Inc. 14.0.2+12)","buildOS":"Linux amd64 5.11.0-1020-azure"}
This is a common use-case, when a user needs to migrate a schema from one cluster to another. For this, the
--from-stdin
option looks ideal to be used.The command then could look somewhat like this:
But when I run such a command, I am getting this error:
However, the output of
jq
command is obviously not empty.Furthermore, if I run the command using the intermediate step to unload the schema to a file, then it works:
Feedback:
The only thing I changed here, is that I redirected the
jq
output to a file, and then used the file for thezoe schemas deploy
command with--from-file
option instead of--from-stdin
, which is an unnecessary extra step.zoe version print
output: