gpt4 book ai didi

docker - 尝试安装Metron Docker 0.7.1版本失败

转载 作者:行者123 更新时间:2023-12-02 19:55:16 29 4
gpt4 key购买 nike

我是大数据的新手

git clone --recursive https://github.com/apache/metron

克隆它并 checkout 到 apache-metron_0.7.1-release

然后我 build metron in docker,但最终运行 mvn clean install -DskipTests而不是 mvn clean package -DskipTests,我 建立成功

然后我继续 build other container kafka,storm etc
运行后 docker-compose up
root@metron:~/metron/metron-contrib/metron-docker# cd $METRON_DOCKER_HOME/compose/
root@metron:~/metron/metron-contrib/metron-docker/compose# eval "$(docker-machine env metron-machine)"
root@metron:~/metron/metron-contrib/metron-docker/compose# docker-compose up
Building storm
Step 1/32 : FROM fhuz/docker-storm:latest
---> efbf73871666
Step 2/32 : ARG METRON_VERSION
---> Using cache
---> 2d4cb4c8f358
Step 3/32 : ENV METRON_VERSION $METRON_VERSION
---> Using cache
---> f4d02af86a06
Step 4/32 : ENV METRON_HOME /usr/metron/$METRON_VERSION/
---> Using cache
---> 9325dc9ed93d
Step 5/32 : ADD ./bin $METRON_HOME/bin
---> Using cache
---> e3c99729a018
Step 6/32 : ADD ./parser /parser
---> Using cache
---> 499f01cd45fb
Step 7/32 : ADD ./enrichment /enrichment
---> Using cache
---> c84d2036ce5f
Step 8/32 : ADD ./indexing /indexing
---> Using cache
---> b39470f4a705
Step 9/32 : ADD ./elasticsearch /elasticsearch
---> Using cache
---> 36c95dcb5151
Step 10/32 : RUN mkdir -p $METRON_HOME
---> Using cache
---> 5daeb4342c7f
Step 11/32 : RUN tar -xzf /parser/metron-parsing-storm-$METRON_VERSION-archive.tar.gz -C /usr/metron/$METRON_VERSION/
---> Using cache
---> d4d5e9e62fe6
Step 12/32 : RUN tar -xzf /enrichment/metron-enrichment-$METRON_VERSION-archive.tar.gz -C /usr/metron/$METRON_VERSION/
---> Running in 053e47c2150e
tar (child): /enrichment/metron-enrichment-0.7.1-archive.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
ERROR: Service 'storm' failed to build: The command '/bin/sh -c tar -xzf /enrichment/metron-enrichment-$METRON_VERSION-archive.tar.gz -C /usr/metron/$METRON_VERSION/' returned a non-zero code: 2

我的问题的补充

我在 /metron/metron-contrib/metron-docker/compose/storm/enrichment中找不到任何文件,我认为这是查找的正确路径
enter image description here

然后我尝试找到tar.gz以 将其替换为 .m2 / repository / org / apache / metron / metron-enrichment / 0.7.1 / 中的,也找不到任何东西,我也在 maven repo中找到但仅找到v0.6.x。

enter image description here

最佳答案

ADD ./enrichment /enrichment将为您解压缩所有文件,因此您得到了:

/enrichment/metron-enrichment-0.7.1-archive.tar.gz: Cannot open: No such file or directory

尝试在 ls -l内添加 /enrichment,以查看内部内容。

这是来自文档的通知:

Note: The directory itself is not copied, just its contents.

If <src> is a local tar archive in a recognized compression format (identity, gzip, bzip2 or xz) then it is unpacked as a directory.

Resources from remote URLs are not decompressed. When a directory is copied or unpacked, it has the same behavior as tar -x, the result is the union of: Whatever existed at the destination path and The contents of the source tree, with conflicts resolved in favor of “2.” on a file-by-file basis.

    Note: Whether a file is identified as a recognized compression format or not is done solely based on the contents of the file, not

the name of the file. For example, if an empty file happens to end with .tar.gz this will not be recognized as a compressed file and will not generate any kind of decompression error message, rather the file will simply be copied to the destination.

If <src> is any other kind of file, it is copied individually along with its metadata. In this case, if <dest> ends with a trailing

slash /, it will be considered a directory and the contents of will be written at /base().

If multiple <src> resources are specified, either directly or due to the use of a wildcard, then <dest> must be a directory, and it must

end with a slash /.

If <dest> does not end with a trailing slash, it will be considered a regular file and the contents of <src> will be written at

.

If <dest> doesn’t exist, it is created along with all missing directories in its path.

关于docker - 尝试安装Metron Docker 0.7.1版本失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58424324/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com