Pivotal Knowledge Base

Follow

Ambari server: ulimit: open files: cannot modify limit: Operation not permitted

Environment

  • PHD 3.0
  • Ambari 1.7.1
  • CentOS 6.4

Symptoms

After installing ambari server and specifying a different non-root user, 'ambari-server start' will return an error related to open files ulimit:

[root@aiadmin ~]# ambari-server setup
Using python /usr/bin/python2.6
Setup ambari-server
Checking SELinux...
SELinux status is 'disabled'
Ambari-server daemon is configured to run under user 'ambari'. Change this setting [y/n] (n)? y
Enter user account for ambari-server daemon (root):ambari
Adjusting ambari-server permissions and ownership...
Checking firewall...
Checking JDK...

[root@aiadmin ~]# ambari-server start
Organizing resource files at /var/lib/ambari-server/resources...
Server PID at: /var/run/ambari-server/ambari-server.pid
Server out at: /var/log/ambari-server/ambari-server.out
Server log at: /var/log/ambari-server/ambari-server.log
Waiting for server start....sh: line 0: ulimit: open files: cannot modify limit: Operation not permitted
................
Ambari Server 'start' completed successfully. 

Cause

This is a known bug in AMBARI-9227, which will be fixed in future releases (target version is 2.1).

Workaround

Manually set the ulimit for ambari user to 10,000 open files in /etc/security/limits.conf and restart the Ambari server.

The ulimit entry should look like:

ambari - nofile 10000

Comments

Powered by Zendesk