ambari-server setu ERROR: Unexpected error 'getpwuid(): uid not found: 1001'

created at 07-11-2021 views: 3

solution

chown root:root ambari.repo modify owner

here is a example:

[root@bigdata01 yum.repos.d]# ls
ambari.repo  hanrun.repo  hdp.repo
[root@bigdata01 yum.repos.d]# ls -l
total 12
-rw-r--r-- 1 1001 users 278 Dec  8 16:04 ambari.repo
-rw-r--r-- 1 root root   85 Dec  8 11:12 hanrun.repo
-rw-r--r-- 1 1001 users 520 Dec  8 15:57 hdp.repo
[root@bigdata01 yum.repos.d]# ll
total 12
-rw-r--r-- 1 1001 users 278 Dec  8 16:04 ambari.repo
-rw-r--r-- 1 root root   85 Dec  8 11:12 hanrun.repo
-rw-r--r-- 1 1001 users 520 Dec  8 15:57 hdp.repo
[root@bigdata01 yum.repos.d]# chown root ambari.repo 
[root@bigdata01 yum.repos.d]# ls -l
total 12
-rw-r--r-- 1 root users 278 Dec  8 16:04 ambari.repo
-rw-r--r-- 1 root root   85 Dec  8 11:12 hanrun.repo
-rw-r--r-- 1 1001 users 520 Dec  8 15:57 hdp.repo
Please log in to leave a comment.