Created 10-17-2018 07:28 AM
No handlers could be found for logger "root"
While installing Ranger,failing due to below error No handlers could be found for logger "root" Traceback (most recent call last): File "/var/lib/ambari-agent/cache/common-services/RANGER/0.4.0/package/scripts/ranger_admin.py", line 231, in <module> RangerAdmin().execute() File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 367, in execute method(env) File "/var/lib/ambari-agent/cache/common-services/RANGER/0.4.0/package/scripts/ranger_admin.py", line 41, in install self.install_packages(env) File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 803, in install_packages name = self.format_package_name(package['name']) File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 538, in format_package_name raise Fail("Cannot match package for regexp name {0}. Available packages: {1}".format(name, self.available_packages_in_repos)) resource_management.core.exceptions.Fail: Cannot match package for regexp name ranger_${stack_version}-admin. Available packages: ['bigtop-jsvc', 'hadoop_2_6_3_0_235', 'hadoop_2_6_3_0_235-client', 'hadoop_2_6_3_0_235-hdfs', 'hadoop_2_6_3_0_235-libhdfs', 'hadoop_2_6_3_0_235-mapreduce', 'hadoop_2_6_3_0_235-yarn', 'hdp-select', 'ranger_2_6_3_0_235-hdfs-plugin', 'ranger_2_6_3_0_235-yarn-plugin', 'spark2_2_6_3_0_235-yarn-shuffle', 'spark_2_6_3_0_235-yarn-shuffle', 'zookeeper_2_6_3_0_235', 'zookeeper_2_6_3_0_235-server', 'snappy-devel']<br>
Created 10-17-2018 07:28 AM
We see the error as following:
resource_management.core.exceptions.Fail: Cannot match package for regexp name ranger_${stack_version}-admin.
.
So it looks like somehow ambari is not able to determine the "${stack_version}" for the ranger admin package.
So can you please check if you have something like this in your following two scripts:
# grep 'package_version = None' /usr/lib/ambari-server/lib/resource_management/libraries/script/script.py package_version = None # grep 'package_version = None' /usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py package_version = None
.
On the host where ranger admin installation is failing, can you please try commenting the mentioned line starting with "package_version = None" and then retry from ambari UI to install ranger.
# package_version = None
.
Created 10-17-2018 07:28 AM
We see the error as following:
resource_management.core.exceptions.Fail: Cannot match package for regexp name ranger_${stack_version}-admin.
.
So it looks like somehow ambari is not able to determine the "${stack_version}" for the ranger admin package.
So can you please check if you have something like this in your following two scripts:
# grep 'package_version = None' /usr/lib/ambari-server/lib/resource_management/libraries/script/script.py package_version = None # grep 'package_version = None' /usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py package_version = None
.
On the host where ranger admin installation is failing, can you please try commenting the mentioned line starting with "package_version = None" and then retry from ambari UI to install ranger.
# package_version = None
.