x814822068
x814822068
采纳率50%
2019-02-14 16:17

搭建Kudu分布式时master节点启动不成功

在搭建kudu分布式集群的时候,设置了两个kudu master节点,在两台节点的配置文件/etc/kudu/conf/master.gflagfile中进行了如下配置:

# Do not modify these two lines. If you wish to change these variables,
# modify them in /etc/default/kudu-master.
--fromenv=rpc_bind_addresses
--fromenv=log_dir

--fs_wal_dir=/var/lib/kudu/master
--fs_data_dirs=/var/lib/kudu/master
--default_num_replicas=1
--master_addresses=node1:7051,node2:7051

当启动 service kudu-master start 之后,发现master并没有启动起来,web UIhttp://node1:8051/masters 打不开。

之后查询日志发现有如下报错:

E0214 14:54:05.931659 19296 master.cc:183] Master@node1:7051: Unable to init master catalog manager: Invalid argument: Unable to initialize catalog manager: Failed to initialize sys tables async: on-disk master list (node1:7051, node2:7051) and provided master list (:0) differ. Their symmetric difference is: :0, node1:7051, node2:7051
F0214 14:54:05.931685 19235 master_main.cc:71] Check failed: _s.ok() Bad status: Invalid argument: Unable to initialize catalog manager: Failed to initialize sys tables async: on-disk master list (node1:7051, node2:7051) and provided master list (:0) differ. Their symmetric difference is: :0, node1:7051, node2:7051
*** Check failure stack trace: ***
Wrote minidump to /var/log/kudu/minidumps/kudu-master/76c24073-5ad1-edb7-547f2708-6bfd2961.dmp
Wrote minidump to /var/log/kudu/minidumps/kudu-master/76c24073-5ad1-edb7-547f2708-6bfd2961.dmp
*** Aborted at 1550127245 (unix time) try "date -d @1550127245" if you are using GNU date ***
PC: @     0x7fd2898fa428 gsignal
*** SIGABRT (@0x3e600004b23) received by PID 19235 (TID 0x7fd28bd45840) from PID 19235; stack trace: ***
    @     0x7fd28b701390 (unknown)
    @     0x7fd2898fa428 gsignal
    @     0x7fd2898fc02a abort
    @          0x1b7ba09 (unknown)
    @           0x8d65bd google::LogMessage::Fail()
    @           0x8d84a3 google::LogMessage::SendToLog()
    @           0x8d611a google::LogMessage::Flush()
    @           0x8d8e6f google::LogMessageFatal::~LogMessageFatal()
    @           0x87771b (unknown)
    @     0x7fd2898e5830 __libc_start_main
    @           0x877129 _start
    @                0x0 (unknown)
  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

2条回答

  • fly0512 吉甫作诵 2年前

    #chown -R kudu:kudu /var/log/kudu/
    还有master一般部署单数,两个有什么意义?

    点赞 评论 复制链接分享
  • caoquanwen 海岸上的烟火 4月前

    额。。master一般是奇数  两个没什么意义 没容错机制

    点赞 评论 复制链接分享

相关推荐