mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
### What is this PR for?
This PR create shell script `bin/update-note.sh` to help user to upgrade note from 0.9 before to 0.9 after (as zeppelin change its note file structure [ZEPPELIN-2619](https://issues.apache.org/jira/browse/ZEPPELIN-2619))
Besides that I also remove `zeppelin.notebook.new_format.convert` and `zeppelin.notebook.new_format.delete_old` `rom ZeppelinConfiguration.java`, so that the only way to upgrade note is via this shell script `bin/update-note.sh`.
### What type of PR is it?
[ Improvement | Documentation]
### Todos
* [ ] - Task
### What is the Jira issue?
* https://jira.apache.org/jira/browse/ZEPPELIN-3977
### How should this be tested?
* CI pass
### Screenshots (if appropriate)
### Questions:
* Does the licenses files need update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No
Author: Jeff Zhang <zjffdu@apache.org>
Closes #3320 from zjffdu/ZEPPELIN-3977 and squashes the following commits:
bced529a7 [Jeff Zhang] [ZEPPELIN-3977]. Create shell script for converting old note file to new file
3.9 KiB
3.9 KiB
| layout | title | description | group |
|---|---|---|---|
| page | Manual Zeppelin version upgrade procedure | This document will guide you through a procedure of manual upgrade your Apache Zeppelin instance to a newer version. Apache Zeppelin keeps backward compatibility for the notebook file format. | setup/operation |
{% include JB/setup %}
Manual upgrade procedure for Zeppelin
Basically, newer version of Zeppelin works with previous version notebook directory and configurations.
So, copying notebook and conf directory should be enough.
Instructions
- Stop Zeppelin:
bin/zeppelin-daemon.sh stop - Copy your
notebookandconfdirectory into a backup directory - Download newer version of Zeppelin and Install. See Install Guide.
- Copy backup
notebookandconfdirectory into newer version of Zeppelinnotebookandconfdirectory - Start Zeppelin:
bin/zeppelin-daemon.sh start
Migration Guide
Upgrading from Zeppelin 0.8 to 0.9
- From 0.9, we change the notes file name structure (ZEPPELIN-2619). So when you upgrading zeppelin to 0.9, you need to upgrade note file. Here's steps you need to follow:
- Backup your notes file in case the upgrade fails
- Call
bin/upgrade-note.sh -dto upgrade note,-doption means to delete the old note file, missing this option will keep the old file.
Upgrading from Zeppelin 0.7 to 0.8
- From 0.8, we recommend to use
PYSPARK_PYTHONandPYSPARK_DRIVER_PYTHONinstead ofzeppelin.pyspark.pythonaszeppelin.pyspark.pythononly effects driver. You can usePYSPARK_PYTHONandPYSPARK_DRIVER_PYTHONas using them in spark. - From 0.8, depending on your device, the keyboard shortcut
Ctrl-LorCommand-Lwhich goes to the line somewhere user wants is not supported.
Upgrading from Zeppelin 0.6 to 0.7
- From 0.7, we don't use
ZEPPELIN_JAVA_OPTSas default value ofZEPPELIN_INTP_JAVA_OPTSand also the same forZEPPELIN_MEM/ZEPPELIN_INTP_MEM. If user want to configure the jvm opts of interpreter process, please setZEPPELIN_INTP_JAVA_OPTSandZEPPELIN_INTP_MEMexplicitly. If you don't setZEPPELIN_INTP_MEM, Zeppelin will set it to-Xms1024m -Xmx1024m -XX:MaxPermSize=512mby default. - Mapping from
%jdbc(prefix)to%prefixis no longer available. Instead, you can use %[interpreter alias] with multiple interpreter setttings on GUI. - Usage of
ZEPPELIN_PORTis not supported in ssl mode. Instead useZEPPELIN_SSL_PORTto configure the ssl port. Value fromZEPPELIN_PORTis used only whenZEPPELIN_SSLis set tofalse. - The support on Spark 1.1.x to 1.3.x is deprecated.
- From 0.7, we uses
pegdownas themarkdown.parser.typeoption for the%mdinterpreter. Rendered markdown might be different from what you expected - From 0.7 note.json format has been changed to support multiple outputs in a paragraph. Zeppelin will automatically convert old format to new format. 0.6 or lower version can read new note.json format but output will not be displayed. For the detail, see ZEPPELIN-212 and pull request.
- From 0.7 note storage layer will utilize
GitNotebookRepoby default instead ofVFSNotebookRepostorage layer, which is an extension of latter one with versioning capabilities on top of it.