【发布时间】:2021-05-15 17:11:06
【问题描述】:
我正在尝试在我的 Mesos 集群上部署 Aurora,但是在运行 aurora-scheduler 时,它总是无法显示 NullPointerException。这是我的设置:
- 基于 Ubuntu 14.04 的 Docker 容器
- OpenJDK8
- Mesos 0.22.1
- 极光 0.10.0
- 3 个 ZooKeeper 实例
- 1 名 Mesos 大师
- 4 个梅索斯奴隶
我很确定 ZooKeeper/Mesos 设置已启动并运行,因为我可以毫无问题地使用 Marathon 框架。
这是我尝试运行的scheduler.sh:
#!/bin/bash
# Cluster-specific environment variables
CLUSTER_NAME=test
ZK1=172.24.32.1:2181
ZK2=172.24.32.5:2181
ZK3=172.24.32.9:2181
ZK_QUORUM=$ZK1,$ZK2,$ZK3
AURORA_HOME=/usr/local/aurora-scheduler
# Flags controlling the JVM.
JAVA_OPTS=(
-Xmx2g
-Xms2g
# GC tuning, etc.
)
# Flags controlling the scheduler.
AURORA_FLAGS=(
-http_port=${PORT_WEBUI}
-backup_dir=/data1/aurora_scheduler_backup
-cluster_name=${CLUSTER_NAME}
-mesos_master_address=zk://${ZK_QUORUM}/mesos
-serverset_path=/aurora/scheduler
-thermos_executor_path=/dev/null
-zk_endpoints=${ZK_QUORUM}
)
# Environment variables controlling libmesos
export GLOG_v=1
export LIBPROCESS_PORT=${PORT_LIBPROCESS}
JAVA_OPTS="${JAVA_OPTS[*]}" exec "$AURORA_HOME/bin/aurora-scheduler" "${AURORA_FLAGS[@]}"
我已按照the Aurora official documentation 提供的安装步骤进行操作。
我将完整的输出上传到PasteBin。
【问题讨论】:
标签: docker mesos apache-aurora