Created on 03-22-2018 12:18 AM - edited 09-16-2022 06:00 AM
I am trying to build pipeline using STREAMSETS which would be pushing records into HDFS and then hive Query will execute .
I running query load data inpath '/path/in/hdfc' into table table_name .getting the exception..
Failed to execute queries. Details : Failed to execute query 'load data inpath
'/tmp/out/*' into table smsc_data_main_nw_success'. Reason: java.sql.SQLException:
Error while processing statement: FAILED: Execution Error,
return code 1 from org.apache.hadoop.hive.ql.exec.MoveTask.
org.apache.hadoop.hive.ql.metadata.HiveException:
Access denied: Unable to move source hdfs://hostname:8020/tmp/out/file_name.done to
destination hdfs://hostname:8020/user/hive/warehouse/test.db/table_name:
Permission denied by sticky bit: user=anonymous,
path="/tmp/out/file_name.done":amank:supergroup:-rw-rw-r--,
parent="/tmp/out":amank:supergroup:drwxrwxrwt
I tried to these steps
hadoop fs -chmod g+w /user/hive/warehouse/test.db
but still facing the same issue.
Created 03-22-2018 12:28 AM
Created 03-22-2018 12:28 AM
Created 03-23-2018 03:20 AM
Thank you ,that works!!