Member since
01-14-2016
2
Posts
0
Kudos Received
0
Solutions
07-05-2017
12:21 PM
@Alireza Sadeghi
You can apply this patch using "patch" command: http://www.tutorialspoint.com/unix_commands/patch.htm 1) Install patch application yum install patch 2) Download patch AMBARI-21263 wget https://issues.apache.org/jira/secure/attachment/12873572/AMBARI-21263.patch 3) Backup serverUpgrade.py file cp /usr/lib/python2.6/site-packages/ambari_server/serverUpgrade.py /usr/lib/python2.6/site-packages/ambari_server/serverUpgrade.py_org 4) Apply patch patch < AMBARI-21263.patch
can't find file to patch at input line 5
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/ambari-server/src/main/python/ambari_server/serverUpgrade.py b/ambari-server/src/main/python/ambari_server/serverUpgrade.py
|index 160c91d..8263062 100644
|--- a/ambari-server/src/main/python/ambari_server/serverUpgrade.py
|+++ b/ambari-server/src/main/python/ambari_server/serverUpgrade.py
--------------------------
File to patch: /usr/lib/python2.6/site-packages/ambari_server/serverUpgrade.py
patching file /usr/lib/python2.6/site-packages/ambari_server/serverUpgrade.py 5) Check files differences diff /usr/lib/python2.6/site-packages/ambari_server/serverUpgrade.py /usr/lib/python2.6/site-packages/ambari_server/serverUpgrade.py_org
... View more