su: cannot set user id: Resource temporarily unavailable

Discussion in 'Linux Know Base' started by securityhope, Aug 7, 2017.

  1. securityhope

    securityhope Administrator Staff Member

    Joined:
    May 5, 2017
    Messages:
    124
    Likes Received:
    0
    Trophy Points:
    16
    1. The following error occurred when a CentOS 6.6 hadoop server su hadoop

    Su: can not set user id: Resource unavailable unavailable

    2. appear directly when the remote ssh hadoop@x.x.xx

    Write failed: Broken pipe

    3. Cause the hadoop process too many, the system ulimit limit is too small

    See /etc/security/limits.conf found to have been tuned

    Code:
    *           soft   nproc       65535
    *           hard   nproc       65535
    Solution

    Centos 6.X later added a /etc/security/limits.d/90-nproc.conf file, used to control nproc, which is the default configuration is

    Code:
    *          soft    nproc     1024
    root       soft    nproc     unlimited  
    Modify here will be 1024 according to their actual situation to change.
     

Share This Page

Share