光是那个便差没有多把我的耐性耗没了,逢到了无数坚苦。。。别人皆开端叫我电脑杀手了汗。。。
fs.default.name hdfs://localhost:9000
conf/hdfs-site.xml:
dfs.replication 1
conf/mapred-site.xml:
mapred.job.tracker localhost:9001
3配置ssh
我直接
ssh localhost便成功了,没有需要稀码
若是没有止的话试试那个
$ ssh-keygen -t dsa -P "" -f ~/.ssh/id_dsa
$ cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
然后再 ssh localhost
4格局化HDFS
$ bin/hadoop namenode -format
5 开启hadoop回护进程:
$ bin/start-all.sh
那边那边要是提醒
便输进$bin/stop-all.sh然后再$bin/start-all.sh便止啦!
附:逢到此类弊端:
碰着弊端:
11/08/18 14:56:37 INFO ipc.Client: Retrying connect to server: localhost/127.0.0 .1:8888. Already tried 0 time(s). 11/08/18 14:56:39 INFO ipc.Client: Retrying connect to server: localhost/127.0.0 .1:8888. Already tried 1 time(s). 11/08/18 14:56:41 INFO ipc.Client: Retrying connect to server: localhost/127.0.0 .1:8888. Already tried 2 time(s). 11/08/18 14:56:43 INFO ipc.Client: Retrying connect to server: localhost/127.0.0 .1:8888. Already tried 3 time(s). 11/08/18 14:56:45 INFO ipc.Client: Retrying connect to server: localhost/127.0.0 .1:8888. Already tried 4 time(s). 11/08/18 14:56:47 INFO ipc.Client: Retrying connect to server: localhost/127.0.0 .1:8888. Already tried 5 time(s). 11/08/18 14:56:49 INFO ipc.Client: Retrying connect to server: localhost/127.0.0 .1:8888. Already tried 6 time(s). 11/08/18 14:56:51 INFO ipc.Client: Retrying connect to server: localhost/127.0.0 .1:8888. Already tried 7 time(s). 11/08/18 14:56:53 INFO ipc.Client: Retrying connect to server: localhost/127.0.0 .1:8888. Already tried 8 time(s). 11/08/18 14:56:55 INFO ipc.Client: Retrying connect to server: localhost/127.0.0 .1:8888. Already tried 9 time(s).
Bad connection to FS. command aborted. exception: Call to localhost/127.0.0.1:88
88 failed on connection exception: java.net.ConnectException: Connection refused
: no further information
弊端提醒“Bad connection to FS. command aborted. exception: Call to localhost/127.0.0.1:88
88 failed on connection exception: java.net.ConnectException: Connection refused
: no further information”
格局化指令以下
bin/hadoop namenode -format
成功 之后重启hadoop便可以了
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/23394887/viewspace-1119949/ ,如需转载,请注明出处,否则将追究法律责任。