ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Onischuk" <aonis...@hortonworks.com>
Subject Review Request 35999: Zookeeper server restart failed after 1.7 to 2.1
Date Mon, 29 Jun 2015 15:25:55 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/35999/
-----------------------------------------------------------

Review request for Ambari and Vitalyi Brodetskyi.


Bugs: AMBARI-12203
    https://issues.apache.org/jira/browse/AMBARI-12203


Repository: ambari


Description
-------

After upgrading Ambari 1.7 to Ambari 2.1, Zookeeper failed to restart with the
following error:  
`/usr/hdp/current/zookeeper-server/bin/zkServer.sh: No such file or directory`

    
    
    Traceback (most recent call last):
      File "/var/lib/ambari-agent/cache/common-services/ZOOKEEPER/3.4.5.2.0/package/scripts/zookeeper_server.py",
line 176, in <module>
        ZookeeperServer().execute()
      File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 216, in execute
        method(env)
      File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 438, in restart
        self.stop(env)
      File "/var/lib/ambari-agent/cache/common-services/ZOOKEEPER/3.4.5.2.0/package/scripts/zookeeper_server.py",
line 60, in stop
        zookeeper_service(action = 'stop')
      File "/usr/lib/python2.6/site-packages/ambari_commons/os_family_impl.py", line 89, in
thunk
        return fn(*args, **kwargs)
      File "/var/lib/ambari-agent/cache/common-services/ZOOKEEPER/3.4.5.2.0/package/scripts/zookeeper_service.py",
line 51, in zookeeper_service
        user=params.zk_user
      File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 157,
in __init__
        self.env.run()
      File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line
152, in run
        self.run_action(resource, action)
      File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line
118, in run_action
        provider_action()
      File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py",
line 254, 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 70,
in inner
        result = function(command, **kwargs)
      File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 92,
in checked_call
        tries=tries, try_sleep=try_sleep)
      File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 140,
in _call_wrapper
        result = _call(command, **kwargs_copy)
      File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 291,
in _call
        raise Fail(err_msg)
    resource_management.core.exceptions.Fail: Execution of 'source /usr/hdp/current/zookeeper-server/conf/zookeeper-env.sh
; env ZOOCFGDIR=/usr/hdp/current/zookeeper-server/conf ZOOCFG=zoo.cfg /usr/hdp/current/zookeeper-server/bin/zkServer.sh
stop' returned 127. -bash: /usr/hdp/current/zookeeper-server/conf/zookeeper-env.sh: No such
file or directory
    env: /usr/hdp/current/zookeeper-server/bin/zkServer.sh: No such file or directory
    

Looking for zkServer.sh, I find the following:

    
    
    # find  / -name zkServer.sh
    /usr/hdp/2.2.6.0-2800/zookeeper/bin/zkServer.sh
    /var/lib/ambari-agent/cache/common-services/ZOOKEEPER/3.4.5.2.0/package/files/zkServer.sh
    /var/lib/ambari-agent/cache/stacks_23_06_15_15_23.old/HDP/1.3.2/services/ZOOKEEPER/package/files/zkServer.sh
    /var/lib/ambari-agent/cache/stacks_23_06_15_15_23.old/HDP/2.0.6/services/ZOOKEEPER/package/files/zkServer.sh
    /var/lib/ambari-server/resources/stacks_23_06_15_15_17.old/HDP/1.3.2/services/ZOOKEEPER/package/files/zkServer.sh
    /var/lib/ambari-server/resources/stacks_23_06_15_15_17.old/HDP/2.0.6/services/ZOOKEEPER/package/files/zkServer.sh
    /var/lib/ambari-server/resources/common-services/ZOOKEEPER/3.4.5.2.0/package/files/zkServer.sh
    

Creating the missing soft link appears to fix the issue:

    
    
    ln -s /usr/hdp/2.2.6.0-2800/zookeeper  /usr/hdp/current/zookeeper-server


Diffs
-----

  ambari-server/src/main/resources/common-services/ZOOKEEPER/3.4.5.2.0/package/scripts/zookeeper.py
6a6f2d1 
  ambari-server/src/main/resources/common-services/ZOOKEEPER/3.4.5.2.0/package/scripts/zookeeper_server.py
f3e9d10 
  ambari-server/src/main/resources/common-services/ZOOKEEPER/3.4.5.2.0/package/scripts/zookeeper_service.py
59ad417 

Diff: https://reviews.apache.org/r/35999/diff/


Testing
-------

mvn clean test


Thanks,

Andrew Onischuk


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message