You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "keith-turner (via GitHub)" <gi...@apache.org> on 2023/04/04 01:51:45 UTC

[GitHub] [accumulo] keith-turner commented on issue #3233: Only use table-scoped properties when creating table with --copy-config

keith-turner commented on issue #3233:
URL: https://github.com/apache/accumulo/issues/3233#issuecomment-1495225215

   The new 2.1.0 API [TableOperations.getTableProperties()](https://github.com/apache/accumulo/blob/1409bc0fdd8fa9b262d8de5a388af99ef5deb61e/core/src/main/java/org/apache/accumulo/core/client/admin/TableOperations.java#L513-L526) may facilitate this along with a new options on the shell command. That new API only returns the props set on a table.  Could add a new option like --copy-only-table-config that uses TableOperations.getTableProperties()
   
   Looking at the current create table command I was surprised that it creates the table and set then copies the config.  It would be better if it used [NewTableConfiguration.setProperties()] (https://github.com/apache/accumulo/blob/1409bc0fdd8fa9b262d8de5a388af99ef5deb61e/core/src/main/java/org/apache/accumulo/core/client/admin/NewTableConfiguration.java#L143) to set the props prior to creation.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org