22.5. zk:set

download PDF


set a znode's data


zk:set [ --help ] [ -i|--import ] { path } { data }


The data stored in a znode should not be too large. ZooKeeper imposes an absolute limit of 1 MB, but in practice a data item should normally be much smaller than that.
To avoid corruption of the Fabric Registry, you should not modify any znodes under the /fabric/ path using the zk:set command. These registry values should only be changed through the fabric console commands—see Chapter 9, Fabric Console Commands.


Table 22.5, “zk:set Arguments” describes the commands arguments.
Table 22.5. zk:set Arguments
--helpDisplays the online help for this command
-i,--importImport data from a URL.
path(Required) Path of the znode to set.
data(Required) The new data or URL to import.
Red Hat logoGithubRedditYoutubeTwitter


Try, buy, & sell


About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.