[HBASE-7511] Export preads latency metrics from HRegionServer metrics

Author: rshroff

Summary:
HBase already populates the preads latencies at HFile level but does not
export it via jmx. This change exports the fsPreadlatency metrics.

It also gets rid of the fsReadLatency metrics because these are not
populated as HBase now does only preads.

Test Plan:
Tested on hbase817.ash3 with custom build. After RS restart the metrics
were getting populated.

http://fburl.com/9226339 (check 3:45pm onwards)
http://fburl.com/9226350 (")

Reviewers: liyintang

Reviewed By: liyintang

CC: hbase-eng@

Differential Revision: https://phabricator.fb.com/D671587

Task ID: 1996587

git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/0.89-fb@1432704 13f79535-47bb-0310-9956-ffa450edef68
[Master] Print locality and dispersion for the current assignment plan in a specific format

Author: adela

Summary:
added a method which will allow printing locality and
dispersion per table in the same format like in HBaseLocalityCheck

Test Plan:
Ran RegionPlacement -ld
tested on tsh25, sample output of 1 table:
13/01/03 15:10:47 INFO master.RegionPlacement: For Table: MailBox_cell5_v1 ; #Total Regions: 1760 ; The average locality for primary is 69.59913 %
13/01/03 15:10:47 INFO master.RegionPlacement: For Table: MailBox_cell5_v1 ; #Total Regions: 1760 ; The average locality for secondary is 4.718978 %
13/01/03 15:10:47 INFO master.RegionPlacement: For Table: MailBox_cell5_v1 ; #Total Regions: 1760 ; The average locality for tertiary is 4.8160424 %
13/01/03 15:10:47 INFO master.RegionPlacement: For Table: MailBox_cell5_v1 ; #Total Regions: 1760 ; The average dispersion score is 1.0

Reviewers: liyintang

Reviewed By: liyintang

CC: hbase-eng@

Differential Revision: https://phabricator.fb.com/D670270

Task ID: 1979096

git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/0.89-fb@1432705 13f79535-47bb-0310-9956-ffa450edef68
[HBASE-6368] Remove use of deprecated guava functions

Author: amirshim

Summary:
It would be nice to be able to use Guava version 14, for some of the new classes, e.g. Range classes.  So first we need to make sure we don't use any of the deprecated functions.

Test Plan: Compile and run tests.

Reviewers: nspiegelberg

Reviewed By: nspiegelberg

CC: HBase Eng@

Differential Revision: https://phabricator.fb.com/D672447

git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/0.89-fb@1432706 13f79535-47bb-0310-9956-ffa450edef68
[HBASE-7514] Fix the TestLogSplitOnMasterFailover.testWithDistributedLogSplittingAndErrors

Author: manukranthk

Summary: The Test is polling for the .META. table and failing after a certain number of retries with a PreemptiveFastFailException. Catching that exception in the Test since it only knows about RetriesExhaustedException and catches that.

Test Plan: Ensuring that the Unit Tests pass consistently.

Reviewers: liyintang, aaiyer

Reviewed By: aaiyer

CC: hbase-eng@

Differential Revision: https://phabricator.fb.com/D672827

Task ID: 1997870

git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/0.89-fb@1432707 13f79535-47bb-0310-9956-ffa450edef68
[HBASE-7424] Enable the DeltaEncoding for the HFileOutputFormat

Author: manukranthk

Summary: HFileOutputFormat has a writer embedded but it is not configured to use the DeltaEncoding and FavoredNodes. This revision is to add that support to the HFileOutputFormat while it is used as an OutputFormat either the Mapper or the Reducer for a MapReduce task.

Test Plan: Adding Unit Tests to test the working of the HFileOutputFormat

Reviewers: liyintang, kannan

CC: hbase-eng@, astewart

Differential Revision: https://phabricator.fb.com/D669389

Task ID: 1964673

git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/0.89-fb@1432708 13f79535-47bb-0310-9956-ffa450edef68
[0.89-fb] [ HBASE-7517] Do not throw PreemptiveFastFailExceptions when caused by another PFFE

Author: aaiyer

Summary:
Sometimes, if we are looking up a region in META, and both META  and
ROOT are unavailable, then the PFFE thrown by root's unavailability seems
to gets caught in the same function and is processed twice. We should avoid
this to prevent the race condition that liyin mentioned.

Test Plan: unit tests

Reviewers: liyintang

Reviewed By: liyintang

CC: hbase-eng@

Differential Revision: https://phabricator.fb.com/D672911

Task ID: 1966872

git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/0.89-fb@1432709 13f79535-47bb-0310-9956-ffa450edef68
[89-fb] [HBASE-7509] Fix the commit: correct version of manage_dfs_quorum_reads

Author: aaiyer

Summary:
Looks like I accidentally checked in the wrong version of
this file in  https://phabricator.fb.com/D635914

Fixing the commit

Test Plan:
Run the file on a RS on TSH025. make sure that the
number of threads is changed

Reviewers: liyintang

Reviewed By: liyintang

CC: hbase-eng@

Differential Revision: https://phabricator.fb.com/D677141

Blame Revision: svn+ssh://tubbs/svnhive/hadoop/branches/titan@32029 e7acf4d4-3532-417f-9e73-7a9ae25a1f51

git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/0.89-fb@1432711 13f79535-47bb-0310-9956-ffa450edef68