Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on 07-31-2016 03:12 PM - edited 09-16-2022 03:32 AM
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)
Created 08-01-2016 06:41 AM
Please have a look at below documents, this information is useful for recovery
Created 07-31-2016 03:26 PM
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.
Created 08-01-2016 05:52 AM
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
Created 08-01-2016 06:41 AM
Please have a look at below documents, this information is useful for recovery