Reply
New Contributor
Posts: 11
Registered: ‎08-07-2017

Re: Missing supervisord.conf in /run/cloudera-scm-agent/supervisor/ directory

it's failed, still same error, I think the supervisor  can't run because missing supervisor

Explorer
Posts: 9
Registered: ‎08-07-2017

Re: Missing supervisord.conf in /run/cloudera-scm-agent/supervisor/ directory

Do you run script which I post ? 

import psutil
import os

path = '/run/cloudera-scm-agent/process'

for p in psutil.disk_partitions(all=True):
    if os.path.samefile(p.mountpoint, path) and p.fstype == "tmpfs" and "noexec" not in p.opts:
        pass

Could you send an output of this script ? 

New Contributor
Posts: 11
Registered: ‎08-07-2017

Re: Missing supervisord.conf in /run/cloudera-scm-agent/supervisor/ directory

it's missed "psutil" lib , I checked /var/run/{pid}/,  can't find  /run/user/$uid/gvfs ,so.....

Explorer
Posts: 9
Registered: ‎08-07-2017

Re: Missing supervisord.conf in /run/cloudera-scm-agent/supervisor/ directory

[ Edited ]

Cloudo you can simple install psutill by typing pip install psutil

 

Change your mount_tmpfs function like this I think It has to work.

for p in psutil.disk_partitions(all=True):
    if p.mountpoint == path:              
       if os.path.samefile(p.mountpoint, path) and p.fstype == "tmpfs" and "noexec" not in p.opts:
         if clean_existing:
           if not _mount_tmpfs(path, False, sudo=sudo):
             # Failed to unmount, reuse.
             reuse = True
         else:
           # Existing tmpfs without noexec, reuse.
           reuse = True
         break

 

 

Highlighted
New Contributor
Posts: 11
Registered: ‎08-07-2017

Re: Missing supervisord.conf in /run/cloudera-scm-agent/supervisor/ directory

I have already tried it, it's a local network machine that is offline. when i install "py-util",it's need "python-dev",but can't find python-dev at internet.

Announcements