WeiYe-Jing / datax-web

DataX集成可视化页面,选择数据源即可一键生成数据同步任务,支持RDBMS、Hive、HBase、ClickHouse、MongoDB等数据源,批量创建RDBMS数据同步任务,集成开源调度系统,支持分布式、增量同步数据、实时查看运行日志、监控执行器资源、KILL运行进程、数据源信息加密等。
https://segmentfault.com/u/weiye_jing/articles
MIT License
5.61k stars 2.16k forks source link

Mac aarch64 运行executor executor ExecutorRegistryThread" java.lang.UnsatisfiedLinkError: Can't load library: /var/folders/hp/jb28x8qj3z7crl5ssf8tl6cc0000gn/T/jna-400106789/jna750014645081268444.tmp #680

Open dalayy opened 5 days ago

dalayy commented 5 days ago

mac 运行executor 时报错:Exception in thread "datax-web, executor ExecutorRegistryThread" java.lang.UnsatisfiedLinkError: Can't load library: /var/folders/hp/jb28x8qj3z7crl5ssf8tl6cc0000gn/T/jna-400106789/jna750014645081268444.tmp at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1823) at java.lang.Runtime.load0(Runtime.java:782) at java.lang.System.load(System.java:1098) at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:947) at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:922) at com.sun.jna.Native.(Native.java:190) at com.sun.jna.Pointer.(Pointer.java:54) at com.sun.jna.Structure.(Structure.java:2130) at oshi.hardware.platform.mac.MacCentralProcessor.(MacCentralProcessor.java:53) at oshi.hardware.platform.mac.MacHardwareAbstractionLayer.getProcessor(MacHardwareAbstractionLayer.java:53) at com.wugui.datatx.core.util.OSUtils.cpuUsage(OSUtils.java:99) at com.wugui.datatx.core.thread.ExecutorRegistryThread.lambda$start$0(ExecutorRegistryThread.java:44) at java.lang.Thread.run(Thread.java:750)

通过file /var/folders/hp/jb28x8qj3z7crl5ssf8tl6cc0000gn/T/jna-400106789/jna750014645081268444.tmp 查看,发现文件是x86架构,可是我的jvm 是aarch64的,有没有大佬知道怎么处理

dalayy commented 5 days ago

开始以为是jna 版本太低,升级之后还是有问题