0
我通過hiveq.sql
腳本創建一個蜂巢外部表:如何將路徑從shell腳本傳遞給Hive外部表?
Create external table if not exists abc
(
id string
)
Row format delimited
fields terminated by '|'
Stored as textfile
LOCATION '${hiveconf:loc}/xyz/data';
但我正在逐漸例外下面,當我試圖用Shell腳本來執行它:
hive -hiveconf test_loc=/om/name/loc -f hiveq.sql
例外:
IllegalArgumentException java.net.URISyntaxException:
Relative path in absolute URI: ${hiveconf:test_loc%7D/xyz/data
請幫忙。