guyuqi commented on pull request #796:
URL: https://github.com/apache/bigtop/pull/796#issuecomment-876880524


   > I got 2 issues on (re)installing ambari-server on CentOS 7.
   > 
   > * ‘/var/lib/ambari-server/resources/views/*.jar’: No such file or directory
   > * synbolic link created in the 1st pass seems to be staying.
   > 
   > ```
   > # yum remove ambari-server
   > # yum install ambari-server
   > ...
   > cp: cannot stat ‘/var/lib/ambari-server/resources/views/*.jar’: No such 
file or directory
   >   Installing : ambari-server-2.7.5.0-1.el7.noarch                          
                             1/1 
   > /var/tmp/rpm-tmp.zHadY6: line 18: 
/usr/lib/python2.7/site-packages/resource_management: Is a directory
   > ln: failed to create symbolic link ‘./resource_management’: File exists
   > ...
   > ```
   
   In rpm spec:
   ```
   # remove RESOURCE_MANAGEMENT_DIR if it's a directory
   if [ -d "$RESOURCE_MANAGEMENT_DIR" ]; then  # resource_management dir exists
     if [ ! -L "$RESOURCE_MANAGEMENT_DIR" ]; then # resource_management dir is 
not link
       rm -rf "$RESOURCE_MANAGEMENT_DIR"
     fi
   fi
   ```
   These links will be removed when install rpm installation.
   
   And no issues occurred by directly using `rpm -i` :
   ```
   rpm -ivh ambari-server-2.7.5.0-1.el7.noarch.rpm
   rpm -qa | grep 'ambari'
   rpm -e ambari-server-2.7.5.0-1.el7.noarch
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to