ubuntu - 构建neo4j mazerunner项目时出现的问题

标签 ubuntu apache-spark docker docker-compose neo4j-mazerunner

当我在 ubuntu 中运行这 2 个命令行时构建项目时,它显示以下错误:

$docker build -t workspace/stageprojet .

--2016-08-01 14:33:06--  https://s3-us-west-1.amazonaws.com/mazerunner-artifacts/spark-1.1.2-RELEASE-driver.jar
Resolving s3-us-west-1.amazonaws.com (s3-us-west-1.amazonaws.com)... 54.231.237.77
Connecting to s3-us-west-1.amazonaws.com (s3-us-west-1.amazonaws.com)|54.231.237.77|:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2016-08-01 14:33:07 ERROR 403: Forbidden.

The command '/bin/sh -c wget https://s3-us-west-1.amazonaws.com/mazerunner-artifacts/spark-1.1.2-RELEASE-driver.jar' returned a non-zero code: 8


$docker-compose up -d 
ERROR:         
     Can't find a suitable configuration file in this directory or any         parent. Are you in the right directory?     
     Supported filenames: docker-compose.yml, docker-compose.yaml

EDIT1 : Dockerfile

这是我在项目中使用的Dockerfile

# Dockerizing Neo4j Mazerunner: Dockerfile for building graph analytics
# applications.

FROM       java:openjdk-8-jdk
MAINTAINER K.B. Name <kb@socialmoon.com>

USER root

# Set the default HDFS and Spark hosts
ENV SPARK_HOST local
ENV HDFS_HOST hdfs://hdfs:9000
ENV DRIVER_HOST mazerunner
ENV RABBITMQ_HOST localhost
ENV SPARK_EXECUTOR_MEMORY 6g
ENV HADOOP_HOME /etc/hadoop
ENV MAZERUNNER_HOME /etc/mazerunner
ENV CLASSPATH /etc/hadoop/conf:/etc/hadoop/*:/etc/mazerunner/*:/etc/mazerunner/lib/*
ENV SPARK_CLASSPATH /etc/hadoop/conf:/etc/hadoop/*:/etc/mazerunner/*:/etc/mazerunner/lib/*
RUN apt-get update && apt-get install -y apt-transport-https
RUN mkdir /etc/mazerunner

# Update apt-get
RUN apt-get update && \
    apt-get -y -qq install erlang-nox && \
    mkdir /etc/rabbitmq && \
    echo "[{rabbit, [{loopback_users, []}]}]." > /etc/rabbitmq/rabbitmq.config && \
    echo "deb http://www.rabbitmq.com/debian/ testing main" >/etc/apt/sources.list.d/rabbitmq.list && \
    curl -quiet -L -o ~/rabbitmq-signing-key-public.asc http://www.rabbitmq.com/rabbitmq-signing-key-public.asc && \
    apt-key add ~/rabbitmq-signing-key-public.asc && \
    apt-get -qq update && \
    apt-get -y -qq --allow-unauthenticated --force-yes install rabbitmq-server && \
    apt-get clean

# Copy bootstrapper
COPY sbin/mazerunner.sh /etc/mazerunner/bootstrap.sh
RUN chown root:root /etc/mazerunner/bootstrap.sh
RUN chmod 700 /etc/mazerunner/bootstrap.sh

# Copy Spark's HDFS configurations
RUN mkdir /etc/hadoop
COPY conf/hadoop /etc/hadoop

# Copy Mazerunner service binary
WORKDIR /etc/mazerunner
RUN wget https://s3-us-west-1.amazonaws.com/mazerunner-artifacts/spark-1.1.2-RELEASE-driver.jar

ENV BOOTSTRAP /etc/mazerunner/bootstrap.sh

CMD ["/etc/mazerunner/bootstrap.sh", "-d"]

有人知道怎么解决吗?

编辑 2

当我寻找 docker-compose.yml 时,我在许多目录中找到了它

enter image description here

最佳答案

docker-compose up -d 正在当前目录中寻找 docker-compose.yml 但找不到。该文件是否存在?如果您没有运行多个容器,则可能需要使用 docker run

关于ubuntu - 构建neo4j mazerunner项目时出现的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38701909/

相关文章:

docker - 在 .net 核心应用程序中获取 Docker 容器 IP

docker - 如果它是基于非sudo基本镜像构建的,是否可以将docker容器作为sudo运行?

java - 将 mapreduce 作业提交到 hadoop 2.2 从 windows 到 ubuntu 时出现 UnsatisfiedLinkError (NativeIO$Windows.access0)

ruby-on-rails - 如何设置 nginx 以允许在 ubuntu 12.04 上使用/suburi 进行访问?

apache-spark - 根据工作线程,内核和DataFrame大小确定Spark分区的最佳数量

python - 了解 Word2Vec 转换方法的输出

c++ - odbc 库在 ubuntu 上的位置

shell - docker cp : Error response from daemon: lstat no such file or directory

json - 在 JSON 的情况下,当模式推断留给 Spark 时,为什么 Spark 会输出 nullable = true?

docker - ElasticBeanstalk nginx 在发送 Context-Length header 时返回 400 Bad Request