小白笔记----------- 执行 hadoop checknative 报错 openssl: false Cannot load libcrypto.so

部署完Hadoop之后,执行 hadoop checknative 对本地库做检查,执行结果为


[plain] view plain copy
  1. 17/02/09 10:02:41 WARN bzip2.Bzip2Factory: Failed to load/initialize native-bzip2 library system-native, will use pure-Java version  
  2. 17/02/09 10:02:41 INFO zlib.ZlibFactory: Successfully loaded & initialized native-zlib library  
  3. Native library checking:  
  4. hadoop:  true /home/user/tool/hadoop-2.7.3/lib/native/libhadoop.so  
  5. zlib:    true /lib/x86_64-linux-gnu/libz.so.1  
  6. snappy:  false   
  7. lz4:     true revision:99  
  8. bzip2:   false   
  9. openssl: false Cannot load libcrypto.so (libcrypto.so: cannot open shared object file: No such file or directory)!  


提示不能正确加载 libcrypto.so,查了下是因为缺少 ssl lib包;于是执行命令 
[plain] view plain copy
  1. apt-get install libssl-dev  

等待安装完毕后,执行 hadoop checknative ,不再提示 Cannot load libcrypto.so的错误了,出现跟官网一样的提示信息:
[plain] view plain copy
  1. user@ubuntu:~/tool/hadoop$ bin/hadoop checknative  
  2. 17/02/09 10:04:09 WARN bzip2.Bzip2Factory: Failed to load/initialize native-bzip2 library system-native, will use pure-Java version  
  3. 17/02/09 10:04:09 INFO zlib.ZlibFactory: Successfully loaded & initialized native-zlib library  
  4. Native library checking:  
  5. hadoop:  true /home/user/tool/hadoop-2.7.3/lib/native/libhadoop.so  
  6. zlib:    true /lib/x86_64-linux-gnu/libz.so.1  
  7. snappy:  false   
  8. lz4:     true revision:99  
  9. bzip2:   false   
  10. openssl: true /usr/lib/x86_64-linux-gnu/libcrypto.so  

你可能感兴趣的:(hadoop)