[jira] [Commented] (HBASE-20416) [DOC] Fix hbck option intros

2018-04-16 Thread huaxiang sun (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-20416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16439801#comment-16439801
 ] 

huaxiang sun commented on HBASE-20416:
--

Copy [~esteban]. 

> [DOC] Fix hbck option intros
> 
>
> Key: HBASE-20416
> URL: https://issues.apache.org/jira/browse/HBASE-20416
> Project: HBase
>  Issue Type: Bug
>  Components: documentation
>Reporter: Wei-Chiu Chuang
>Assignee: Wei-Chiu Chuang
>Priority: Major
> Attachments: HBASE-20416.master.001.patch
>
>
> {quote}In this case, you can use the -fixSplitParents 
>  This option should not normally be used, and it is not in -fixAll.
> {quote}
> There is no such option "-fixAll". From the context, it seems to refer to 
> -repair
> In addition, -repair option also covers -fixReferenceFiles, -fixHFileLinks, 
> which are not introduced in the doc.
> {code:java|title=HBaseFsck#exec}
> else if (cmd.equals("-repair")) {
> // this attempts to merge overlapping hdfs regions, needs testing
> // under load
> setFixHdfsHoles(true);
> setFixHdfsOrphans(true);
> setFixMeta(true);
> setFixAssignments(true);
> setFixHdfsOverlaps(true);
> setFixVersionFile(true);
> setSidelineBigOverlaps(true);
> setFixSplitParents(false);
> setCheckHdfs(true);
> setFixReferenceFiles(true);
> setFixHFileLinks(true);
> {code}
> {quote}-repair includes all the region consistency options and only the hole 
> repairing table integrity options.
> {quote}
> ... seems untrue to me.
>  
> Finally,
>  {quote}
> In this case there is a special -fixMetaOnly option that can try to fix meta 
> assignments.
> {quote}
> -fixMetaOnly option no longer exists.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (HBASE-20416) [DOC] Fix hbck option intros

2018-04-15 Thread Wei-Chiu Chuang (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-20416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16438809#comment-16438809
 ] 

Wei-Chiu Chuang commented on HBASE-20416:
-

Rev01:
# Updated -repair to make it explicit what options does it include.
# Added intro to -fixReferenceFiles and -fixHFileLinks.
# Changed -fixMetaOnly to -metaonly.

I also found a few other hbck options not mentioned in the doc:
{noformat}
-removeParents (HBASE-15941)
-fixReplication (HBASE-12769)
-boundaries (HBASE-9346)
-fixEmptyMetaCells (HBASE-7930)
-checkCorruptHFiles (HBASE-6586)
-sidelineCorruptHFiles (HBASE-6586)
ignorePreCheckPermission (HBASE-5714) 
-fixTableOrphans (HBASE-5631)
-noHdfsChecking (HBASE-7190)
{noformat}

These combinations are quite complex so I am not dealing with them this time. 
This doc is meant to fix the ones that are already in the doc but are incorrect.

> [DOC] Fix hbck option intros
> 
>
> Key: HBASE-20416
> URL: https://issues.apache.org/jira/browse/HBASE-20416
> Project: HBase
>  Issue Type: Bug
>  Components: documentation
>Reporter: Wei-Chiu Chuang
>Assignee: Wei-Chiu Chuang
>Priority: Major
> Attachments: HBASE-20416.master.001.patch
>
>
> {quote}In this case, you can use the -fixSplitParents 
>  This option should not normally be used, and it is not in -fixAll.
> {quote}
> There is no such option "-fixAll". From the context, it seems to refer to 
> -repair
> In addition, -repair option also covers -fixReferenceFiles, -fixHFileLinks, 
> which are not introduced in the doc.
> {code:java|title=HBaseFsck#exec}
> else if (cmd.equals("-repair")) {
> // this attempts to merge overlapping hdfs regions, needs testing
> // under load
> setFixHdfsHoles(true);
> setFixHdfsOrphans(true);
> setFixMeta(true);
> setFixAssignments(true);
> setFixHdfsOverlaps(true);
> setFixVersionFile(true);
> setSidelineBigOverlaps(true);
> setFixSplitParents(false);
> setCheckHdfs(true);
> setFixReferenceFiles(true);
> setFixHFileLinks(true);
> {code}
> {quote}-repair includes all the region consistency options and only the hole 
> repairing table integrity options.
> {quote}
> ... seems untrue to me.
>  
> Finally,
>  {quote}
> In this case there is a special -fixMetaOnly option that can try to fix meta 
> assignments.
> {quote}
> -fixMetaOnly option no longer exists.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (HBASE-20416) [DOC] Fix hbck option intros

2018-04-14 Thread Wei-Chiu Chuang (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-20416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16438574#comment-16438574
 ] 

Wei-Chiu Chuang commented on HBASE-20416:
-

Let me take a stab at this. Looks like a good way to learn more about HBase.

> [DOC] Fix hbck option intros
> 
>
> Key: HBASE-20416
> URL: https://issues.apache.org/jira/browse/HBASE-20416
> Project: HBase
>  Issue Type: Bug
>  Components: documentation
>Reporter: Wei-Chiu Chuang
>Assignee: Wei-Chiu Chuang
>Priority: Major
>
> {quote}
> In this case, you can use the -fixSplitParents 
> This option should not normally be used, and it is not in -fixAll.
> {quote}
> There is no such option "-fixAll". From the context, it seems to refer to 
> -repair
> In addition, -repair option also covers -fixReferenceFiles, -fixHFileLinks, 
> which are not introduced in the doc.
> {code:title=HBaseFsck#exec}
> else if (cmd.equals("-repair")) {
> // this attempts to merge overlapping hdfs regions, needs testing
> // under load
> setFixHdfsHoles(true);
> setFixHdfsOrphans(true);
> setFixMeta(true);
> setFixAssignments(true);
> setFixHdfsOverlaps(true);
> setFixVersionFile(true);
> setSidelineBigOverlaps(true);
> setFixSplitParents(false);
> setCheckHdfs(true);
> setFixReferenceFiles(true);
> setFixHFileLinks(true);
> {code}
> {quote}
> -repair includes all the region consistency options and only the hole 
> repairing table integrity options.
> {quote}
> ... seems untrue to me.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)