nohup:无法从控制台分离:设备不适当的ioctl

时间:2016-09-14 07:46:31

标签: macos hadoop

在OSX上启动hadoop资源管理器时,我收到以下错误:

bash-3.2$ start-yarn.sh

starting yarn daemons

starting resourcemanager, logging to /Users/hadoop/hadoop-2.7.3/logs/yarn-hadoop-resourcemanager-MacBook-Pro-2.local.out

nohup: can't detach from console: Inappropriate ioctl for device

localhost: starting nodemanager, logging to /Users/hadoop/hadoop-2.7.3/logs/yarn-hadoop-nodemanager-MacBook-Pro-2.local.out

bash-3.2$ cat /Users/hadoop/hadoop-2.7.3/logs/yarn-hadoop-resourcemanager-MacBook-Pro-2.local.out

nohup: can't detach from console: Inappropriate ioctl for device

ulimit -a

core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 256
pipe size (512 bytes, -p) 1
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 709
virtual memory (kbytes, -v) unlimited

2 个答案:

答案 0 :(得分:1)

我修改了脚本$ HADOOP_HOME / sbin / yarn-daemon.sh,即:删除nohup

来自:

nohup nice -n $ YARN_NICENESS“$ HADOOP_YARN_HOME”/ bin / yarn --config $ YARN_CONF_DIR $ command“$ @”> “$ log”2>& 1< / dev / null&

nice -n $ YARN_NICENESS“$ HADOOP_YARN_HOME”/ bin / yarn --config $ YARN_CONF_DIR $ command“$ @”> “$ log”2>& 1< / dev / null&

现在我可以启动resourcemanager

答案 1 :(得分:0)

/etc/ssh/sshd_config

制作

UsePAM

UsePAM