thomasrebele commented on code in PR #6825: URL: https://github.com/apache/hive/pull/6825#discussion_r4182575717
########## standalone-metastore/metastore-server/docker/hive-postgres-tpcds-metastore/entrypoint.sh: ########## @@ -13,10 +15,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -#!/bin/bash +if [ -f /tmp/metastore_db.zstd ]; then + zstdcat /tmp/metastore_db.zstd | tar -C /var/lib/postgresql/ -x + rm /tmp/metastore_db.zstd +fi Review Comment: I digged a bit deeper, and it seems that the `podman cp ... | tar` command produces weird tar files in some cases: ``` $ podman cp clever_austin:/var/lib/postgresql/ - | tar t | head tar: Removing leading `/' from member names / /18 /18/docker /18/docker/PG_VERSION ``` For other paths, the output is what I would have expected: ``` $ podman cp clever_austin:/etc/ - | tar t | head etc etc/alpine-release etc/apk etc/apk/arch ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
