如何将Postgres中的表格转换(重新设计)为Hbase? [英] How to transform (redesign) the table in Postgres into Hbase?
本文介绍了如何将Postgres中的表格转换(重新设计)为Hbase?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Postgres有一张表,现在我想把它转换成Hbase,如何重新设计这张表?
I have a table in Postgres, now I want to transform it into Hbase, how to redesign this table?
id geom osm_id name type
1 00003381C75CBE6443 24254755 Millenium Hall office
2 00003382D5B5D76S3G ...
...
推荐答案
你的模式看起来很简单,所以你可以用类似的方式在HBase中创建一个表。使用一个总是获得唯一值的列作为rowkey(也许 geom )。不要忘记在创建行键时记住您的搜索模式。
Your schema looks quite simple, so you can just create a table in HBase in the similar fashion. Use a column which always gets unique value as the rowkey(maybe geom). Don't forget to keep your search patterns in mind while creating the rowkeys.
这篇关于如何将Postgres中的表格转换(重新设计)为Hbase?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文