Created 06-01-2017 02:28 PM
Is there a command or tool by which we can check the list of dependent libraries or files between hadoop and OS(environment)?
For eg: When we install ambari on RHEL, we have to manually install "libtirpc-devel". Thusa, is there a way by which we can check the hadoop packages that are dependent on "libtirpc-devel".
Created 06-01-2017 02:48 PM
We can query the depepdencies using "repoquery" which is available as part of package "yum-utils" Example:
# yum install yum-utils -y And then you can try something like this. # for i in `rpm -qa | grep hadoop` ; do echo "Package [$i]:"; rpm -q --requires $i ; echo ; done
Example: For ambari dependencies on CentOS6
for i in `rpm -qa | grep ambari-server` ; do echo "Package [$i]:"; rpm -q --requires $i ; echo ; done Package [ambari-server-2.5.0.3-7.x86_64]: postgresql-server >= 8.1 openssl python >= 2.6 /bin/sh /bin/sh /bin/sh /bin/sh rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadIsXz) <= 5.2-1
.
Created 06-01-2017 02:48 PM
We can query the depepdencies using "repoquery" which is available as part of package "yum-utils" Example:
# yum install yum-utils -y And then you can try something like this. # for i in `rpm -qa | grep hadoop` ; do echo "Package [$i]:"; rpm -q --requires $i ; echo ; done
Example: For ambari dependencies on CentOS6
for i in `rpm -qa | grep ambari-server` ; do echo "Package [$i]:"; rpm -q --requires $i ; echo ; done Package [ambari-server-2.5.0.3-7.x86_64]: postgresql-server >= 8.1 openssl python >= 2.6 /bin/sh /bin/sh /bin/sh /bin/sh rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadIsXz) <= 5.2-1
.
Created 06-01-2017 03:52 PM
Created 06-01-2017 03:05 PM
You might also want to try the following using "--tree-requiers" to see dependency tree.
# repoquery --tree-requires --recursive --resolve ambari-server
.