Linux下Eclipse导出Hadoop项目找不到库文件 20C

求教各位hadoop技术大牛~~~~~
Linux环境下,Eclipse已经集成了Hadoop插件,运行Hadoop程序没有问题
代码:CLibrary Instance = (CLibrary) Native.loadLibrary("libNLPIR.so", CLibrary.class);能够成功加载libNLPIR.so文件,其中libNLPIR.so文件是用来分词的第三方库
但是导出成Runnable jar文件后,执行Hadoop jar EmotionExtraction.jar 命令后报错:
Error: Unable to load library 'libNLPIR.so': Native library (linux-x86-64/libNLPIR.so) not found in resource path ([file:/hadoop/hadoop-2.2.0/tmp/nm-local-dir/usercache/root/appcache/application_1449120030816_0028/container_1449120030816_0028_01_000002/, file:/itcast/hadoop-2.2.0/etc/hadoop/, file:/itcast/hadoop-2.2.0/share/hadoop/common/hadoop-common-2.2.0.jar, file:/itcast/hadoop-2.2.0/share/hadoop/common/hadoop-nfs-2.2.0.jar, file:/itcast/hadoop-2.2.0/share/hadoop/common/hadoop-common-2.2.0-tests.jar

1个回答

请问你解决了这个问题吗?

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问