hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sznajder ForMailingList <bs4mailingl...@gmail.com>
Subject Similar Column names in creation of HBase table
Date Thu, 23 Oct 2014 08:27:37 GMT
Hi

Is it allowed to provide two similar family names during the creation of an
HBase table?

I was expecting that it is forbidden, **but** this call does not throw any
exception

        String[] families = {"cf", "cf"};
        HTableDescriptor desc = new HTableDescriptor(name);
        for (String cf : families) {
          HColumnDescriptor coldef = new HColumnDescriptor(cf);
          desc.addFamily(coldef);
        }
        try {
            admin.createTable(desc);
        } catch (TableExistsException e) {
            throw new IOException("table \'" + name + "\' already exists");
        }

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message