<?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 Grafana installation failing after I upgraded Ambari from 2.2 to 2.5 in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Grafana-installation-failing-after-I-upgraded-Ambari-from-2/m-p/204320#M166309</link>
    <description>&lt;PRE&gt;Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py", line 37, in &amp;lt;module&amp;gt;
    AfterInstallHook().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 329, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py", line 31, in hook
    setup_stack_symlinks()
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py", line 52, in setup_stack_symlinks
    stack_select.select_all(version)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/stack_select.py", line 135, in select_all
    Execute(command, only_if = only_if_command)
  File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 166, in __init__
    self.env.run()
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 160, in run
    self.run_action(resource, action)
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 124, in run_action
    provider_action()
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 262, in action_run
    tries=self.resource.tries, try_sleep=self.resource.try_sleep)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 72, in inner
    result = function(command, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 102, in checked_call
    tries=tries, try_sleep=try_sleep, timeout_kill_strategy=timeout_kill_strategy)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 150, in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 303, in _call
    raise ExecutionFailed(err_msg, code, out, err)
resource_management.core.exceptions.ExecutionFailed: Execution of 'ambari-sudo.sh /usr/bin/hdp-select set all `ambari-python-wrap /usr/bin/hdp-select versions | grep ^2.3.4.0-3485 | tail -1`' returned 1. Traceback (most recent call last):
  File "/usr/bin/hdp-select", line 378, in &amp;lt;module&amp;gt;
    printVersions()
  File "/usr/bin/hdp-select", line 235, in printVersions
    result[tuple(map(int, versionRegex.split(f)))] = f
ValueError: invalid literal for int() with base 10: 'ssl'
ERROR: set command takes 2 parameters, instead of 1


usage: hdp-select [-h] [&amp;lt;command&amp;gt;] [&amp;lt;package&amp;gt;] [&amp;lt;version&amp;gt;]


Set the selected version of HDP.


positional arguments:
  &amp;lt;command&amp;gt;   One of set, status, versions, or packages
  &amp;lt;package&amp;gt;   the package name to set
  &amp;lt;version&amp;gt;   the HDP version to set


optional arguments:
  -h, --help  show this help message and exit
  -r, --rpm-mode  if true checks if there is symlink exists and creates the symlink if it doesn't


Commands:
  set      : set the package to a specified version
  status   : show the version of the package
  versions : show the currently installed versions
  packages : show the individual package names
&lt;/PRE&gt;</description>
    <pubDate>Fri, 16 Sep 2022 12:19:27 GMT</pubDate>
    <dc:creator>prakashpunj</dc:creator>
    <dc:date>2022-09-16T12:19:27Z</dc:date>
    <item>
      <title>Grafana installation failing after I upgraded Ambari from 2.2 to 2.5</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Grafana-installation-failing-after-I-upgraded-Ambari-from-2/m-p/204320#M166309</link>
      <description>&lt;PRE&gt;Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py", line 37, in &amp;lt;module&amp;gt;
    AfterInstallHook().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 329, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py", line 31, in hook
    setup_stack_symlinks()
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py", line 52, in setup_stack_symlinks
    stack_select.select_all(version)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/stack_select.py", line 135, in select_all
    Execute(command, only_if = only_if_command)
  File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 166, in __init__
    self.env.run()
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 160, in run
    self.run_action(resource, action)
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 124, in run_action
    provider_action()
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 262, in action_run
    tries=self.resource.tries, try_sleep=self.resource.try_sleep)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 72, in inner
    result = function(command, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 102, in checked_call
    tries=tries, try_sleep=try_sleep, timeout_kill_strategy=timeout_kill_strategy)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 150, in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 303, in _call
    raise ExecutionFailed(err_msg, code, out, err)
resource_management.core.exceptions.ExecutionFailed: Execution of 'ambari-sudo.sh /usr/bin/hdp-select set all `ambari-python-wrap /usr/bin/hdp-select versions | grep ^2.3.4.0-3485 | tail -1`' returned 1. Traceback (most recent call last):
  File "/usr/bin/hdp-select", line 378, in &amp;lt;module&amp;gt;
    printVersions()
  File "/usr/bin/hdp-select", line 235, in printVersions
    result[tuple(map(int, versionRegex.split(f)))] = f
ValueError: invalid literal for int() with base 10: 'ssl'
ERROR: set command takes 2 parameters, instead of 1


usage: hdp-select [-h] [&amp;lt;command&amp;gt;] [&amp;lt;package&amp;gt;] [&amp;lt;version&amp;gt;]


Set the selected version of HDP.


positional arguments:
  &amp;lt;command&amp;gt;   One of set, status, versions, or packages
  &amp;lt;package&amp;gt;   the package name to set
  &amp;lt;version&amp;gt;   the HDP version to set


optional arguments:
  -h, --help  show this help message and exit
  -r, --rpm-mode  if true checks if there is symlink exists and creates the symlink if it doesn't


Commands:
  set      : set the package to a specified version
  status   : show the version of the package
  versions : show the currently installed versions
  packages : show the individual package names
&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Sep 2022 12:19:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Grafana-installation-failing-after-I-upgraded-Ambari-from-2/m-p/204320#M166309</guid>
      <dc:creator>prakashpunj</dc:creator>
      <dc:date>2022-09-16T12:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Grafana installation failing after I upgraded Ambari from 2.2 to 2.5</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Grafana-installation-failing-after-I-upgraded-Ambari-from-2/m-p/204321#M166310</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1277/prakashpunj.html" nodeid="1277"&gt;@Prakash Punj&lt;/A&gt;&lt;/P&gt;&lt;P&gt;We see the error:&lt;/P&gt;&lt;PRE&gt;resource_management.core.exceptions.ExecutionFailed: Execution of 'ambari-sudo.sh /usr/bin/hdp-select set all `ambari-python-wrap /usr/bin/hdp-select versions | grep ^2.3.4.0-3485 | tail -1`' returned 1. 

Traceback (most recent call last):  File "/usr/bin/hdp-select", line 378, in &amp;lt;module&amp;gt;    printVersions()  File "/usr/bin/hdp-select", line 235, in printVersions    result[tuple(map(int, versionRegex.split(f)))] = fValueError: invalid literal for int() with base 10: 'ssl'&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;this usually happens if you have some Manually created / copied directories (or files) inside the "/usr/hdp" directory.&lt;/P&gt;&lt;P&gt;Please remove any unwanted directory from "/usr/hdp" and then try installing Grafana again.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2017 10:46:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Grafana-installation-failing-after-I-upgraded-Ambari-from-2/m-p/204321#M166310</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-10-02T10:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Grafana installation failing after I upgraded Ambari from 2.2 to 2.5</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Grafana-installation-failing-after-I-upgraded-Ambari-from-2/m-p/204322#M166311</link>
      <description>&lt;PRE&gt;Thanks @Jay SenSharma. &lt;/PRE&gt;&lt;P&gt;Not sure which file or directory I need to remove. They may be important. Can you take a look at my directory structure and advise. &lt;/P&gt;&lt;PRE&gt;[centos@hdp-m:/usr/hdp ] $ ls -l
total 24
drwxr-xr-x. 30 root root 4096 Feb 23  2016 2.3.4.0-3485
drwxr-xr-x.  2 root root 4096 Feb 15  2016 current
-rw-r--r--.  1 root root 4924 Feb 17  2016 samit-ca.crt
-rw-r--r--.  1 root root 1927 Feb 17  2016 samit.crt
-rw-r--r--.  1 root root 1704 Feb 17  2016 samit.key
drwxr-xr-x.  2 root root   88 Feb 17  2016 ssl
[centos@hdp-m:/usr/hdp ] $ cd ssl
[centos@hdp-m:/usr/hdp/ssl ] $ ls
ambari-server-truststore  samit-ca.crt  samit.crt  samit.key
[centos@hdp-m:/usr/hdp/ssl ] $ cd ssl
-bash: cd: ssl: No such file or directory
[centos@hdp-m:/usr/hdp/ssl ] $ pwd
/usr/hdp/ssl
[centos@hdp-m:/usr/hdp/ssl ] $ ls -l
total 20
-rw-r--r--. 1 root root 1451 Feb 17  2016 ambari-server-truststore
-rw-r--r--. 1 root root 4924 Feb 17  2016 samit-ca.crt
-rw-r-----. 1 root root 1927 Feb 17  2016 samit.crt
-rw-r--r--. 1 root root 1704 Feb 17  2016 samit.key


&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 Oct 2017 19:42:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Grafana-installation-failing-after-I-upgraded-Ambari-from-2/m-p/204322#M166311</guid>
      <dc:creator>prakashpunj</dc:creator>
      <dc:date>2017-10-02T19:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Grafana installation failing after I upgraded Ambari from 2.2 to 2.5</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Grafana-installation-failing-after-I-upgraded-Ambari-from-2/m-p/204323#M166312</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay SenSharma&lt;/A&gt;. &lt;/P&gt;&lt;P&gt;Can you please take a look at the following directory structure and advise which ones I need to remove. &lt;/P&gt;&lt;PRE&gt;[centos@hdp-m:/usr/hdp ] $ ls -l
total 24
drwxr-xr-x. 30 root root 4096 Feb 23  2016 2.3.4.0-3485
drwxr-xr-x.  2 root root 4096 Feb 15  2016 current
-rw-r--r--.  1 root root 4924 Feb 17  2016 samit-ca.crt
-rw-r--r--.  1 root root 1927 Feb 17  2016 samit.crt
-rw-r--r--.  1 root root 1704 Feb 17  2016 samit.key
drwxr-xr-x.  2 root root   88 Feb 17  2016 ssl
[centos@hdp-m:/usr/hdp ] $ cd ssl
[centos@hdp-m:/usr/hdp/ssl ] $ ls
ambari-server-truststore  samit-ca.crt  samit.crt  samit.key
[centos@hdp-m:/usr/hdp/ssl ] $ cd ssl
-bash: cd: ssl: No such file or directory
[centos@hdp-m:/usr/hdp/ssl ] $ pwd
/usr/hdp/ssl
[centos@hdp-m:/usr/hdp/ssl ] $ ls -l
total 20
-rw-r--r--. 1 root root 1451 Feb 17  2016 ambari-server-truststore
-rw-r--r--. 1 root root 4924 Feb 17  2016 samit-ca.crt
-rw-r-----. 1 root root 1927 Feb 17  2016 samit.crt
-rw-r--r--. 1 root root 1704 Feb 17  2016 samit.key


&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 Oct 2017 19:44:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Grafana-installation-failing-after-I-upgraded-Ambari-from-2/m-p/204323#M166312</guid>
      <dc:creator>prakashpunj</dc:creator>
      <dc:date>2017-10-02T19:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Grafana installation failing after I upgraded Ambari from 2.2 to 2.5</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Grafana-installation-failing-after-I-upgraded-Ambari-from-2/m-p/204324#M166313</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1277/prakashpunj.html" nodeid="1277"&gt;@Prakash Punj&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please have only the following directories inside the "/usr/hdp"   and move rest of the files and directories.&lt;/P&gt;&lt;PRE&gt;2.3.4.0-3485
current&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;I am suspecting that the "&lt;STRONG&gt;ssl&lt;/STRONG&gt;" directory there is actually causing the issue.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2017 22:22:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Grafana-installation-failing-after-I-upgraded-Ambari-from-2/m-p/204324#M166313</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-10-02T22:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Grafana installation failing after I upgraded Ambari from 2.2 to 2.5</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Grafana-installation-failing-after-I-upgraded-Ambari-from-2/m-p/204325#M166314</link>
      <description>&lt;P&gt;Great, This does seem to work..&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;prakash&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 01:11:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Grafana-installation-failing-after-I-upgraded-Ambari-from-2/m-p/204325#M166314</guid>
      <dc:creator>prakashpunj</dc:creator>
      <dc:date>2017-10-03T01:11:20Z</dc:date>
    </item>
  </channel>
</rss>

