[ 
https://issues.apache.org/jira/browse/HBASE-9128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

stack updated HBASE-9128:
-------------------------

    Attachment: 9128v2.txt

Almost there.  Snapshots still need fixup.  Renames .data dir as data dir and 
.logs as WAL.   We move all to temporary .data first in case any table named 
'data' in the mix, them move it all back to 'data' if all is well.  Here is 
what looks like when done:

{code}
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 /user
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 /user/stack
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 /user/stack/hbase
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/.tmp
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/foo_snapshot1
-rw-r--r--   1 stack supergroup         31 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/foo_snapshot1/.snapshotinfo
-rw-r--r--   1 stack supergroup        681 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/foo_snapshot1/.tableinfo.0000000001
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/foo_snapshot1/.tmp
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/foo_snapshot1/b882ec3d98ebbbf4851594c8787273ce
-rw-r--r--   1 stack supergroup        216 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/foo_snapshot1/b882ec3d98ebbbf4851594c8787273ce/.regioninfo
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/foo_snapshot1/b882ec3d98ebbbf4851594c8787273ce/.tmp
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/foo_snapshot1/b882ec3d98ebbbf4851594c8787273ce/f
-rw-r--r--   1 stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/foo_snapshot1/b882ec3d98ebbbf4851594c8787273ce/f/45d72f67eb1b4892b335e2c044249b9e
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/foo_snapshot2
-rw-r--r--   1 stack supergroup         31 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/foo_snapshot2/.snapshotinfo
-rw-r--r--   1 stack supergroup        681 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/foo_snapshot2/.tableinfo.0000000001
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/foo_snapshot2/.tmp
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/foo_snapshot2/b882ec3d98ebbbf4851594c8787273ce
-rw-r--r--   1 stack supergroup        216 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/foo_snapshot2/b882ec3d98ebbbf4851594c8787273ce/.regioninfo
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/foo_snapshot2/b882ec3d98ebbbf4851594c8787273ce/.tmp
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/foo_snapshot2/b882ec3d98ebbbf4851594c8787273ce/f
-rw-r--r--   1 stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/foo_snapshot2/b882ec3d98ebbbf4851594c8787273ce/f/4c9cb8f229284e9e9df176393b46569e
-rw-r--r--   1 stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/foo_snapshot2/b882ec3d98ebbbf4851594c8787273ce/f/7055e75f7ff741a180b9b1485ac21730
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/ns.two.foo_snapshot1
-rw-r--r--   1 stack supergroup         45 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/ns.two.foo_snapshot1/.snapshotinfo
-rw-r--r--   1 stack supergroup        695 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/ns.two.foo_snapshot1/.tableinfo.0000000001
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/ns.two.foo_snapshot1/.tmp
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/ns.two.foo_snapshot1/7112077ccfba8a46c0694ca8c0a4bc2d
-rw-r--r--   1 stack supergroup        237 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/ns.two.foo_snapshot1/7112077ccfba8a46c0694ca8c0a4bc2d/.regioninfo
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/ns.two.foo_snapshot1/7112077ccfba8a46c0694ca8c0a4bc2d/.tmp
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/ns.two.foo_snapshot1/7112077ccfba8a46c0694ca8c0a4bc2d/f
-rw-r--r--   1 stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/ns.two.foo_snapshot1/7112077ccfba8a46c0694ca8c0a4bc2d/f/136799c89e244b9bad79281b37650927
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/ns.two.foo_snapshot2
-rw-r--r--   1 stack supergroup         45 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/ns.two.foo_snapshot2/.snapshotinfo
-rw-r--r--   1 stack supergroup        695 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/ns.two.foo_snapshot2/.tableinfo.0000000001
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/ns.two.foo_snapshot2/.tmp
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/ns.two.foo_snapshot2/7112077ccfba8a46c0694ca8c0a4bc2d
-rw-r--r--   1 stack supergroup        237 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/ns.two.foo_snapshot2/7112077ccfba8a46c0694ca8c0a4bc2d/.regioninfo
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/ns.two.foo_snapshot2/7112077ccfba8a46c0694ca8c0a4bc2d/.tmp
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/ns.two.foo_snapshot2/7112077ccfba8a46c0694ca8c0a4bc2d/f
-rw-r--r--   1 stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/ns.two.foo_snapshot2/7112077ccfba8a46c0694ca8c0a4bc2d/f/136799c89e244b9bad79281b37650927
-rw-r--r--   1 stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/ns.two.foo_snapshot2/7112077ccfba8a46c0694ca8c0a4bc2d/f/98093488150c42229927fd2a1e8c5d69
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/ns1.foo_snapshot1
-rw-r--r--   1 stack supergroup         39 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/ns1.foo_snapshot1/.snapshotinfo
-rw-r--r--   1 stack supergroup        689 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/ns1.foo_snapshot1/.tableinfo.0000000001
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/ns1.foo_snapshot1/.tmp
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/ns1.foo_snapshot1/f9f207fe4f14c93b6c9b8a722cb7e437
-rw-r--r--   1 stack supergroup        228 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/ns1.foo_snapshot1/f9f207fe4f14c93b6c9b8a722cb7e437/.regioninfo
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/ns1.foo_snapshot1/f9f207fe4f14c93b6c9b8a722cb7e437/.tmp
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/ns1.foo_snapshot1/f9f207fe4f14c93b6c9b8a722cb7e437/f
-rw-r--r--   1 stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/ns1.foo_snapshot1/f9f207fe4f14c93b6c9b8a722cb7e437/f/c2548e325dca4010bf95335d8bda9945
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/ns1.foo_snapshot2
-rw-r--r--   1 stack supergroup         39 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/ns1.foo_snapshot2/.snapshotinfo
-rw-r--r--   1 stack supergroup        689 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/ns1.foo_snapshot2/.tableinfo.0000000001
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/ns1.foo_snapshot2/.tmp
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/ns1.foo_snapshot2/f9f207fe4f14c93b6c9b8a722cb7e437
-rw-r--r--   1 stack supergroup        228 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/ns1.foo_snapshot2/f9f207fe4f14c93b6c9b8a722cb7e437/.regioninfo
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/ns1.foo_snapshot2/f9f207fe4f14c93b6c9b8a722cb7e437/.tmp
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/ns1.foo_snapshot2/f9f207fe4f14c93b6c9b8a722cb7e437/f
-rw-r--r--   1 stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/ns1.foo_snapshot2/f9f207fe4f14c93b6c9b8a722cb7e437/f/338a1148f66049cdac52a347a02bfe0e
-rw-r--r--   1 stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.hbase-snapshot/ns1.foo_snapshot2/f9f207fe4f14c93b6c9b8a722cb7e437/f/ba4d3f320d234d8cbb9991c7e25bd235
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/.tmp
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/WALs
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/archive
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/archive/foo
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/archive/foo/b882ec3d98ebbbf4851594c8787273ce
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/archive/foo/b882ec3d98ebbbf4851594c8787273ce/f
-rw-r--r--   1 stack supergroup        954 2013-08-10 22:13 
/user/stack/hbase/archive/foo/b882ec3d98ebbbf4851594c8787273ce/f/45d72f67eb1b4892b335e2c044249b9e
-rw-r--r--   1 stack supergroup        834 2013-08-10 22:13 
/user/stack/hbase/archive/foo/b882ec3d98ebbbf4851594c8787273ce/f/4c9cb8f229284e9e9df176393b46569e
-rw-r--r--   1 stack supergroup        954 2013-08-10 22:13 
/user/stack/hbase/archive/foo/b882ec3d98ebbbf4851594c8787273ce/f/7055e75f7ff741a180b9b1485ac21730
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/archive/ns1.foo
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/archive/ns1.foo/f9f207fe4f14c93b6c9b8a722cb7e437
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/archive/ns1.foo/f9f207fe4f14c93b6c9b8a722cb7e437/f
-rw-r--r--   1 stack supergroup        834 2013-08-10 22:13 
/user/stack/hbase/archive/ns1.foo/f9f207fe4f14c93b6c9b8a722cb7e437/f/338a1148f66049cdac52a347a02bfe0e
-rw-r--r--   1 stack supergroup        954 2013-08-10 22:13 
/user/stack/hbase/archive/ns1.foo/f9f207fe4f14c93b6c9b8a722cb7e437/f/ba4d3f320d234d8cbb9991c7e25bd235
-rw-r--r--   1 stack supergroup        954 2013-08-10 22:13 
/user/stack/hbase/archive/ns1.foo/f9f207fe4f14c93b6c9b8a722cb7e437/f/c2548e325dca4010bf95335d8bda9945
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/data
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/data/default
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/data/default/foo
-rw-r--r--   1 stack supergroup        681 2013-08-10 22:13 
/user/stack/hbase/data/default/foo/.tableinfo.0000000001
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/data/default/foo/.tmp
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/data/default/foo/b882ec3d98ebbbf4851594c8787273ce
-rw-r--r--   1 stack supergroup        216 2013-08-10 22:13 
/user/stack/hbase/data/default/foo/b882ec3d98ebbbf4851594c8787273ce/.regioninfo
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/data/default/foo/b882ec3d98ebbbf4851594c8787273ce/f
-rw-r--r--   1 stack supergroup        951 2013-08-10 22:13 
/user/stack/hbase/data/default/foo/b882ec3d98ebbbf4851594c8787273ce/f/298e0d87145c4df19c7dd436e856677c
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/data/default/ns.two.foo
-rw-r--r--   1 stack supergroup        695 2013-08-10 22:13 
/user/stack/hbase/data/default/ns.two.foo/.tableinfo.0000000001
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/data/default/ns.two.foo/.tmp
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/data/default/ns.two.foo/7112077ccfba8a46c0694ca8c0a4bc2d
-rw-r--r--   1 stack supergroup        237 2013-08-10 22:13 
/user/stack/hbase/data/default/ns.two.foo/7112077ccfba8a46c0694ca8c0a4bc2d/.regioninfo
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/data/default/ns.two.foo/7112077ccfba8a46c0694ca8c0a4bc2d/.tmp
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/data/default/ns.two.foo/7112077ccfba8a46c0694ca8c0a4bc2d/f
-rw-r--r--   1 stack supergroup        954 2013-08-10 22:13 
/user/stack/hbase/data/default/ns.two.foo/7112077ccfba8a46c0694ca8c0a4bc2d/f/136799c89e244b9bad79281b37650927
-rw-r--r--   1 stack supergroup        681 2013-08-10 22:13 
/user/stack/hbase/data/default/ns.two.foo/7112077ccfba8a46c0694ca8c0a4bc2d/f/4385b50ba14d4e59bc20fb3f8d14f963
-rw-r--r--   1 stack supergroup        834 2013-08-10 22:13 
/user/stack/hbase/data/default/ns.two.foo/7112077ccfba8a46c0694ca8c0a4bc2d/f/98093488150c42229927fd2a1e8c5d69
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/data/default/ns1.foo
-rw-r--r--   1 stack supergroup        689 2013-08-10 22:13 
/user/stack/hbase/data/default/ns1.foo/.tableinfo.0000000001
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/data/default/ns1.foo/.tmp
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/data/default/ns1.foo/f9f207fe4f14c93b6c9b8a722cb7e437
-rw-r--r--   1 stack supergroup        228 2013-08-10 22:13 
/user/stack/hbase/data/default/ns1.foo/f9f207fe4f14c93b6c9b8a722cb7e437/.regioninfo
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/data/default/ns1.foo/f9f207fe4f14c93b6c9b8a722cb7e437/f
-rw-r--r--   1 stack supergroup        951 2013-08-10 22:13 
/user/stack/hbase/data/default/ns1.foo/f9f207fe4f14c93b6c9b8a722cb7e437/f/60a7ba75527a413680a5956493babea4
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/data/hbase
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/data/hbase/meta
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/data/hbase/meta/1588230740
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/data/hbase/meta/1588230740/.oldlogs
-rw-r--r--   1 stack supergroup        134 2013-08-10 22:13 
/user/stack/hbase/data/hbase/meta/1588230740/.oldlogs/hlog.1368422402944
-rw-r--r--   1 stack supergroup        111 2013-08-10 22:13 
/user/stack/hbase/data/hbase/meta/1588230740/.regioninfo
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/data/hbase/meta/1588230740/.tmp
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/data/hbase/meta/1588230740/info
-rw-r--r--   1 stack supergroup       1531 2013-08-10 22:13 
/user/stack/hbase/data/hbase/meta/1588230740/info/a774dcfa68f743d988d9e385bbf9abc7
-rw-r--r--   1 stack supergroup       1591 2013-08-10 22:13 
/user/stack/hbase/data/hbase/meta/1588230740/info/ab813f755142452e8bb2bb01413d38b5
-rw-r--r--   1 stack supergroup         38 2013-08-10 22:13 
/user/stack/hbase/hbase.id
-rw-r--r--   1 stack supergroup          7 2013-08-10 22:13 
/user/stack/hbase/hbase.version
drwxr-xr-x   - stack supergroup          0 2013-08-10 22:13 
/user/stack/hbase/oldWALs
-rw-r--r--   1 stack supergroup       2664 2013-08-10 22:13 
/user/stack/hbase/oldWALs/10.73.198.201%2C60201%2C1368467185913.1368467306745
-rw-r--r--   1 stack supergroup        134 2013-08-10 22:13 
/user/stack/hbase/oldWALs/dhcpx-198-201.corp.yahoo.com%2C60201%2C1368466853121.1368466882884
{code}
                
> Drop the '.' prefix from names under hbase.rootdir after namespaces goes in
> ---------------------------------------------------------------------------
>
>                 Key: HBASE-9128
>                 URL: https://issues.apache.org/jira/browse/HBASE-9128
>             Project: HBase
>          Issue Type: Sub-task
>            Reporter: stack
>            Assignee: stack
>            Priority: Critical
>             Fix For: 0.98.0, 0.95.2
>
>         Attachments: 9128.txt, 9128v2.txt
>
>
> Change it so instead of hbase.rootdir looking like this:
> {code}
> drwxr-xr-x   5 stack  staff  170 Aug  5 14:43 .data
> -rw-r--r--   1 stack  staff   12 Aug  5 14:43 .hbase.id.crc
> -rw-r--r--   1 stack  staff   12 Aug  5 14:43 .hbase.version.crc
> drwxr-xr-x   3 stack  staff  102 Aug  5 14:43 .logs
> drwxr-xr-x   2 stack  staff   68 Aug  5 14:43 .oldlogs
> drwxr-xr-x   3 stack  staff  102 Aug  5 14:43 .tmp
> -rwxrwxrwx   1 stack  staff   42 Aug  5 14:43 hbase.id
> -rwxrwxrwx   1 stack  staff    7 Aug  5 14:43 hbase.version
> {code}
> It looks like this:
> {code}
> drwxr-xr-x   5 stack  staff  170 Aug  5 14:43 data
> -rw-r--r--   1 stack  staff   12 Aug  5 14:43 .hbase.id.crc
> -rw-r--r--   1 stack  staff   12 Aug  5 14:43 .hbase.version.crc
> drwxr-xr-x   3 stack  staff  102 Aug  5 14:43 logs
> drwxr-xr-x   2 stack  staff   68 Aug  5 14:43 oldlogs
> drwxr-xr-x   3 stack  staff  102 Aug  5 14:43 tmp
> -rwxrwxrwx   1 stack  staff   42 Aug  5 14:43 hbase.id
> -rwxrwxrwx   1 stack  staff    7 Aug  5 14:43 hbase.version
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to