shelywang
发表于 2015-8-17 17:41:52
按照文中一步一步安装了,可是还是不成功。nameNode没有启动成功啊。
启动时如下:
hadoop@master:/usr/hadoop/etc/hadoop$ start-all.sh
This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh
Starting namenodes on
master: starting namenode, logging to /usr/hadoop/logs/hadoop-hadoop-namenode-master.out
slave2: starting datanode, logging to /usr/hadoop/logs/hadoop-hadoop-datanode-slave2.out
slave1: starting datanode, logging to /usr/hadoop/logs/hadoop-hadoop-datanode-slave1.out
Starting secondary namenodes
master: starting secondarynamenode, logging to /usr/hadoop/logs/hadoop-hadoop-secondarynamenode-master.out
starting yarn daemons
starting resourcemanager, logging to /usr/hadoop/logs/yarn-hadoop-resourcemanager-master.out
slave2: starting nodemanager, logging to /usr/hadoop/logs/yarn-hadoop-nodemanager-slave2.out
slave1: starting nodemanager, logging to /usr/hadoop/logs/yarn-hadoop-nodemanager-slave1.out
---------------------------------------------------------------------------
hadoop@master:/usr/hadoop/etc/hadoop$ jps
11577 Jps
11321 ResourceManager
11183 SecondaryNameNode
jps查看nameNode居然没有启动成功。
查看log /hadoop-hadoop-namenode-master.out,并没异常,如下:
ulimit -a for user hadoop
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 3851
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 3851
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
~
查看log /usr/hadoop/logs/hadoop-hadoop-secondarynamenode-master.out 报如下异常:
hadoop@master:/usr/hadoop/etc/hadoop$ vi /usr/hadoop/logs/hadoop-hadoop-secondarynamenode-master.out
java.net.ConnectException: Call From master/192.168.112.130 to master:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see:http://wiki.apache.org/hadoop/ConnectionRefused
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:783)
at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:730)
at org.apache.hadoop.ipc.Client.call(Client.java:1351)
at org.apache.hadoop.ipc.Client.call(Client.java:1300)
at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:206)
at com.sun.proxy.$Proxy7.getTransactionId(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:186)
at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:102)
at com.sun.proxy.$Proxy7.getTransactionId(Unknown Source)
----------------------------------
请大侠们帮忙看看。
lyc87007643
发表于 2015-8-26 22:13:36
hadoop 安装包呢
pig2
发表于 2015-8-26 22:18:08
lyc87007643 发表于 2015-8-26 22:13
hadoop 安装包呢
这里面有很多
hadoop家族、strom、spark、Linux、flume等jar包、安装包汇总下载(持续更新)
http://www.aboutyun.com/thread-8178-1-1.html
(出处: about云开发)
lv8798660
发表于 2015-9-6 12:28:58
本帖最后由 pig2 于 2015-9-6 12:34 编辑
我想知道我的Hadoop配置好了吗?都是0000000 大神帮忙看一下弄了好几天 才不知道好了没有
lv8798660
发表于 2015-9-7 17:08:03
lv8798660 发表于 2015-9-6 12:28
我想知道我的Hadoop配置好了吗?都是0000000 大神帮忙看一下弄了好几天 才不知道好了没有
啊?大神方便说下QQ吗?求解我也不知道怎么办了
271033578
发表于 2015-9-10 15:24:28
楼主费心,写这个东西,真是又详尽又专业,赞一个
lv8798660
发表于 2015-9-11 11:16:11
就是浏览器显示不出来 到底怎么办啊啊
arsenduan
发表于 2015-9-11 13:47:24
lv8798660 发表于 2015-9-11 11:16
就是浏览器显示不出来 到底怎么办啊啊
你这是hadoop1吧,看日志。运行和启动的时候肯定有错误的
ohano_javaee
发表于 2015-10-9 11:59:07
xie de hen yong xin
长远
发表于 2015-10-23 11:00:51
很详细
页:
1
2
3
4
5
6
[7]
8
9
10
11
12
13