Sqoop import with hive as Parquet File

sqoop

#1

Hi Team,

I have written below sqoop code :

sqoop-import
–connect jdbc:mysql://ms.itversity.com:3306/retail_db
–username retail_user
–password itversity
–hive-import
–table products
–as-parquetfile
–fields-terminated-by ‘:’
–lines-terminated-by ‘\n’
–hive-database default
–hive-table sh_product_new

But I am getting below error:

Caused by: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.AccessControlException): Permission denied: user=shwetatanwar13, access=WRITE, inode="/tmp/default/.temp/job_1540458187
951_32992/mr/job_1540458187951_32992/.metadata"

This is only happening when sqoop import is done with hive as parquet file.
Could you please help.

Thanks,
Shweta