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

Enis Soztutar updated HBASE-6818:
---------------------------------

    Attachment: hbase-6818-newapproach-0.94_v1.patch

Continuing on windows support, attaching a patch for this .META. naming issue 
under windows. 

Instead of handing the META table name, I opted for another approach, where we 
only special-case where we get the table name from underlying file system. NTFS 
converts the path <hbase.root.dir>/.META. to <hbase.root.dir>/.META but sub 
paths still work (we can still refer <hbase.root.dir>/.META./regionname which 
will be converted by NTFS). So, we just need to handle conversion where we do 
ls, and see .META, which is then treated as .META. 

The patch is not for inclusion right now since it targets 0.94. Namespace issue 
(HBASE-8015) will already change the META table's name, so we won't need this 
at all. Will close this one, once we have namespaces (hopefully soon :))


                
> [WINDOWS] Catalog table .META. violates the naming convention in Window OS
> --------------------------------------------------------------------------
>
>                 Key: HBASE-6818
>                 URL: https://issues.apache.org/jira/browse/HBASE-6818
>             Project: HBase
>          Issue Type: Sub-task
>    Affects Versions: 0.94.3, 0.95.2
>            Reporter: Enis Soztutar
>            Assignee: Enis Soztutar
>              Labels: windows
>         Attachments: hbase-6818-newapproach-0.94_v1.patch
>
>
> There are two catalog tables in HBase, ROOT and .META., whose representitives 
> in Windows file system are folders. However, the name of .META. table 
> violates the naming convention in Windows, as Windows doesn't support any 
> file/directory whose name ending with a period '.'.
> The following are the related description from msdn.microsoft.com for naming 
> convention for Windows :
> Do not end a file or directory name with a space or a period. Although the 
> underlying file system may support such names, the Windows shell and user 
> interface does not. However, it is acceptable to specify a period as the 
> first character of a name. For example, ".temp".
> Note that this does not affect hdfs, but only RawLocalFileSystem, and 
> single-node local hbase clusters.  

--
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