felixcheung commented on a change in pull request #3371: [ZEPPELIN-4171]
Configuration paragraph is empty to execute
URL: https://github.com/apache/zeppelin/pull/3371#discussion_r287584223
##########
File path:
zeppelin-zengine/src/main/java/org/apache/zeppelin/notebook/Paragraph.java
##########
@@ -344,6 +346,24 @@ public int progress() {
}
public boolean isBlankParagraph() {
+ // check interpreter-setting.json `config.checkEmpty` is equal false
+ Object configCheckEmpty = this.config.get(PARAGRAPH_CONFIG_CHECK_EMTPY);
+ if (null != configCheckEmpty) {
+ boolean checkEmtpy = PARAGRAPH_CONFIG_CHECK_EMTPY_DEFAULT;
+ try {
+ checkEmtpy = (boolean) configCheckEmpty;
+ } catch (ClassCastException e) {
+ LOGGER.error(e.getMessage(), e);
+ } catch (Exception e) {
+ LOGGER.error(e.getMessage(), e);
+ }
+ if (!checkEmtpy) {
+ LOGGER.info("This interpreter config `interpreter-setting.json` set
config.{} = false",
Review comment:
i thought it's `interpreter.json `
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services