zkImportExport.sh script is located in the top-level Fusion scripts directory.
Usage
The script takes the following command-line arguments:- -c, —cmd : operation to perform.
- -z, —zkhost : the ZooKeeper Connect string.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Action required: Upgrade to Fusion 5.17.2 to apply urgent security patches. Lucidworks Search clients will be upgraded automatically.
zkImportExport.sh script is located in the top-level Fusion scripts directory.
-c,--cmd <arg> Command, one of: 'export', 'import', 'update', 'delete'.
-e,--encode <arg> Type of encoding for znodes. Valid options:
'none', 'utf-8', 'base64', default is 'base64'.
Option 'none' will not return any data from the znodes.
-ep,--exclude <arg> Exclude znode paths, followed by list of paths.
Can only be used to exclude nodes one level below the root node.
-eph,--ephemeral Include ephemeral nodes while exporting znodes, boolean, default false.
-f,--filename <arg> Name of file containing import/export data.
-h,--help Display help page.
-ip,--include <arg> Include znode paths to include, followed by a list of paths.
Can only be used to include nodes one level below the root node.
-nr,--non-recursive Do not perform recursive operations on znodes.
-o,--overwrite Overwrite data for existing znodes. Valid only with 'update' command.
-p,--path <arg> Path from ZooKeeper root node, e.g. '/lucid/query-pipelines'.
-r,--recursive Perform recursive operations on znodes.
-z,--zkhost <arg> ZooKeeper Connect string, required.
zkImportExport.sh -zkhost FUSION_HOST:9983 -cmd export -path / -filename znode_dump.json
zkImportExport.sh -zkhost FUSION_HOST:9983 -cmd export -path /lucid -filename znode_lucid_dump.json
zkImportExport.sh -zkhost FUSION_HOST:9983 -cmd export -path /lucid-apollo-admin -filename znode_lucid_admin_dump.json
zkImportExport.sh -zkhost FUSION_HOST:9983 -cmd import -filename znode_lucid_dump.json
zkImportExport.sh -zkhost FUSION_HOST:9983 -cmd update -filename znode_lucid_dump.json
zkImportExport.sh -zkhost FUSION_HOST:9983 -cmd delete -path /lucid/test
Was this page helpful?