i am using hive and tez.whenever i am performing insert query its returns following error: execution error, return code 1 from org.apache.hadoop.hive.ql.exec.tez.teztask
Unfortunately that isn't enough information to understand why the query is failing. Are you able to share the logs for the failed query? There ought to be some more information in there.