1. 生成测试数据
从原来ORC表中导出1000条数据生成avro表用于测试
create table user_install_status_avro stored as avro as
select * from user_install_status where dt='20141228' limit 1000;
从生成的AVRO文件中拿出hive AVRO格式表的schema,并修改成输出新表使用的avro schema
{"type": "record","name": "user_install_status_avro","namespace": "default","fields": [{"name": "aid","type": ["null","string"],"default": null},{"name": "pkgname","type": ["null","string"],"default": null}]}
以下内容回帖刷新可见
回复帖子,然后刷新页面即可查看隐藏内容
版权声明:原创作品,允许转载,转载时务必以超链接的形式表明出处和作者信息。否则将追究法律责任。来自海汼部落-青牛,http://hainiubl.com/topics/132