1,建表 create table test(name string ); 2,查看所有表 show tables; 3,本地文件上傳 b.txt
haha load data local inpath '/home/b.txt' into table test; 4,查看錶數據 select * from test;
5,beenline #後臺啓動metastore服務和hiveserver2服務 |
sparkSQl shell操作 1,建表,上傳數據,都與hive完全一樣 ,2,依靠ranger,實現數據脫敏 [mr@dap103-182 129-hbase-hbase-RegionServer]$ spark |