启动hadoop守护进程时出错 [英] Error while starting hadoop daemons

查看:245
本文介绍了启动hadoop守护进程时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是hadoop和ubuntu的新手,并试图在我的系统上安装Hadoop 2.2.0(Ubuntu)。
当我尝试使用start-all.sh或start-dfs.sh启动守护进程时,它会抛出一个错误,提示找不到命令。
我已经发出这个命令,只是在hadoop组下创建的用户。

 > hduser @ nitk-OptiPlex-9010:〜/ hadoop-2.2.0 / sbin $ start-all.sh 
> start-all.sh:找不到命令

有人可以帮我解决这个问题吗?



当我尝试修改 etc / hadoop 文件夹下的核心站点 hdfs-site xml 文件时,核心-site.xml〜,hdfs-site.xml〜文件被创建(创建了在名称末尾有波形符号的新文件)。我删除了创建的这些新文件。这是否会造成问题?

解决方案

请按照以下步骤
操作:
       ==>转到hadoop主目录:cd / usr / local / hadoop /

       ==>启动datanodes和namenodes的过程:bin / hadoop namenode -format

==>启动deamons:sbin / start-dfs.sh(start-all.sh被折旧) / p>

希望对你有所帮助:)

I am new to hadoop as well as ubuntu and trying to install Hadoop 2.2.0 in (Ubuntu) on my system. When I tried to start the daemons using start-all.sh or start-dfs.sh, it throws an error saying "Command not found". I have issued this command as an user created under the hadoop group only.

> hduser@nitk-OptiPlex-9010:~/hadoop-2.2.0/sbin$ start-all.sh
> start-all.sh: command not found

Can someone please help me out to resolve this issue?

Also when I tried modifying the core-site, hdfs-site xml files under etc/hadoop folder, core-site.xml~, hdfs-site.xml~ files were created (New files with a tilde symbol at the end of their names got created). I deleted those new files created. Is this creating a problem?

解决方案

Follow below steps
      ==> Go to hadoop home directory: cd /usr/local/hadoop/
      ==> Start the process of datanodes and namenodes : bin/hadoop namenode -format
==> Start deamons : sbin/start-dfs.sh (start-all.sh is depreciated)

Hope that helps you :)

这篇关于启动hadoop守护进程时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆