Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
HBase >> mail # dev >> question about how to add a new field in matching in ClusterStatusProtos:ServerLoad


Copy link to this message
-
question about how to add a new field in matching in ClusterStatusProtos:ServerLoad
hi, folks,

I am reading the code inside ClusterStatusProtos:ServerLoad, and couldn't
figure out some simple logic when trying to add a new field. Can someone
enlighten me please?

-----------------------------------------------
I use the trunk version for @line
@4517~4580, is there a relationship between the tag value and the bitField
value?
  switch (tag) {
...
.           case *64*: {
              bitField0_ |=* 0x00000020*;
              reportEndTime_ = input.readUInt64();
              break;
            }
....
            case *72*: {
              bitField0_ |= *0x00000040*;
              infoServerPort_ = input.readUInt32();
              break;
            }
@4993: at the write, the tag is *9*, but from the read above it is *72*?
if (((bitField0_ & 0x00000040) == 0x00000040)) {
        output.writeUInt32(*9*, infoServerPort_);
--------------------------------------------------

so if I'd like to add a new field(say a String), what kind of tag value I
should use? many thanks

Demai
+
Sergey Shelukhin 2013-12-17, 02:25
+
Demai Ni 2013-12-17, 03:13
+
Demai Ni 2013-12-17, 05:00
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB