我正在尝试在我的 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[@]}"
我已按照Aurora 官方文档中提供的安装步骤进行操作。
我在PasteBin上上传了完整的输出。