ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jayush Luniya (JIRA)" <>
Subject [jira] [Created] (AMBARI-9117) Ambari Upgrade leaves empty package directory after services were moved to common services
Date Wed, 14 Jan 2015 01:56:34 GMT
Jayush Luniya created AMBARI-9117:

             Summary: Ambari Upgrade leaves empty package directory after services were moved
to common services
                 Key: AMBARI-9117
             Project: Ambari
          Issue Type: Task
          Components: ambari-agent, ambari-server
    Affects Versions: 2.0.0
            Reporter: Jayush Luniya
            Assignee: Jayush Luniya
            Priority: Critical
             Fix For: 2.0.0

After upgrading Ambari from 1.7.0 to 2.0.0, the Dashboard does not come up because the agent
host check fails since the common services scripts are not copied to /var/lib/ambari-agent/cache/
This could be related to AMBARI-8695
1. Install Ambari 1.7.0 on a single node cluster, and add HDP 2.2 with HDFS and ZK
2. Upgrade Ambari to 2.0.0
Stop all services

ambari-server stop
ambari-agent stop
wget -nv -O /etc/yum.repos.d/ambari.repo
yum clean all
yum upgrade ambari-server ambari-log4j

# Note, there's currently in a bug in,
# Need to change 
# if upgrade and compare_versions(version, "1.7.0") >= 0:
# to
# if upgrade and compare_versions(version, "1.7.0") == 0:

ambari-server upgrade
yum upgrade ambari-agent
rpm -qa | grep ambari
ambari-server start
ambari-agent start

less /var/log/ambari-agent/ambari-agent.log
INFO 2015-01-07 21:33:16,239 - Executing command with id = 1-1 for role
= check_host of cluster null.
INFO 2015-01-07 21:33:16,244 - Running command ['/usr/bin/python2.6',
    raise AgentException(message)
AgentException: 'Script /var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/ZOOKEEPER/package/scripts/
does not exist'
WARNING 2015-01-09 00:00:10,207 - Error occured during cache update. Error
tolerate setting is set to true, so ignoring this error and continuing with current cache.
 details: Can not unpack zip file to directory /var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/ZOOKEEPER/package
: File is not a zip file
ERROR 2015-01-09 00:00:10,208 - Caught an exception while
executing custom service command: <class 'AgentException.AgentException'>: 'Script /var/lib/ambar
i-agent/cache/stacks/HDP/2.0.6/services/ZOOKEEPER/package/scripts/ does
not exist'; 'Script /var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/ZOOKEEPER/package/scrip
ts/ does not exist'
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/ambari_agent/", line
136, in runCommand
    script_path = self.resolve_script_path(base_dir, script)
  File "/usr/lib/python2.6/site-packages/ambari_agent/", line
270, in resolve_script_path
    raise AgentException(message)

This message was sent by Atlassian JIRA

View raw message