您现在的位置 >> Hadoop教程 >> Hadoop实战 >> hadoop专题  
 

安装hadoop2.4.1,启动报错,麻烦帮忙看看是

【作者:Hadoop实战专家】【关键词:问题 namenode hadoop 可以 】 【点击:7497次】【2013-03-0】
Starting namenodes on [Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /home/grid/hadoop-2.2.0/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard. hudy02: Host key verification failed.  

相关热门搜索:hdfs namenode 格式化namenode

大数据标签:hadoop hdfs yarn bigdata

安装hadoop2.4.1,启动报错,麻烦帮忙看看是什么问题,完全没有方向,不知道从哪里查起

格式化namenode是成功的,但是启动HDFS报错,不知道是什么错误呀,求指教

[grid@hudy02 hadoop-2.2.0]$ sbin/start-dfs.sh
14/04/11 15:59:41 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Incorrect configuration: namenode address dfs.namenode.servicerpc-address or dfs.namenode.rpc-address is not configured.
Starting namenodes on [Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /home/grid/hadoop-2.2.0/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c ', or link it with '-z noexecstack'.]
sed:-e 表达式 #1,字符 6:“s”的未知选项
have: ssh: Could not resolve hostname have: Name or service not known
-c: Unknown cipher type 'cd'
you: ssh: Could not resolve hostname you: Name or service not known
stack: ssh: Could not resolve hostname stack: Name or service not known
fix: ssh: Could not resolve hostname fix: Name or service not known
have: ssh: Could not resolve hostname have: Name or service not known
will: ssh: Could not resolve hostname will: Name or service not known
the: ssh: Could not resolve hostname the: Name or service not known
library: ssh: Could not resolve hostname library: Name or service not known
library: ssh: Could not resolve hostname library: Name or service not known
fix: ssh: Could not resolve hostname fix: Name or service not known
it: ssh: Could not resolve hostname it: No address associated with hostname
',: ssh: Could not resolve hostname ',: Name or service not known
Server: ssh: Could not resolve hostname Server: Name or service not known
HotSpot(TM): ssh: Could not resolve hostname HotSpot(TM): Name or service not known
64-Bit: ssh: Could not resolve hostname 64-Bit: Name or service not known
which: ssh: Could not resolve hostname which: Name or service not known
guard.: ssh: Could not resolve hostname guard.: Name or service not known
guard: ssh: Could not resolve hostname guard: Name or service not known
The: ssh: Could not resolve hostname The: Name or service not known
disabled: ssh: Could not resolve hostname disabled: Name or service not known
stack: ssh: Could not resolve hostname stack: Name or service not known
highly: ssh: Could not resolve hostname highly: Name or service not known
Java: ssh: Could not resolve hostname Java: Name or service not known
might: ssh: Could not resolve hostname might: Name or service not known
VM: ssh: Could not resolve hostname VM: Name or service not known
VM: ssh: Could not resolve hostname VM: Name or service not known
try: ssh: Could not resolve hostname try: Name or service not known
now.: ssh: Could not resolve hostname now.: Name or service not known
recommended: ssh: Could not resolve hostname recommended: Name or service not known
It's: ssh: Could not resolve hostname It's: Name or service not known
'execstack: ssh: Could not resolve hostname 'execstack: Name or service not known
noexecstack'.: ssh: Could not resolve hostname noexecstack'.: Name or service not known
the: ssh: Could not resolve hostname the: Name or service not known
with: ssh: Could not resolve hostname with: Name or service not known
warning:: ssh: Could not resolve hostname warning:: Name or service not known
to: ssh: connect to host to port 22: Connection refused
with: ssh: Could not resolve hostname with: Name or service not known
or: ssh: Could not resolve hostname or: Name or service not known
link: ssh: Could not resolve hostname link: No address associated with hostname
that: ssh: Could not resolve hostname that: Name or service not known
loaded: ssh: Could not resolve hostname loaded: Name or service not known
'-z: ssh: Could not resolve hostname '-z: Name or service not known
You: ssh: Could not resolve hostname You: Name or service not known
The authenticity of host 'hudy01 (192.168.3.207)' can't be established.
RSA key fingerprint is 82:d4:e8:29:f3:0d:ef:ed:bf:9b:83:55:be:ba:6e:fe.
Are you sure you want to continue connecting (yes/no)? yes
hudy01: Warning: Permanently added 'hudy01' (RSA) to the list of known hosts.
hudy01: starting datanode, logging to /home/grid/hadoop-2.2.0/logs/hadoop-grid-datanode-hudy01.out
Starting secondary namenodes [Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /home/grid/hadoop-2.2.0/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c ', or link it with '-z noexecstack'.
hudy02]
sed:-e 表达式 #1,字符 6:“s”的未知选项
Server: ssh: Could not resolve hostname Server: Name or service not known
warning:: ssh: Could not resolve hostname warning:: Name or service not known
You: ssh: Could not resolve hostname You: Name or service not known
The: ssh: Could not resolve hostname The: Name or service not known
will: ssh: Could not resolve hostname will: Name or service not known
disabled: ssh: Could not resolve hostname disabled: Name or service not known
stack: ssh: Could not resolve hostname stack: Name or service not known
try: ssh: Could not resolve hostname try: Name or service not known
fix: ssh: Could not resolve hostname fix: Name or service not known
guard.: ssh: Could not resolve hostname guard.: Name or service not known
Java: ssh: Could not resolve hostname Java: Name or service not known
library: ssh: Could not resolve hostname library: Name or service not known
stack: ssh: Could not resolve hostname stack: Name or service not known
-c: Unknown cipher type 'cd'
you: ssh: Could not resolve hostname you: Name or service not known
with: ssh: Could not resolve hostname with: Name or service not known
have: ssh: Could not resolve hostname have: Name or service not known
VM: ssh: Could not resolve hostname VM: Name or service not known
that: ssh: Could not resolve hostname that: Name or service not known
fix: ssh: Could not resolve hostname fix: Name or service not known
with: ssh: Could not resolve hostname with: Name or service not known
have: ssh: Could not resolve hostname have: Name or service not known
noexecstack'.: ssh: Could not resolve hostname noexecstack'.: Name or service not known
or: ssh: Could not resolve hostname or: Name or service not known
64-Bit: ssh: Could not resolve hostname 64-Bit: Name or service not known
library: ssh: Could not resolve hostname library: Name or service not known
loaded: ssh: Could not resolve hostname loaded: Name or service not known
'execstack: ssh: Could not resolve hostname 'execstack: Name or service not known
The authenticity of host 'hudy02 (192.168.3.208)' can't be established.
RSA key fingerprint is c8:1e:e7:43:3e:74:54:b1:18:d8:8a:21:42:5a:79:66.
Are you sure you want to continue connecting (yes/no)? guard: ssh: Could not resolve hostname guard: Name or service not known
the: ssh: Could not resolve hostname the: Name or service not known
the: ssh: Could not resolve hostname the: Name or service not known
',: ssh: Could not resolve hostname ',: Name or service not known
which: ssh: Could not resolve hostname which: Name or service not known
It's: ssh: Could not resolve hostname It's: Name or service not known
to: ssh: connect to host to port 22: Connection refused
it: ssh: Could not resolve hostname it: No address associated with hostname
link: ssh: Could not resolve hostname link: No address associated with hostname
recommended: ssh: Could not resolve hostname recommended: Name or service not known
now.: ssh: Could not resolve hostname now.: Name or service not known
HotSpot(TM): ssh: Could not resolve hostname HotSpot(TM): Name or service not known
VM: ssh: Could not resolve hostname VM: Name or service not known
might: ssh: Could not resolve hostname might: Name or service not known
highly: ssh: Could not resolve hostname highly: Name or service not known
'-z: ssh: Could not resolve hostname '-z: Name or service not known

hudy02: Host key verification failed.

14/04/11 16:00:21 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable

举报

leighma

中级会员

* 加好友
* 发消息

论坛徽章:
    0

2

发表于 2014-4-11 19:35:23 |只看该作者

问题在于Starting namenodes on [Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /home/grid/hadoop-2.2.0/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard. The VM will try to fix the stack guard now.
还是本地库的问题
我也没遇到过这样的问题,搜索了一下可以试试添加环境变量
export HADOOP_COMMON_LIB_NATIVE_DIR=${HADOOP_PREFIX}/lib/native
export HADOOP_OPTS="-Djava.library.path=$HADOOP_PREFIX/lib"
不一定能完全匹配上,但是个可以尝试的思路

举报

deliayc

金牌会员

* 加好友
* 发消息

论坛徽章:
    4

3

发表于 2014-4-12 12:30:50 |只看该作者

谢谢啊,我试试看

举报

jie

金牌会员

* 加好友
* 发消息

论坛徽章:
    0

4

发表于 2014-6-5 16:11:07 |只看该作者

解决了吗?

举报

cxccbv

注册会员

* 加好友
* 发消息

论坛徽章:
    0

5

发表于 2014-7-19 10:29:22 |只看该作者

修改/etc/profile
export HADOOP_HOME=/root/app/hadoop-2.2.0
export HADOOP_COMMON_HOME=$HADOOP_HOME
export HADOOP_HDFS_HOME=$HADOOP_HOME
export HADOOP_MAPRED_HOME=$HADOOP_HOME
export HADOOP_YARN_HOME=$HADOOP_HOME
export HADOOP_CONF_DIR=$HADOOP_HOME/etc/hadoop
export PATH=$PATH:$HADOOP_HOME/bin:$HADOOP_HOOME/sbin:$HADOOP_HOME/lib
export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native
export HADOOP_OPTS="-Djava.library.path=$HADOOP_HOME/lib"

大数据系列hadoop相关文章:

最新评论
来自星星2014-09-09 10:26:40
整个点巧克力
柔情似水~2014-09-08 11:22:13
[图片]
Cassanada2014-09-07 10:57:45
ssh root@${nextPC}
啊桐2014-09-07 09:35:11
还说要整死我。。
不可理喻2014-09-06 07:11:27
#NLP Job#【优酷土豆集团】——Hadoop开发工程师RPx7Zlj
只见如初2014-09-06 04:53:57
http://t.cn/zjyxNtT 推荐读NoSQL 和Hadoop结合使用。
狮鹫骑士2014-09-05 05:20:25
促进大家学习交流
笨笨2014-09-04 10:59:35
连着两天没吃晚饭了现在有种前胸贴后背的感觉。。。
超子2014-09-03 09:07:15
2014年值得关注的9项技术 1. 文档数据库 2. 键值存储 3. 图数据库 4. Google Drive/Apps 5. On-premises搜索 6. PaaS 7. 云IDE 8. Hadoop 9. 集群/分布式文件系统
kindy10222014-09-03 01:06:53
#Sharespost本周动态#2.据消息人士透露,Dropbox在洽谈大约5亿美元信贷额度(Line of credit),最终达成的交易额度可能会更高。3.Hortonworks获1亿美元第四轮融资,以扩展其Hadoop业务的GigaOm等。领投为BlackRock和Passport Capital。
 
  • Hadoop生态系统资料推荐