如何獲取hive建表語句?可以考慮用sed將雙引號替換掉,然後載入到hive裡建表可以用以下語句create table t_name(t1 String,t2 String,t3 String,t4 String,t5 String,t6 String,t7 String,t8 String,t9 String,t10 String)row format delimited fields terminated by ‘,‘ --逗號分隔shell中的sed替換,你可以百度一下,最後一個逗號沒有關係,逗號後面可以當作一個空欄位解析出來create table t_name(t1 String,t2 String,t3 String,t4 String,t5 String,t6 String,t7 String,t8 String,t9 String,t10 String,t11 String)row format delimited fields terminated by ‘,‘
如何獲取hive建表語句?可以考慮用sed將雙引號替換掉,然後載入到hive裡建表可以用以下語句create table t_name(t1 String,t2 String,t3 String,t4 String,t5 String,t6 String,t7 String,t8 String,t9 String,t10 String)row format delimited fields terminated by ‘,‘ --逗號分隔shell中的sed替換,你可以百度一下,最後一個逗號沒有關係,逗號後面可以當作一個空欄位解析出來create table t_name(t1 String,t2 String,t3 String,t4 String,t5 String,t6 String,t7 String,t8 String,t9 String,t10 String,t11 String)row format delimited fields terminated by ‘,‘