Flume在Windows下启动报错[ERROR - org.apache.flume.lifecycle.LifecycleSupervisor$MonitorRunnable.run(LifecycleSupervisor.java:251)] Unable to start PollableSourceRunner: { source:Taildir source: { positionFile: position/test/test_log/position.json, skipToEnd: false, byteOffsetHeader: false, idleTimeout: 120000, writePosInterval: 3000 } counterGroup:{ name:null counters:{} } } - Exception follows.
java.lang.UnsatisfiedLinkError: C:\Users\Administrator\AppData\Local\Temp\2\jna-146731693\jna5575178598650185428.dll: Can’t find dependent libraries
项目上采用Flume在Windows server上监控文件,采集数据进kafka。生产环境下没有问题,这周再集群上开了虚机搞了个测试环境。使用Flume监控文件夹是没有问题单,但是监控文件就没法启动,启动就报错
[ERROR - org.apache.flume.lifecycle.LifecycleSupervisor$MonitorRunnable.run(LifecycleSupervisor.java:251)] Unable to start PollableSourceRunner: { source:Taildir source: { positionFile: position/test/test_log/position.json, skipToEnd: false, byteOffsetHeader: false, idleTimeout: 120000, writePosInterval: 3000 } counterGroup:{ name:null counters:{} } } - Exception follows.
java.lang.UnsatisfiedLinkError: C:\Users\Administrator\AppData\Local\Temp\2\jna-146731693\jna5575178598650185428.dll: Can't find dependent libraries
在网上搜了很久也没有找到对应的解决办法;后来翻墙在google的某一条评论里找到相关解答;Flume中内置的包是jna4.2.1,替换成4.1.0就可以解决;尝试了一下确实解决了问题,具体原因未知
分享出来,万一还有同学遇到相关问题可以供参考