Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- id geom osm_id name type
- 1 00003381C75CBE6443 24254755 Millenium Hall office
- 2 00003382D5B5D76S3G ...
- ...
- hbase(main):002:0> create 'hbaseTable', 'column1'
- 0 row(s) in 1.2620 seconds
- hbase(main):003:0>
- Configuration conf = HBaseConfiguration.create();
- HTableInterface table = new HTable(conf, "hbaseTable".getBytes());
- Put put = new Put(1.getBytes());// for id 1.
- put.add("column1".getBytes(), "geom".getBytes(), 00003381C75CBE6443.getBytes());
- put.add("column1".getBytes(), "osm_id".getBytes(), 24254755.getBytes());
- put.add("column1".getBytes(), "name".getBytes(), Millenium Hall.getBytes());
- put.add("column1".getBytes(), "type".getBytes(), office.getBytes());
- puts.add(put);// same can do for other ids as well.
- hTable.put(puts);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement