Hive 如何创建类似avro的表?

Hive 如何创建类似avro的表?,hive,avro,parquet,Hive,Avro,Parquet,我根据另一个表(test)的模式创建了一个表(test_load)。然后我将test_load插入到另一个表中 drop table if exists test_load; create external table test_load like test location /test_load_folder; insert into warehouse select * from test_load; 当所有的东西都在拼花地板上时,它工作得很好。 然后,我将我的测试模式演变为avro,并

我根据另一个表(test)的模式创建了一个表(test_load)。然后我将test_load插入到另一个表中

drop table if exists test_load;
create external table test_load
like test
location /test_load_folder;

insert into warehouse
select * from test_load;
当所有的东西都在拼花地板上时,它工作得很好。 然后,我将我的测试模式演变为avro,并重新创建了我的测试加载表,但当我尝试插入仓库时,我收到一个错误:

Error while processing statement: FAILED: Execution Error, return code 2 
from org.apache.hadoop.hive.ql.exec.mr.MapRedTask
我正在寻找好的语法来重新创建加载表并指定其avro。我的假设是hive仍然考虑它的拼花文件

我试过了

drop table if exists test_load;
create external table test_load
like test
location /test_load_folder
stored as avro;

但是我有一个语法错误。

存储为avro的
部分需要紧跟在表名之后:
创建外部表test\u加载存储为类似avro的…
谢谢!这是正确的语法。插入错误在其他地方。hdfs问题。