EdColeman commented on PR #3562:
URL: https://github.com/apache/accumulo/pull/3562#issuecomment-1615277533

   The difference between copy-config and copy-properties using a shell
   
   ```
   > config -s table.custom.sys_prop=sys_v1
   > createnamespace nsSrc
   > config -s table.custom.ns_prop=ns_v1 -ns nsSrc
   
   > createtable nsSrc.table1
   # copy configuration
   > createtable -cc nsSrc.table1 nsSrc.dest1
   # copy properties
   > createtable -cp nsSrc.table1 nsSrc.dest2
   
   # modify sys and namesapce props
   > config -s table.custom.sys_prop=sys_v2
   > config -s table.custom.ns_prop=ns_v2 -ns nsSrc
   
   Results:
   
   > config -f table.custom -t nsSrc.table1
   
   
-----------+--------------------------+-------------------------------------------------------------
   SCOPE      | NAME                     | VALUE
   
-----------+--------------------------+-------------------------------------------------------------
   namespace  | table.custom.ns_prop ... | ns_v2
   site       | table.custom.sys_prop .. | 
   system     |    @override ........... | sys_v2
   
-----------+--------------------------+-------------------------------------------------------------
   
   # show copy-properties does not override sys and namesapce (not in local 
properties) - matches source
   
   > config -f table.custom -t nsSrc.dest2
   
   
-----------+--------------------------+-------------------------------------------------------------
   SCOPE      | NAME                     | VALUE
   
-----------+--------------------------+-------------------------------------------------------------
   namespace  | table.custom.ns_prop ... | ns_v2
   site       | table.custom.sys_prop .. | 
   system     |    @override ........... | sys_v2
   
-----------+--------------------------+--------------------------------------------------------------
   
   # show copy-config is overriding sys and namespace values (copied local to 
table) 
   
   > config -f table.custom -t nsSrc.dest1
   
   
-----------+--------------------------+-----------------------------------------------------------
   SCOPE      | NAME                     | VALUE
   
-----------+--------------------------+-----------------------------------------------------------
   namespace  | table.custom.ns_prop ... | ns_v2
   table      |    @override ........... | ns_v1
   site       | table.custom.sys_prop .. | 
   system     |    @override ........... | sys_v2
   table      |    @override ........... | sys_v1
   
-----------+--------------------------+-----------------------------------------------------------
   
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to