2016-09-14 43 views
2

雖然在OSX開始Hadoop的資源管理器,我得到以下錯誤:的nohup:不能從控制檯分離:不適當的IOCTL用於設備

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 
+0

可能的重複http://stackoverflow.com/questions/23898623/nohup-cant-detach-from-console – patrungel

+0

喜patrungel,這是一個不同的問題,但我發現一個解決方法,在下面發佈 – Panda123

回答

1

我修改劇本$ HADOOP_HOME/sbin目錄/紗守護。 SH,即:

nohup的不錯-n $ YARN_NICENESS 「$ HADOOP_YARN_HOME」/斌/紗--config $ YARN_CONF_DIR $命令 「$ @」> 「$日誌」 2> & 1:nohup的

刪除</dev/null &

不錯-n $ YARN_NICENESS 「$ HADOOP_YARN_HOME」/斌/紗--config $ YARN_CONF_DIR $命令 「$ @」> 「$日誌」 2> 的/ dev/null的&

,現在我能夠啓動的ResourceManager

相關問題