How to export table schemas in apache phoenix?

余生颓废 提交于 2019-12-10 03:28:52

问题


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


回答1:


Using the Phoenix sqlline tool: !describe <table>




回答2:


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:


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



来源:https://stackoverflow.com/questions/23196133/how-to-export-table-schemas-in-apache-phoenix

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!