大叔经验分享(61)kudu rebalance报错

kudu rebalance命令报错

terminate called after throwing an instance of 'std::regex_error'
  what():  regex_error
*** Aborted at 1558779043 (unix time) try "date -d @1558779043" if you are using GNU date ***
PC: @     0x7ff0d6cf9207 __GI_raise
*** SIGABRT (@0x3d600005a72) received by PID 23154 (TID 0x7ff0d934ba00) from PID 23154; stack trace: ***
    @     0x7ff0d8d065d0 (unknown)
    @     0x7ff0d6cf9207 __GI_raise
    @     0x7ff0d6cfa8f8 __GI_abort
    @     0x7ff0d76087d5 __gnu_cxx::__verbose_terminate_handler()
    @     0x7ff0d7606746 (unknown)
    @     0x7ff0d7606773 std::terminate()
    @     0x7ff0d7606993 __cxa_throw
    @     0x7ff0d765bdd5 std::__throw_regex_error()
    @           0x931c32 std::__detail::_Compiler<>::_M_bracket_expression()
    @           0x931e3a std::__detail::_Compiler<>::_M_atom()
    @           0x932469 std::__detail::_Compiler<>::_M_alternative()
    @           0x9324c4 std::__detail::_Compiler<>::_M_alternative()
    @           0x932649 std::__detail::_Compiler<>::_M_disjunction()
    @           0x93297b std::__detail::_Compiler<>::_Compiler()
    @           0x932cb7 std::__detail::__compile<>()
    @           0x92bfc6 (unknown)
    @           0x92c664 std::_Function_handler<>::_M_invoke()
    @           0xde6672 kudu::tools::Action::Run()
    @           0x9957d7 kudu::tools::DispatchCommand()
    @           0x99619b kudu::tools::RunTool()
    @           0x8dee4d main
    @     0x7ff0d6ce53d5 __libc_start_main
    @           0x9284b5 (unknown)
Aborted

如果你的编译器是GCC-4.9.0或者VS2013以下版本,请升级后,再使用。我之前使用的C++编译器,是GCC 4.8.3,有regex头文件,但是GCC很不厚道的没有实现,语法完全支持,但是库还没跟上,所以编译的时候是没有问题的,但是一运行就会直接抛出异常

# gcc -v
gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC)

参考

https://blog.csdn.net/zdy0_2004/article/details/48914079

 

posted @ 2019-05-25 18:22  匠人先生  阅读(1260)  评论(1编辑  收藏  举报