fix wrong column family

This commit is contained in:
Chris Lu
2020-12-23 23:23:05 -08:00
parent 32955b04b8
commit c4a202ec41
2 changed files with 3 additions and 5 deletions

View File

@@ -22,7 +22,6 @@ type HbaseStore struct {
table []byte
cfKv string
cfMetaDir string
cfFlatDir string
column string
}
@@ -42,7 +41,6 @@ func (store *HbaseStore) initialize(zkquorum, table string) (err error) {
store.table = []byte(table)
store.cfKv = "kv"
store.cfMetaDir = "meta"
store.cfFlatDir = "flat"
store.column = "a"
// check table exists
@@ -59,7 +57,7 @@ func (store *HbaseStore) initialize(zkquorum, table string) (err error) {
// create table
adminClient := gohbase.NewAdminClient(zkquorum)
cFamilies := []string{store.cfKv, store.cfMetaDir, store.cfFlatDir}
cFamilies := []string{store.cfKv, store.cfMetaDir}
cf := make(map[string]map[string]string, len(cFamilies))
for _, f := range cFamilies {
cf[f] = nil