我正在尝试命令
ALTER TABLE mytable PARTITION(date='2010-02-22') SET 'avro.schema.url'
'hdfs://xxx.com:9000/location/to/my/schema/_schema.avsc';
但它正在返回解析错误:
失败:ParseException行1:49无法识别'SET'附近的输入 ''avro.schema.url''''hdfs://xxx.com:9000 / location / to / my / schema / _schema.avsc''in alter 表分区语句后缀
答案 0 :(得分:2)
这是正确的语法:
ALTER TABLE mytable PARTITION(date='2010-02-22') SET TBLPROPERTIES(
'avro.schema.url'
'hdfs://xxx.com:9000/location/to/my/schema/_schema.avsc');