Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Error installing standalone ambari server

Solved Go to solution

Error installing standalone ambari server

Hi Team,

While trying to install standalone Ambari server on one of the existing edge node. Below is the error I got every time when I ran ambari-server setup command.

SELinux status is 'disabled'

Customize user account for ambari-server daemon [y/n] (n)?

ERROR: Unexpected error 'getpwuid(): uid not found: 55025'

ERROR: Exiting with exit code 1.

REASON: Failed to create user. Exiting.

Also, I don't see UID "55025" in the /etc/passwd and wondering from where it's picking this UID.

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Error installing standalone ambari server

Can you check the permissions on your ambari files, especially the repo file?

View solution in original post

3 REPLIES 3
Highlighted

Re: Error installing standalone ambari server

Can you check the permissions on your ambari files, especially the repo file?

View solution in original post

Highlighted

Re: Error installing standalone ambari server

@awhitter Thanks a lot. Ambari repo file permission was wrong.

Highlighted

Re: Error installing standalone ambari server

Super Mentor

@Jitendra Yadav

Can you please check which user has the permission to read write this file?

# ls -la /etc/yum.repos.d/ambari.repo 
-rw-r--r--. 1 root root 304 May 31 17:08 /etc/yum.repos.d/ambari.repo

.

You can verify the same using this Python script"

import os
import pwd
print 'Who Owns it: ' + pwd.getpwuid(os.stat("/etc/yum.repos.d/ambari.repo").st_uid).pw_name

.

Now If do the following:

# useradd 55025
# chown 55025 /etc/yum.repos.d/ambari.repo

.

Then you will see 55025 in the output.

Don't have an account?
Coming from Hortonworks? Activate your account here