热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

ZEPPELIN1225.Errorsbeforethelastshellcommandareignored

What is this PR for?The problem is that command "bash -c " will always return 0 as long as the last


What is this PR for?

The problem is that command "bash -c " will always return 0 as long as the last line of shell script run correctly. e.g the following command will run correctly without any error message.

1
2
hello

pwd

This PR will redirect stderr and stdout to the same place, and will display both the stderr and stdout to frontend just like what user see in the native shell terminal. So the output of above command will be as following

1
2
bash: hello: command not found

/Users/jzhang/github/zeppelin


What type of PR is it?

[Bug Fix]

What is the Jira issue?


  • https://issues.apache.org/jira/browse/ZEPPELIN-1225

How should this be tested?

Unit test is added and also manually verify it on zeppelin notebook.

Screenshots (if appropriate)


Questions:


  • Does the licenses files need update? No

  • Is there breaking changes for older versions? No

  • Does this needs documentation? No

该提问来源于开源项目:apache/zeppelin

Merged into master. However, it wasn't able to be merged in branch-0.6 with conflict.
So I'm resolving issue ZEPPELIN-1225 with fixversion 0.7.0.



You can always create PR to branch-0.6, when you think this patch should be included in branch-0.6.


   



推荐阅读
author-avatar
贺娥岚761
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有