当我运行'mogadm'时,出现提示如下:
“Unable to retrieve host information from tracker(s)
官网上说出现这问题的原因是tracker没启动。但是我已经启动了tracker,用的是下面的指令:
mogilefsd -c /etc/mogilefs/mogilefsd.conf --daemon
mogilefsd.conf如下
# Database connection information
db_dsn = DBI:mysql:mogilefs:host=localhost
db_user = mogile
db_pass = mogile
# IP:PORT to listen on for MogileFS client requests
listen = 0.0.0.0:7001
# Optional, if you don't define the port above.
conf_port = 7001
# Number of query workers to start by default.
query_jobs = 10
# Number of delete workers to start by default.
delete_jobs = 1
# Number of replicate workers to start by default.
replicate_jobs = 5
# Number of reaper workers to start by default.
# (you don't usually need to increase this)
reaper_jobs = 1
然后我连接到跟踪器,可以看到如下日志:
[mogile@localhost mogilefs]$ telnet localhost 7001
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
!watch
Added you to watcher list.
.
:: Child 1669 (monitor) died: 256 (UNEXPECTED)
:: Job monitor has only 0, wants 1, making 1.
:: Child 1670 (monitor) died: 256 (UNEXPECTED)
:: Job monitor has only 0, wants 1, making 1.
:: Child 1671 (monitor) died: 256 (UNEXPECTED)
:: Job monitor has only 0, wants 1, making 1.
...