Reputation: 45
I used the below to create a tar.gz
file, and .gz
file was created but tar file was not available. How to achieve the result?
PCollection<String> lines = pipeline.apply("To read from file",
TextIO.read().from(<file path>));
lines.apply(TextIO.write()
.to("C:\\Ddrive\\saveAllRequest1.txt")
.withCompression(Compression.GZIP);
and how to tar multiple files.
Thanks in advance
Upvotes: 0
Views: 362