I have some big .avro
files in the Google Cloud Storage and I want to concat all of them in a single file.
I got
java -jar avro-tools.jar concat
However, as my files are in the google storage path: gs://files.avro
I can't concat them by using avro-tools. Any suggestion about how to solve it?
You can use the
gsutil compose
command. For example:On my case I tested it with the following values: foo.txt contains a word Hello and bar.txt contains a word World. Running this command:
baz.txt would return:
Just in case if you're encountering an exception error with regards to integrity checks, run
gsutil help crcmod
to get an instructions on how to fix it.