Support Questions

Find answers, ask questions, and share your expertise

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



By mistake I removed /hdp/apps/ 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/

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

Deleted /hdp/apps/

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/

Exception in thread "main" java.lang.RuntimeException: File does not exist: /hdp/apps/

at org.apache.hadoop.hive.ql.session.SessionState.start(


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/ 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.


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/

182.6 M /hdp/apps/

92.6 M /hdp/apps/

5.2 M /hdp/apps/

34.8 M /hdp/apps/

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.