-
phoenix 실행빅데이터 2019. 8. 29. 01:00
cd /usr/hdp/2.6.3.0-235/phoenix/bin
./sqlline.py 192.168.1.101:2181:/hbase-unsecure
CREATE TABLE Company (COMPANY_ID INTEGER PRIMARY KEY, NAME VARCHAR(225));
CREATE TABLE Com (COMPANY_ID INTEGER PRIMARY KEY, COMPANY_NAME VARCHAR(225));
!tables
UPSERT INTO Company VALUES(1, 'Microsoft’);
INSERT INTO Company VALUES(4, 'Microsoft4’);
UPSERT INTO Com VALUES(1, 'Microsoft');
SELECT * FROM Company;
!quit
'빅데이터' 카테고리의 다른 글
Scala IDE & Spark 연동 (0) 2019.08.29 SandBox in Oracle VirtualBox (0) 2019.08.29 Sqoop (0) 2019.08.29 Kylo sandbox 설치 (0) 2019.08.29