How to export table schemas in apache phoenix?

2019-04-24 14:17发布

I'd like to export the schema of an existing table in apache phoenix. Are there some commands or tools to do the same thing as show create table TABLE_NAME in mysql?

thx

标签: hbase phoenix
3条回答
乱世女痞
2楼-- · 2019-04-24 14:52

Apache Phoenix is typically used as a SQL front or interface to a NoSQL DB (like Hadoop). Perhaps it would help if you were more specific about the challenges you are trying to address.

查看更多
劫难
3楼-- · 2019-04-24 14:56

Since "native" HBase is schema-less (you can only specify column families), this is not possible.

Or you could scan some rows to extract columns with types

查看更多
贪生不怕死
4楼-- · 2019-04-24 15:09

Using the Phoenix sqlline tool: !describe <table>

查看更多
登录 后发表回答