This is an automated email from the ASF dual-hosted git repository. chengpan pushed a commit to branch branch-0.12 in repository https://gitbox.apache.org/repos/asf/zeppelin.git
The following commit(s) were added to refs/heads/branch-0.12 by this push: new 5091ac50a2 [ZEPPELIN-6108] Update MongoDB interpreter default shell value from mongo to mongosh 5091ac50a2 is described below commit 5091ac50a2bae7584eeb540d9ceb54451bdea27b Author: SeungYoung Oh <seung...@naver.com> AuthorDate: Sun Sep 29 16:17:24 2024 +0900 [ZEPPELIN-6108] Update MongoDB interpreter default shell value from mongo to mongosh ### What is this PR for? Since the release of MongoDB 5.0, the mongo shell has been deprecated and replaced by mongosh. Although MongoDB 5.0 was released in July 2021, Apache Zeppelin still uses mongo as the default shell. Updating the default shell from mongo to mongosh would help beginners adapt more easily and align with current MongoDB standards. [Reference: MongoDB 5.0 Release Note](https://www.mongodb.com/docs/manual/release-notes/5.0/#shell-changes) ### What type of PR is it? Improvement ### Todos ### What is the Jira issue? [ZEPPELIN-6108] ### How should this be tested? * Run the MongoDB notebook ### Screenshots (if appropriate) ### Questions: * Does the license files need to update? N * Is there breaking changes for older versions? N * Does this needs documentation? Y (update the docs) Closes #4846 from seung-00/ZEPPELIN-6108. Signed-off-by: Cheng Pan <cheng...@apache.org> (cherry picked from commit dfedb889a04e573c52bc05c61370b4b2bc0cf2da) Signed-off-by: Cheng Pan <cheng...@apache.org> --- docs/interpreter/mongodb.md | 4 ++-- mongodb/src/main/resources/interpreter-setting.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/interpreter/mongodb.md b/docs/interpreter/mongodb.md index 5561ee61de..84c813fc69 100644 --- a/docs/interpreter/mongodb.md +++ b/docs/interpreter/mongodb.md @@ -45,8 +45,8 @@ Second, create mongodb interpreter in Zeppelin. </tr> <tr> <td>mongo.shell.path</td> - <td>mongo</td> - <td>MongoDB shell local path. <br/> Use `which mongo` to get local path in linux or mac.</td> + <td>mongosh</td> + <td>MongoDB shell local path. <br/> Use `which mongosh` to get local path in linux or mac. <br>(For below [version 5.0](https://www.mongodb.com/docs/manual/release-notes/5.0/#shell-changes), check `mongo`)</td> </tr> <tr> <td>mongo.shell.command.table.limit</td> diff --git a/mongodb/src/main/resources/interpreter-setting.json b/mongodb/src/main/resources/interpreter-setting.json index da6268e167..ae0c6db3e5 100644 --- a/mongodb/src/main/resources/interpreter-setting.json +++ b/mongodb/src/main/resources/interpreter-setting.json @@ -7,7 +7,7 @@ "mongo.shell.path": { "envName": "MONGO_SHELL_PATH", "propertyName": "mongo.shell.path", - "defaultValue": "mongo", + "defaultValue": "mongosh", "description": "MongoDB shell local path", "type": "string" },