1、phoenix終端連接方法
進入phoenix安裝路徑: /data01/tmp/apache-phoenix-4.14.0-cdh5.12.2-bin/bin
執行命令,登錄phoenix
./sqlline.py 100.69.01.01,100.69.01.02:2181
2、常用指令
1)顯示所有表
!tables
2)退出
!quit
3)查看表結構
!describe "table_name"
4)插入、更新
Phoenix中不存在update的語法關鍵字,而是upsert ,功能上替代了Insert+update
upsert into ljc.student(id,name) values(1,'zhangsan');

