天鹅座Fiware泊坞窗错误

时间:2016-02-05 14:34:28

标签: fiware-cygnus

我已将git存储库下载到我的服务器,并且我已按照位于docker文件夹的自述文件中的步骤进行操作:

docker-compose -f ./docker/0.compose.jar-compiler.yml -p cygnus run --rm compiler
docker build -f ./docker/Dockerfile -t fiware/cygnus .
docker-compose -f ./docker/docker-compose.yml up

但是,当我尝试运行最后一个命令时,我收到了Java错误 /docker-compose.yml up

Recreating docker_cygnus_1...
Attaching to docker_cygnus_1
cygnus_1 | + exec /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.95-2.6.4.0.el7_2.x86_64/jre/bin/java -Xmx20m -Dflume.root.logger=DEBUG,console -cp '/flume/conf:/flume/lib/*:/flume/plugins.d/cygnus/lib/*' -Djava.library.path= com.telefonica.iot.cygnus.nodes.CygnusApplication -f flume/conf/agent_0.conf -n cygnusagent
cygnus_1 | flume/bin/cygnus-flume-ng: line 232: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.95-2.6.4.0.el7_2.x86_64/jre/bin/java: No such file or directory

你能帮我解决这个问题吗?

1 个答案:

答案 0 :(得分:0)

我确实复制了你的步骤,这是输出

[ root: fiware-cygnus ]# docker-compose -f ./docker/docker-compose.yml up
Creating docker_cygnus_1
Attaching to docker_cygnus_1
cygnus_1 | + exec /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.95-2.6.4.0.el7_2.x86_64/jre/bin/java -Xmx20m -Dflume.root.logger=INFO,console -cp '/flume/conf:/flume/lib/*:/flume/plugins.d/cygnus/lib/*' -Djava.library.path= com.telefonica.iot.cygnus.nodes.CygnusApplication -f flume/conf/agent_0.conf -n cygnusagent
cygnus_1 | SLF4J: Class path contains multiple SLF4J bindings.
cygnus_1 | SLF4J: Found binding in [jar:file:/flume/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
cygnus_1 | SLF4J: Found binding in [jar:file:/flume/plugins.d/cygnus/lib/cygnus-0.12.0-jar-with-dependencies.jar!/org/slf4j/impl/StaticLoggerBinder.class]
cygnus_1 | SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
cygnus_1 | 16/02/05 17:19:56 ERROR nodes.CygnusApplication: A fatal error occurred while running. Exception follows. Details=The specified configuration file does not exist: /flume/conf/agent_0.conf
docker_cygnus_1 exited with code 0

您需要添加具有足够配置的文件/flume/conf/agent_0.conf