Lenses 5.0 is a major release which brings in new features to core components. Some of these are breaking changes, which means extra care should be taken before upgrading and following best practices: first upgrade development and staging environments, before moving to production.
Here is a shortlist of the changes that require actions before the upgrade. The most significant change is the dynamic concept of managing core Lenses connections ( Kafka , Schema Registry , Kafka Connect , Zookeeper , Kerberos ) and Wizard mode for new Lenses installations.
- The first time Lenses 5.0 is run, it will upgrade the internal database. The process is not reversible. It is recommended to backup the internal database before upgrading, so it is possible to downgrade if needed. The database holds the user and service accounts, groups information, audits, alerts, and more.
- Breaking changes in the configuration: certain keys must be removed from
lenses.confor Lenses will not start. Check Configuration Changes .
Please backup your database (
lenses.storage.directory or PostgreSQL database)
before updating to Lenses 5.0. The only way of updating Lenses in any older
version is to go through version 4.3.3 or newer. Any other attempt
(i.e. using version 4.3.0, 4.2.1 etc.) will fail with proper error message in
the logs, but it will not break the database. Rollback will be possible
using the same database —still we strongly recommend making a backup before the
extract it in a new directory on your server. It is important to avoid
extracting an archive over an older installation to avoid having multiple
versions of libraries. Instead, you should remove (or rename) the old directory,
then move the new into its place. Copy if needed and update your
security.conf files as described later —
. Make sure Lenses Storage Directory is kept
intact. The folder is where persistent data is stored, such as users, groups,
audits, data policies, connections, and more.
The docker image uses tags to distinguish between versions. The
lensesio/lenses:latest) brings the latest stable version of Lenses. There are
minor tags to help users get the latest patch in a minor version (e.g
4.3) and patch tags to help users pin to a specific patch (e.g
4.3.6). The best practice advice is to use the minor tag
lensesio/lenses:5.0), which ensures that your installation will always get
compatible updates until you made a conscious decision to upgrade the minor
To get Lenses 5.0, make sure you keep at least your
to not lose your data. Other volumes supported by the docker are
/data/kafka-streams-state (SQL Processors state),
/data/log (log files on
/data/plugins (custom UDFs).
Pull the 5.0 docker:
docker pull lensesio/lenses:5.0
Follow the Configuration Changes section to update your settings if needed. Stop
your current container and restart with the
5.0 image, mounting any volumes
you might need.
If you are a Box user, pull the latest version, preserve your
/data volume and
docker pull lensesio/box:5.0
docker stop [CURRENT BOX NAME or ID]
docker run -v /path/to/box/data:/data -e EULA="..." -p 3030 lensesio/box:5.0
Download the latest charts and update your
values.yaml as described in
. Remember that Lenses
Storage Directory should be stored in a persistent volume and be kept intact
between updates. To support a potential downgrade, make sure this volume is
backed-up before installing a newer version of Lenses.
helm repo add lensesio https://helm.repo.lenses.io/
helm repo update
5.0 there are also fields that are deprecated and moved under
lenses.provision configuration. Below is a detailed list of
Existing Helm Release will have to first be upgraded to the latest
4.3version: https://github.com/lensesio/lenses-helm-charts/blob/release/4.3/charts/lenses/ before upgrading to version
Backup you Lenses database first, either Postgresql or H2 Help Center article, on how to backup the H2 database on various scenarios
lenses.storagefield is set (no Postgresql database), you will have to have Lenses Persistence enabled.
Upgrade the Release to
lenses.provision.enabled: falsein values as follows:
By default if no provision sidecar container is enabled, Lenses will retrieve all existing configuration from Lenses database, at start-up. Even if no existing configuration is found, Lenses will default to Wizard Mode
Migrate existing configuration, that have been deprecated to
lenses.provision.yaml& configure any existing secrets with
lenses.provision.sidecar.additionalVolumeMountsas shown in Lenses Provision Sidecar container configuration
These fields are deprecated from version
5.0 onwards and the configuration is
lenses.provision.yaml as described in Helm section
Schema Registries fields
Kafka Connect Clusters fields
Use the latest version available in the marketplaces. Remember that Lenses Storage Directory should be provided as a persistent volume and be kept intact between updates. If a new image does not exist, you may be able to update Lenses in-place. Our support team will be happy to go through the available options with you.
Lenses 5.0 configuration is NOT compatible with older versions. The
configuration of “core” connections (Kafka Brokers, Schema Registry, Zookeeper,
Kerberos, Connect) and license are now API based and must be removed from the
configuration file (
Coming from an older version of Lenses (4.3.3 or later), these settings have been automatically migrated for you in the database. You only have to remove them from the configuration file. If you are starting Lenses for the first time, you will get a wizard in your browser to setup connections.
Below you will find the list of configuration keys that have changed. They are rarely used, and most users will not have to take any action.
The following configuration keys have been renamed or removed:
Configuration keys for Kafka (listed below) has been removed. Lenses will not start with that configuration.
For more information please check Kafka connection page here .
Configuration keys for Schema Registry (listed below) has been removed. Lenses will not start with that configuration.
For more information please check Schema Registry connection page here .
Configuration keys for Kafka Connect (listed below) has been removed. Lenses will not start with that configuration.
For more information please check Kafka Connect connection page here .
Configuration keys for Kerberos (listed below) has been removed. Lenses will not start with that configuration.
For more information please check Kerberos connection page here .
Configuration keys for Zookeeper (listed below) has been removed. Lenses will not start with that configuration.
For more information please check Zookeeper connection page here .
Configuration keys for License (listed below) has been removed. Lenses will not start with that configuration.
For more information please check License page here .
See the API documentation
Lenses 5.0.3 includes a breaking change that might affect teams running SQL Processors inside Kubernetes.
Existing SQL processors are not affected, but newly created processors require the current (at the time of writing 5.0.3) or later SQL Processor docker image.
This is handled automatically unless you use a custom SQL Processor docker
image or a private registry. In such case, please rebuild your docker image or
re-pull into your registry using the latest SQL Processor image on Docker Hub