linux 环境下执行kettle报

nested exception is java.awt.AWTError: Can’t connect to X11 window server using ‘localhost:10.0’ as the value of the DISPLAY variable.

 

1.原因:因为用到了图形处理,java程序会去寻找linux上的图形界面是否启动
2.解决:不让java寻找linux图形界面即可,在java 启动时加选项java -Djava.awt.headless=true 
3.实现:在执行的脚本前加入 export JAVA_OPTS=-Djava.awt.headless=true,即可

 

 

 
posted on 2021-01-29 16:22  爱吃萝卜青菜  阅读(4263)  评论(0)    收藏  举报