Heka 编译安装后 运行报错 panic: runtime error: cgo argument has Go pointer to Go pointer

时间:2023-02-06 23:34:49

Heka 编译安装后 运行报错 panic: runtime error: cgo argument has Go pointer to Go pointer

解决办法:

1.  Start hekad with the GODEBUG variable exported in its environment:
  export GODEBUG=cgocheck=0

2. 之后出现如下报错,找不到lua文件

  2017/01/16 10:33:38 Decoder 'MemStats-MemStatsDecoder' error: Init() cannot open /usr/share/heka/lua_decoders/linux_memstats.lua: No such file or directory
  2017/01/16 10:33:38 Decoder 'MemStats-MemStatsDecoder' error: SandboxDecoder has been terminated

  提供lua文件:

    sudo mv /usr/local/share/heka/ /usr/share/heka

3. 报错解决,程序往下执行