<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: resource_management.core.exceptions.Fail: Cannot match package for regexp name ranger_${stack_version}-admin. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/resource-management-core-exceptions-Fail-Cannot-match/m-p/220600#M84393</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/98465/lokanreddy.html" nodeid="98465"&gt;@Lok! Reddy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;We see the error as following:&lt;/P&gt;&lt;PRE&gt;resource_management.core.exceptions.Fail: Cannot match package for regexp name ranger_${stack_version}-admin.&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;So it looks like somehow ambari is not able to determine the "${stack_version}" for the ranger admin package.&lt;/P&gt;&lt;P&gt;So can you please check if you have something like this in your following two scripts:&lt;/P&gt;&lt;PRE&gt;# 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&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;On the host where ranger admin installation is failing&lt;/STRONG&gt;, can you please try commenting the mentioned line starting with "&lt;STRONG&gt;package_version = None&lt;/STRONG&gt;" and then retry from ambari UI to install ranger.&lt;/P&gt;&lt;PRE&gt;# package_version = None&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Oct 2018 14:28:16 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2018-10-17T14:28:16Z</dc:date>
    <item>
      <title>resource_management.core.exceptions.Fail: Cannot match package for regexp name ranger_${stack_version}-admin.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/resource-management-core-exceptions-Fail-Cannot-match/m-p/220599#M84392</link>
      <description>&lt;P&gt;No handlers could be found for logger "root"&lt;/P&gt;&lt;PRE&gt;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 &amp;lt;module&amp;gt;
    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']&amp;lt;br&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Oct 2018 14:28:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/resource-management-core-exceptions-Fail-Cannot-match/m-p/220599#M84392</guid>
      <dc:creator>lokanreddy</dc:creator>
      <dc:date>2018-10-17T14:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: resource_management.core.exceptions.Fail: Cannot match package for regexp name ranger_${stack_version}-admin.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/resource-management-core-exceptions-Fail-Cannot-match/m-p/220600#M84393</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/98465/lokanreddy.html" nodeid="98465"&gt;@Lok! Reddy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;We see the error as following:&lt;/P&gt;&lt;PRE&gt;resource_management.core.exceptions.Fail: Cannot match package for regexp name ranger_${stack_version}-admin.&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;So it looks like somehow ambari is not able to determine the "${stack_version}" for the ranger admin package.&lt;/P&gt;&lt;P&gt;So can you please check if you have something like this in your following two scripts:&lt;/P&gt;&lt;PRE&gt;# 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&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;On the host where ranger admin installation is failing&lt;/STRONG&gt;, can you please try commenting the mentioned line starting with "&lt;STRONG&gt;package_version = None&lt;/STRONG&gt;" and then retry from ambari UI to install ranger.&lt;/P&gt;&lt;PRE&gt;# package_version = None&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 14:28:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/resource-management-core-exceptions-Fail-Cannot-match/m-p/220600#M84393</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-10-17T14:28:16Z</dc:date>
    </item>
  </channel>
</rss>

