[英]How to verify if CDH (cloudera hadoop distribution) is installed or not
How to check if CDH is installed or not? 如何检查CDH是否已安装?
If yes, than get the version number. 如果是,则获取版本号。
If someone can give me shell script to do the same it would be great. 如果有人可以给我shell脚本做同样的事情,那就太好了。
You can check it with: 您可以使用以下方法进行检查:
readlink /opt/cloudera/parcels/CDH
Or with hadoop command: 或使用hadoop命令:
hdfs version | grep "CDH" | awk -F"/" '{print $5}'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.