Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

java.io.IOException: Previous writer likely failed to write hdfs

java.io.IOException: Previous writer likely failed to write hdfs

New Contributor

I am trying to register an UDF function, and then running the UDF function from Beeline.

Getting the below error. Please help me to fix the issue.

INFO : Tez session hasn't been created yet. Opening session
ERROR : Failed to execute tez graph.
java.io.IOException: Previous writer likely failed to write hdfs://bswin:8020/tmp/hive-hive/hive/_tez_session_dir/a8514f90-89b1-477a-a713-3a168af557c1/test-1.0.0.jar. Failing because I am unlikely to write too.
at org.apache.hadoop.hive.ql.exec.tez.DagUtils.localizeResource(DagUtils.java:1002)
at org.apache.hadoop.hive.ql.exec.tez.DagUtils.addTempResources(DagUtils.java:882)
at org.apache.hadoop.hive.ql.exec.tez.DagUtils.localizeTempFilesFromConf(DagUtils.java:809)
at org.apache.hadoop.hive.ql.exec.tez.TezSessionState.refreshLocalResourcesFromConf(TezSessionState.java:258)

1 REPLY 1
Highlighted

Re: java.io.IOException: Previous writer likely failed to write hdfs

Expert Contributor

Can you try adding ur custom jar @ /usr/hdp/<version>/hive/auxlib/test-1.0.0.jar path on HS2 node & restart. check hive.aux.jars.path conf is having udf jar, then rerun ur query.

Don't have an account?
Coming from Hortonworks? Activate your account here