0
votes

I am newbie to Google cloud,need to extract the files with extension "xxxx.tar.gz" in cloud storage and load into BiQuery(multiple files to multiple tables)

I tried the cloud function with nodejs using npm modules like "tar.gz" and "jaguar",both didn't work.

can someone share some inputs to decompress the files using other languages like python or Go also.

my work: so far I decompressed files manually copied to that target bucket and loaded to bigquery using background functions using nodejs

Appreciate your help.

2

2 Answers

1
votes

tar is a Linux tool for archiving a group of files together - e.g., see this manual page. You can unpack a compressed tar file using a command like:

tar xfz file.tar.gz
0
votes

Mike is right wrt. tar archives. Regarding the second half of the question in the title, Cloud Storage does not natively support unpacking a tar archive. You'd have to do this yourself (on your local machine or from a Compute Engine VM, for instance)