[
https://issues.apache.org/jira/browse/HBASE-13923?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14595906#comment-14595906
]
Ashish Singhi commented on HBASE-13923:
---------------------------------------
Attached patch for master branch.
Added region coprocessors also to the coprocessor list maintained by
ClusterStatusProtos.ServerLoad class.
Below is the partial output of {{status 'detailed'}} command
{noformat}
2 live servers
xx.xx.xx.xx:16000 1434993724588
requestsPerSecond=0.0, numberOfOnlineRegions=3, usedHeapMB=26,
maxHeapMB=879, numberOfStores=4, numberOfStorefiles=4,
storefileUncompressedSizeMB=0, storefileSizeMB=0, memstoreSizeMB=0,
storefileIndexSizeMB=0, readRequestsCount=157, writeRequestsCount=32,
rootIndexSizeKB=0, totalStaticIndexSizeKB=0, totalStaticBloomSizeKB=0,
totalCompactingKVs=0, currentCompactedKVs=0, compactionProgressPct=NaN,
coprocessors=[AccessController, MultiRowMutationEndpoint,
SecureBulkLoadEndpoint, TokenProvider]
"hbase:acl,,1434554667423.51f44d89b21a6cebbacb85a155750bc9."
numberOfStores=1, numberOfStorefiles=1,
storefileUncompressedSizeMB=0, lastMajorCompactionTimestamp=1434979163032,
storefileSizeMB=0, memstoreSizeMB=0, storefileIndexSizeMB=0,
readRequestsCount=4, writeRequestsCount=0, rootIndexSizeKB=0,
totalStaticIndexSizeKB=0, totalStaticBloomSizeKB=0, totalCompactingKVs=0,
currentCompactedKVs=0, compactionProgressPct=NaN, completeSequenceId=-1,
dataLocality=1.0
"hbase:meta,,1"
numberOfStores=2, numberOfStorefiles=2,
storefileUncompressedSizeMB=0, lastMajorCompactionTimestamp=1434975847753,
storefileSizeMB=0, memstoreSizeMB=0, storefileIndexSizeMB=0,
readRequestsCount=147, writeRequestsCount=32, rootIndexSizeKB=0,
totalStaticIndexSizeKB=0, totalStaticBloomSizeKB=0, totalCompactingKVs=0,
currentCompactedKVs=0, compactionProgressPct=NaN, completeSequenceId=-1,
dataLocality=1.0
"hbase:namespace,,1434554665777.5ac8c718ccc7f20f52ddcaf941a5807e."
numberOfStores=1, numberOfStorefiles=1,
storefileUncompressedSizeMB=0, lastMajorCompactionTimestamp=0,
storefileSizeMB=0, memstoreSizeMB=0, storefileIndexSizeMB=0,
readRequestsCount=6, writeRequestsCount=0, rootIndexSizeKB=0,
totalStaticIndexSizeKB=0, totalStaticBloomSizeKB=0, totalCompactingKVs=0,
currentCompactedKVs=0, compactionProgressPct=NaN, completeSequenceId=-1,
dataLocality=1.0
yy.yy.yy.yy:16201 1434993718585
requestsPerSecond=0.0, numberOfOnlineRegions=8, usedHeapMB=24,
maxHeapMB=879, numberOfStores=9, numberOfStorefiles=3,
storefileUncompressedSizeMB=0, storefileSizeMB=0, memstoreSizeMB=0,
storefileIndexSizeMB=0, readRequestsCount=0, writeRequestsCount=0,
rootIndexSizeKB=0, totalStaticIndexSizeKB=0, totalStaticBloomSizeKB=0,
totalCompactingKVs=0, currentCompactedKVs=0, compactionProgressPct=NaN,
coprocessors=[AccessController, SecureBulkLoadEndpoint, TokenProvider]
{noformat}
Please review.
> Loaded region coprocessor are not reported in shell status commands
> -------------------------------------------------------------------
>
> Key: HBASE-13923
> URL: https://issues.apache.org/jira/browse/HBASE-13923
> Project: HBase
> Issue Type: Bug
> Components: regionserver, shell
> Affects Versions: 1.1.0.1
> Reporter: Lars George
> Assignee: Ashish Singhi
> Fix For: 2.0.0, 1.0.2, 1.2.0, 1.1.1, 1.3.0
>
> Attachments: HBASE-13923.patch
>
>
> I added a CP to a table using the shell's alter command. Now I tried to check
> if it was loaded (short of resorting to parsing the logs). I recalled the
> refguide mentioned the {{status 'detailed'}} command, and tried that to no
> avail.
> The UI shows the loaded class in the Software Attributes section, so the info
> is there. But a shell status command (even after waiting 12+ hours shows
> nothing. Here an example of a server that has it loaded according to
> {{describe}} and the UI, but the shell lists this:
> {noformat}
> slave-1.internal.larsgeorge.com:16020 1434486031598
> requestsPerSecond=0.0, numberOfOnlineRegions=5, usedHeapMB=278,
> maxHeapMB=941, numberOfStores=5, numberOfStorefiles=3,
> storefileUncompressedSizeMB=2454, storefileSizeMB=2454,
> compressionRatio=1.0000, memstoreSizeMB=0, storefileIndexSizeMB=0,
> readRequestsCount=32070, writeRequestsCount=0, rootIndexSizeKB=0,
> totalStaticIndexSizeKB=2086, totalStaticBloomSizeKB=480,
> totalCompactingKVs=0, currentCompactedKVs=0, compactionProgressPct=NaN,
> coprocessors=[]
> "testqauat:usertable,,1433747062257.4db0d7d73cbaac45cb8568d5b185e1f2."
> numberOfStores=1, numberOfStorefiles=0,
> storefileUncompressedSizeMB=0, lastMajorCompactionTimestamp=0,
> storefileSizeMB=0, memstoreSizeMB=0, storefileIndexSizeMB=0,
> readRequestsCount=0, writeRequestsCount=0, rootIndexSizeKB=0,
> totalStaticIndexSizeKB=0, totalStaticBloomSizeKB=0, totalCompactingKVs=0,
> currentCompactedKVs=0, compactionProgressPct=NaN, completeSequenceId=-1,
> dataLocality=0.0
>
> "testqauat:usertable,user0,1433747062257.f7c7fe3c7d26910010f40101b20f8d06."
> numberOfStores=1, numberOfStorefiles=0,
> storefileUncompressedSizeMB=0, lastMajorCompactionTimestamp=0,
> storefileSizeMB=0, memstoreSizeMB=0, storefileIndexSizeMB=0,
> readRequestsCount=0, writeRequestsCount=0, rootIndexSizeKB=0,
> totalStaticIndexSizeKB=0, totalStaticBloomSizeKB=0, totalCompactingKVs=0,
> currentCompactedKVs=0, compactionProgressPct=NaN, completeSequenceId=-1,
> dataLocality=0.0
>
> "testqauat:usertable,user1,1433747062257.dcd5395044732242dfed39b09aa05c36."
> numberOfStores=1, numberOfStorefiles=1,
> storefileUncompressedSizeMB=820, lastMajorCompactionTimestamp=1434173025593,
> storefileSizeMB=820, compressionRatio=1.0000, memstoreSizeMB=0,
> storefileIndexSizeMB=0, readRequestsCount=32070, writeRequestsCount=0,
> rootIndexSizeKB=0, totalStaticIndexSizeKB=699, totalStaticBloomSizeKB=160,
> totalCompactingKVs=0, currentCompactedKVs=0, compactionProgressPct=NaN,
> completeSequenceId=-1, dataLocality=1.0
>
> "testqauat:usertable,user7,1433747062257.9277fd1d34909b0cb150707cbd7a3907."
> numberOfStores=1, numberOfStorefiles=1,
> storefileUncompressedSizeMB=816, lastMajorCompactionTimestamp=1434283025585,
> storefileSizeMB=816, compressionRatio=1.0000, memstoreSizeMB=0,
> storefileIndexSizeMB=0, readRequestsCount=0, writeRequestsCount=0,
> rootIndexSizeKB=0, totalStaticIndexSizeKB=690, totalStaticBloomSizeKB=160,
> totalCompactingKVs=0, currentCompactedKVs=0, compactionProgressPct=NaN,
> completeSequenceId=-1, dataLocality=1.0
>
> "testqauat:usertable,user8,1433747062257.d930b52db8c7f07f3c3ab3e12e61a085."
> numberOfStores=1, numberOfStorefiles=1,
> storefileUncompressedSizeMB=818, lastMajorCompactionTimestamp=1433771950960,
> storefileSizeMB=818, compressionRatio=1.0000, memstoreSizeMB=0,
> storefileIndexSizeMB=0, readRequestsCount=0, writeRequestsCount=0,
> rootIndexSizeKB=0, totalStaticIndexSizeKB=697, totalStaticBloomSizeKB=160,
> totalCompactingKVs=0, currentCompactedKVs=0, compactionProgressPct=NaN,
> completeSequenceId=-1, dataLocality=1.0
> {noformat}
> The refguide shows an example of an older HBase version that has the CP class
> listed properly. Something is broken.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)