Until hive 0.13 version I was able to add a file to a particular partition of a hive table using the below command :
alter table table add partition (year=2016,month=07,day=25,file_part=1) location '/home/user/data/201607/NetworkActivity_553_1051924_07-25-2016.log.gz';
Our cluster got updated and hive is now hive 1.2 version. I am unable to execute the above command as it throws out the below error :
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:maprfs:/home/user/data/201607/NetworkActivity_553_1051924_07-25-2016.log.g is not a directory or unable to create one)
Could you please let me know that from hive 1.2 version we can only add directories to partition?