我在尝试Datatorrent 砂箱 </跨度> 但是得到了这个错误….
HDFS未就绪HDFS可能仍在启动,或者您的hadoop服务可能存在其他配置问题。
控制台every每10秒检查一次这些服务状态的变化,但您也可以手动触发刷新。
添加Env详细信息: 操作系统:Ubuntu 14.04 虚拟框:virtualbox-5.0_5.0.18-106667 datatorrent:datatorrent- 砂箱 </跨度> -3.2.0
你能查看dtgateway.log文件以获取更多具体细节吗?该文件通常位于 /home/username/.dt/logs/dtgateway.log 。
/home/username/.dt/logs/dtgateway.log
#!/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
启动后,HDFS将处于安全模式几秒钟。 在这里阅读更多相关信息: http://hadoop.apache.org/docs/r2.4.1/hadoop-project-dist/hadoop-hdfs/HdfsUserGuide.html#Safemode