Member since
04-12-2019
105
Posts
3
Kudos Received
7
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 4755 | 05-28-2019 07:41 AM | |
| 3497 | 05-28-2019 06:49 AM |
05-28-2019
10:24 AM
@PJ you can use * in database column while define policy in ranger's hive plugin. * will apply restriction policy for all hive DB.
... View more
05-28-2019
07:41 AM
1 Kudo
Hi @Haijin Li The input file you are using is incorrect stock2.json {"myid":"0001","mytype":"donut"} command is correct CREATE EXTERNAL TABLE stock4_json (myjson struct<myid:string, mytype:string>)ROW FORMAT SERDE 'org.apache.hive.hcatalog.data.JsonSerDe' LOCATION '/warehouse/tablespace/external/hive/haijintest.db/stock2'; myjson struct define it is having further list and map. You have to place correct input file stock3.json {"myjson":{"myid":"0001","mytype":"donut"}} and create table with same command and check. Let me know if still you are facing issue. Regards, Vinay K
... View more
05-28-2019
06:49 AM
Hi @PJ It depends on you, how you define policies for hive DB. You may restrict by multiple ranger policies. What is your exactly question can you explain it?
... View more