http://blog.csdn.net/pipisorry/article/details/51292188
跑hadoop程序时出错:
#start-graphlite example/PageRankVertex.so Input/facebookcombined_4w Output/out
...
master run
parseCmdArg
loadUserFile
startWorkers
worker 1 cmd: ssh localhost 'cd /home/guest/GraphLite/GraphLite-0.20; /home/guest/GraphLite/GraphLite-0.20/bin/start-worker /home/guest/GraphLite/GraphLite-0.20/bin/graphlite 1 /home/guest/GraphLite/GraphLite-0.20/example/PageRankVertex.so /home/guest/GraphLite/GraphLite-0.20/Input/facebookcombined_4w /home/guest/GraphLite/GraphLite-0.20/Output/out 1'
root@localhost's password:
init
manageSuperstep
Sender: connect: Connection refused
...
原因:
“root@localhost's password:”说明ssh互信没有建立起来
Note: 也可能是用户问题,在普通用户下建立好了,super用户没建立?或者是命令执行路径有问题?
解决:配置SSH无密码登陆
执行#ssh-keygen -t dsa
#cd ~/.ssh
#cat id_dsa.pub >> authorized_keys
#ssh localhost
如果不需要密码提示root@localhost's password:就是设置成功了。
Note: 如果不成功,检查authorized_keys和.ssh目录的权限
chmod 644 authorized_keys
cd ~
chmod 700 .ssh
皮皮blog
Sender: connect: Connection refused
Sender: connect: Connection refused
...
出错的可能原因:
1 可能是inputformatter中顶点类型的sizeof没改,或者说是某个类型定义为double,但是传递的是int
2 执行路径不对:example/PageRankVertex.so,这个路径就说明要在example的上级目录下执行这条命令
3 运行之前还有其它graphlite程序在运行,可能是之前运行graphlite时ctrl+c结束了,但是实际上进行还在后台执行,导致冲突,打开system-monitor结束graphlite进程(一般有多少个worker就有几个进程,都要结束)
from: http://blog.csdn.net/pipisorry/article/details/51292188
ref: