Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

by mistake I removed /hdp/apps/2.3.4.0-3485 and because of that hive and other services are throwing an error.

avatar
Guru

Team:

By mistake I removed /hdp/apps/2.3.4.0-3485 with -skipTrash and because of that hive and other services are throwing an error. So is there anyway to restore it or any other alternative.

[root@m1 ranger-hdfs-plugin]# hadoop fs -rmr -skipTrash /hdp/apps/2.3.4.0-3485

rmr: DEPRECATED: Please use 'rm -r' instead.

Deleted /hdp/apps/2.3.4.0-3485

So when I am trying to access to hive it is throwing below error.

[root@m1 admin]# hive

WARNING: Use "yarn jar" to launch YARN applications.

16/07/27 22:05:04 WARN conf.HiveConf: HiveConf of name hive.server2.enable.impersonation does not exist

Logging initialized using configuration in file:/etc/hive/2.3.4.0-3485/0/hive-log4j.properties

Exception in thread "main" java.lang.RuntimeException: java.io.FileNotFoundException: File does not exist: /hdp/apps/2.3.4.0-3485/tez/tez.tar.gz

at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:507)

1 ACCEPTED SOLUTION
3 REPLIES 3

avatar
Super Guru
@Saurabh Kumar

One way to fix this particular error is to download the tez.tar.gz file (the version you need) and put it in /hdp/apps/2.3.4.0-3485/tez/. See this link for instructions. But I wonder what else you'll get into. But, I think would be a nice way to try to get out of this particular error.

https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.0/bk_upgrading_hdp_manually/content/start-tez...

avatar
Guru

Thanks @mqureshi. Above solution will fix the hive issue but do you know how to get other files as well.

79.1 M /hdp/apps/2.2.0.0-2041/hive

182.6 M /hdp/apps/2.2.0.0-2041/mapreduce

92.6 M /hdp/apps/2.2.0.0-2041/pig

5.2 M /hdp/apps/2.2.0.0-2041/sqoop

34.8 M /hdp/apps/2.2.0.0-2041/tez