1)CREATE TABLE md
ROW FORMAT SERDE
'org.apache.hadoop.hive.serde2.avro.AvroSerDe'
WITH SERDEPROPERTIES () 'avro.schema.url'='/user/cloudera/departments.avsc')
STORED as INPUTFORMAT
'org.apache.hadoop.hive.ql.io.avro.AvroContainerInputFormat'
OUTPUTFORMAT
'org.apache.hadoop.hive.ql.io.avro.AvroContainerOutputFormat';
2)LOAD DATA INPATH '/user/cloudera/departments/part-m-00000.avro' into table md;
hive> SET hive.exec.dynamic.partition = true;
hive> SET hive.exec.dynamic.partition.mode = nonstrict;
3)create table mda(a int) partitioned by(name string);
4)nsert overwrite table mda partition(name) select department_id,department_name from md;
Try this way you can create paritions from avro file too