Skip to main content
While the ZooKeeper Import/Export API lets you export information from Fusion’s ZooKeeper service, the Fusion distribution provides a script you can use to import or export ZooKeeper data through the ZKImportExport service. The zkImportExport.sh script is located in the top-level Fusion scripts directory.

Usage

The script takes the following command-line arguments:
Required arguments are:
  • -c, —cmd : operation to perform.
  • -z, —zkhost : the ZooKeeper Connect string.

Examples

Export all data from a local single-node ZooKeeper service, save data to a file:
Export all Fusion configurations from a local single-node ZooKeeper service, save data to a file:
Export Fusion user databases, groups, roles, and realms configurations from a local single-node ZooKeeper service, save data to a file:
Initial import of saved Fusion configuration into a new ZooKeeper:
Note that the above command will fail if there is conflict between existing znode structures or contents between the ZooKeeper service and the dump file. Update information for Fusion’s ZooKeeper service:
Remove a znode from Fusion’s ZooKeeper service: