gpt4 book ai didi

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

转载 作者:可可西里 更新时间:2023-11-01 14:52:24 28 4
gpt4 key购买 nike

在 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

最佳答案

我修改了脚本 $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

nice -n $YARN_NICENESS "$HADOOP_YARN_HOME"/bin/yarn --config $YARN_CONF_DIR $command "$@"> "$log"2>&1

现在我可以启动资源管理器了

关于macos - nohup : can't detach from console: Inappropriate ioctl for device,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39485095/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com