Jenkins protoc: command not found
在使用Jenkins编译Hadoop3.1.2时报错信息如下:
1 | [INFO] --- hadoop-maven-plugins:3.1.2:protoc (compile-protoc) @ hadoop-common --- |
原因是Jenkins中找不到protoc命令。解决方法是在Jenkins中配置环境变量PATH指定protoc路径。
再次执行发现以下错误:
1 | protoc: error while loading shared libraries: libprotobuf.so.8: cannot open shared object file: No such file or directory |
解决方法跟PATH配置一样道理,配置一个新的环境变量LD_LIBRARY_PATH: