keith-turner opened a new issue, #3503:
URL: https://github.com/apache/accumulo/issues/3503
Accumulo has a shell command to list tablets. Below is an examplle output
from this command for a table created by the bulk RW test.
```
root@accumulo-testing> listtablets -t
bulk_ip_10_113_15_71_11648_1686931239370
NUM TABLET_DIR FILES WALS ENTRIES SIZE STATUS LOCATION
ID START (Exclusive) END
TABLE: bulk_ip_10_113_15_71_11648_1686931239370
1 t-000dksn 17 0 258512 72613 HOSTED
CURRENT:10.113.15.105:9997 14 -INF r00357
2 t-000dkwh 4 0 147066 34564 HOSTED
CURRENT:10.113.15.194:9997 14 r00357 r00532
3 t-000dkwo 7 0 728508 165122 HOSTED
CURRENT:10.113.15.193:9997 14 r00532 r00e1f
4 t-000dly9 12 0 103119 35031 HOSTED
CURRENT:10.113.15.119:9997 14 r00e1f r00f7d
5 t-000dksl 16 0 528155 149716 HOSTED
CURRENT:10.113.15.119:9997 14 r00f7d r0168e
6 t-000dksm 14 0 380700 120065 HOSTED
CURRENT:10.113.15.105:9997 14 r0168e r01bd4
7 t-000dkwc 5 0 519742 136646 HOSTED
CURRENT:10.113.15.22:9997 14 r01bd4 r0228d
8 t-000dr4c 53 0 15336820 4550857 HOSTED
CURRENT:10.113.15.135:9997 14 r0228d r0abfd
9 t-000dr4d 22 0 3387627 1263948 HOSTED
CURRENT:10.113.15.135:9997 14 r0abfd r10726
10 t-000dly2 14 0 2345792 812779 HOSTED
CURRENT:10.113.15.135:9997 14 r10726 r145fd
11 t-000dkw9 10 0 300390 93136 HOSTED
CURRENT:10.113.15.135:9997 14 r145fd r14a1b
12 t-000dktq 6 0 476452 125719 HOSTED
CURRENT:10.113.15.22:9997 14 r14a1b r15017
13 t-000dkt7 2 0 5640 3227 HOSTED
CURRENT:10.113.15.65:9997 14 r15017 r1502b
14 t-000dido 6 0 751680 206253 HOSTED
CURRENT:10.113.15.65:9997 14 r1502b r15a4b
15 t-000dkt1 15 0 435105 134517 HOSTED
CURRENT:10.113.15.105:9997 14 r15a4b r16018
16 t-000dkwk 3 0 236340 61020 HOSTED
CURRENT:10.113.15.193:9997 14 r16018 r16324
17 t-000die2 6 0 360360 96088 HOSTED
CURRENT:10.113.15.194:9997 14 r16324 r167a7
18 t-000dkt2 12 0 65604 28440 HOSTED
CURRENT:10.113.15.118:9997 14 r167a7 r1688e
19 t-000dids 12 0 55185 25637 HOSTED
CURRENT:10.113.15.105:9997 14 r1688e r16951
20 t-000dkxe 6 0 944736 236207 HOSTED
CURRENT:10.113.15.167:9997 14 r16951 r17525
21 t-000didz 2 0 276299 69237 HOSTED
CURRENT:10.113.15.167:9997 14 r17525 r178d4
22 t-000dksr 10 0 177555 56726 HOSTED
CURRENT:10.113.15.105:9997 14 r178d4 r17b43
23 t-000dkt4 12 0 366390 112687 HOSTED
CURRENT:10.113.15.118:9997 14 r17b43 r1801d
24 t-000dly1 13 0 288225 83729 HOSTED
CURRENT:10.113.15.135:9997 14 r1801d r183ce
25 default_tablet 6 0 209090 60324 HOSTED
CURRENT:10.113.15.167:9997 14 r183ce +INF
```
The new per tabet hosting goal could be added to this command. The
implementation of this command uses internal APIs and therefore getting this
information via public in jshell is not possible. In addition to adding the
hosting goal to this command output we could possibly create a public API for
getting this information. One way to do this is to generalize the new API
introduced in #3451 to get more per tablet info than just the hosting goal.
Something like the following.
```java
// this could replace the new HostingGoalForTablet class and add more
information
public interface TabletInformation {
TabletHostingGoal getHostingGoal();
TableId getTabletId();
String getLocation();
TabletHostingStatus getTabletHostingStatus();
//etc
}
interface TableOperations {
// replace the getTabletHostingGoal method with the more general method
that gets hosting goal plus other tablet info
Stream<TabletInformation> getTabletInformation(String tableName, Range
range);
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]