错误:HDFS未就绪(数据洪流RTS沙箱)

时间:2016-04-29 11:30:02

标签: apache-apex

我正在尝试使用Datatorrent沙箱,但是收到了这个错误......

HDFS未就绪 HDFS可能仍在启动,或者您的hadoop服务可能存在其他配置问题。

控制台每10秒检查一次这些服务状态的变化,但您也可以手动触发刷新。

  

添加Env详细信息:

     

操作系统:Ubuntu 14.04

     

虚拟框:virtualbox-5.0_5.0.18-106667

     

datatorrent:datatorrent-sandbox-3.2.0

3 个答案:

答案 0 :(得分:2)

你是不是有机会在Mac上?您可以尝试使用这样的脚本重新启动服务(此脚本只检查状态;您可以将状态替换为停止启动或< EM>重新开始):

#!/bin/bash

# script to check status of various Hadoop services

# NOTE: If machine was shutdown improperly, or if HDFS continues to show red
# not-ready status, some of these may not be running; just start them if needed with:
#    sudo service <name> start
# where <name> is the name of the service you want to start
#
services="hadoop-hdfs-namenode hadoop-hdfs-datanode hadoop-yarn-resourcemanager \
hadoop-yarn-nodemanager dtdemos"
for s in $services; do
    sudo service $s status
done

# gateway service
sudo service dtgateway status

如果这也不起作用,请尝试使用以下命令强制它退出安全模式:

hdfs dfsadmin -safemode leave
hdfs fsck -delete

答案 1 :(得分:1)

HDFS将在启动后的几秒钟内处于安全模式。 在这里阅读更多相关信息: http://hadoop.apache.org/docs/r2.4.1/hadoop-project-dist/hadoop-hdfs/HdfsUserGuide.html#Safemode

答案 2 :(得分:0)

您可以查看dtgateway.log文件以获取更多具体细节吗?该文件通常位于/home/username/.dt/logs/dtgateway.log