Skip to content

consolidate InfoViewer and PropEditor #6458

Open
ArbaazKhan1 wants to merge 2 commits into
apache:mainfrom
ArbaazKhan1:accumulo-6428
Open

consolidate InfoViewer and PropEditor #6458
ArbaazKhan1 wants to merge 2 commits into
apache:mainfrom
ArbaazKhan1:accumulo-6428

Conversation

@ArbaazKhan1

Copy link
Copy Markdown
Contributor

Closes issue #6428

Created a new zk props command to consolidate ZooKeeper property inspection and editing. Both legacy commands are depreciated but remain and functional for backwards compatibility. The new zk props core sub-commands operate as such:

  • Default / scope flags (-t, -ns, -r) --> reproduces ZooPropEditor single-scope print output
  • --set, set a property for the resolved scope
  • --delete, delete a property for the resolved scope
  • --get, reproduces ZooInfoViewer --print-props multi-scope report, using --system, --namespaces, and --tables filter flags

Comment thread server/base/src/main/java/org/apache/accumulo/server/conf/util/ZooProps.java Outdated
Comment on lines +137 to +138
v.tablesOpt.addAll(opts.tablesOpt);
v.namespacesOpt.addAll(opts.namespacesOpt);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--get advertises the ability to accept --table and --namespace as well but only the plural tables and namespaces opts are copied.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The singular --namespace / --table and plural --nampespaces / --tables are intentionally separate. They are intended to serve the different modes. The singular flags are meant to display a singular Zk scope for --set and --delete or default display, while the plural is used for filtering multi-scope ZK reports via --get.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consolidate prop-editor and info-viewer into a unified ZooKeeper props sub-command

2 participants