Support Questions
Find answers, ask questions, and share your expertise

After installation of Ambari (2.7.1) and HDP (3.0.1), services don't start

New Contributor



I am trying to install HDP in a single node for development (Ambari agent and host on the same node, also all the components). I am using the default guides and documentation from Hortonworks but I am stuck after installing the components.

After installation of Apache Ambari ( and HDP stack (HDP- []), services can't start. even after installation or after a reboot and manual request.
Ranger fails to start, then the next procedures stop due to a timeout in the Ambari operation. I suppose the same situation will apply for the other services (except for those already running)

Where I can diagnose the applications or the OS to unlock this issue? I am sure it is not an Ambari bug but it must be something from my OS. I have tried other suggestions from similar issues but with success.

Firewall is disabled by default. Also, I am using PostgreSQL as DB support.

Here are the command outputs:

Step 9 of Cluster wizard:

Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/RANGER/package/scripts/", line 133, in 
  File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/", line 354, in execute
  self.execute_prefix_function(self.command_name, 'post', env)
  File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/", line 378, in execute_prefix_function
  File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/", line 420, in post_start
  raise Fail("Pid file {0} doesn't exist after starting of the component.".format(pid_file))
resource_management.core.exceptions.Fail: Pid file /var/run/ranger/ doesn't exist after starting of the component.

Manually trying to start all the components:


Command aborted. Reason: 'Server considered task failed and automatically aborted it'
 11:05:29,218 - Stack Feature Version Info: Cluster Stack=3.0, Command 
Stack=None, Command Version= ->
Command aborted. Reason: 'Server considered task failed and automatically aborted it'

Command failed after 1 tries

Configuration from server:

ulimit -c

ulimit -u



myinstallationhost (I am shadowing this information just for privacy)

hostname -f:

uname -a
Linux myinstallationhost 4.4.120-92.70-default #1 SMP Wed Mar 14 15:59:43 UTC 2018 (52a83de) x86_64 x86_64 x86_64 GNU/Linux

PRETTY_NAME="SUSE Linux Enterprise Server 12 SP2"

free -h
  total  used  free  shared  buffers  cached
Mem:  251G  19G  232G  202M  596M  8.1G
-/+ buffers/cache:  10G  241G
Swap:  8.0G  0B  8.0G

df -h
Filesystem  Size  Used Avail Use% Mounted on
devtmpfs  126G  8.0K  126G  1% /dev
tmpfs  126G  4.0K  126G  1% /dev/shm
tmpfs  126G  174M  126G  1% /run
tmpfs  126G  0  126G  0% /sys/fs/cgroup
/dev/sda3  98G  16G  82G  16% /
/dev/sda1  1.1G  4.6M 1021M  1% /boot/efi
/dev/sda4  4.8G  1.2G  3.5G  25% /tmp
/dev/sda5  9.8G  2.2G  7.1G  24% /var
/dev/sdb3  4.6G  17M  4.3G  1% /home
/dev/sda10  9.8G  23M  9.2G  1% /logs
/dev/sdb1  3.3T  373G  2.9T  12% /hadoop
/dev/sda9  64G  165M  63G  1% /datos
/dev/sda6  4.8G  601M  4.0G  13% /var/log
/dev/sda8  64G  54M  63G  1% /backup
/dev/sda11  11G  26M  9.6G  1% /scripts
/dev/sda7  980M  2.6M  910M  1% /var/log/audit
tmpfs  26G  0  26G  0% /run/user/2106
tmpfs  26G  0  26G  0% /run/user/2150
tmpfs  26G  0  26G  0% /run/user/0
tmpfs  26G  0  26G  0% /run/user/2155
tmpfs  26G  0  26G  0% /run/user/2143
tmpfs  26G  0  26G  0% /run/user/2144
tmpfs  26G  0  26G  0% /run/user/2152
tmpfs  26G  0  26G  0% /run/user/2130
tmpfs  26G  0  26G  0% /run/user/2153
# hosts  This file describes a number of hostname-to-address
#  mappings for the TCP/IP subsystem.  It is mostly
#  used at boot time, when no name servers are running.
#  On small systems, this file can be used instead of a
#  "named" name server.
# Syntax:
# IP-Address  Full-Qualified-Hostname  Short-Hostname
#  localhost 

# special IPv6 addresses
::1  localhost ipv6-localhost ipv6-loopback

fe00::0  ipv6-localnet 

ff00::0  ipv6-mcastprefix 
ff02::1  ipv6-allnodes 
ff02::2  ipv6-allrouters 
ff02::3  ipv6-allhosts myinstallationhost


Also, I am attaching Screenshots from Ambari Dashboard.






Super Collaborator

@Israel Zúñiga de la Mora

Can you check exists under /var/run/ranger/ on Ranger tagsync host with appropriate permission

New Contributor does not exist on the location. There is the with permissions for ranger user, but there isn't a clue a bout the other file.

Also, I verified during the effort of starting all services (from Ambari Dashboard). But it didn't change anything.

ls -alsh

total 4.0K
   0 drwxr-xr-x  2 ranger hadoop   60 Dec  5 12:02 .
   0 drwxr-xr-x 50 root   root   1.3K Dec  7 12:54 ..
4.0K -rw-rw----  1 ranger hadoop    5 Dec  5 12:02

New Contributor

I facing the same problem, I can't find on that location and in the ambari server it says : doesn't exist after starting of the component.

Did you found a solution ? 

I would start a new question.  Responding to an old topic, even if related may not get individual attention you need to answer your specific question.   When creating a new topic, you can surely reference an original topic by including a link to it.  Also be sure to provide some context of your issue. Including cluster info, stack info, infrastructure, associated errors, and other items to help our community contributors best respond to your question(s).


To anyone reading this original post:   be very careful with a single node and 15-20+ components.  It will be very hard to nearly impossible to get that full stack running on a single node.    As a symptom of doing this, individual services will not complete start up.  Additionally there could be remnants missing from installation of 1 or more components which are not able to be completed due to over loading the single node's capacity (memory, cores, etc).

New Contributor

Similar issue. Got such error after HA and SSL for Ranger had been configured.

; ;