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.

How do I block Ambari from creating Hive View on its restart?

SOLVED Go to solution
Highlighted

How do I block Ambari from creating Hive View on its restart?

New Contributor

I found that Ambari creates Hive View on its restart automatically. But I want to block that.

How do I block Ambari from creating Hive View on its restart?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How do I block Ambari from creating Hive View on its restart?

@Takefumi OHIDE

Normally the view registration happens via "ViewRegistry" class during the startup operation of ambari server.

The views are present in the following location:

cd /var/lib/ambari-server/resources/views

If you do not want to hive view then you can try the following:

Move the hive view jar to some other place.

mv /var/lib/ambari-server/resources/views/hive-2.2.2.0.460.jar   /Someo_other_place

## Now delete to work directory content which is created with the view jar content 
cd /var/lib/ambari-server/resources/views
rm -rf work/HIVE\{1.0.0\}/

Then restart the ambari-server

2 REPLIES 2

Re: How do I block Ambari from creating Hive View on its restart?

@Takefumi OHIDE

Normally the view registration happens via "ViewRegistry" class during the startup operation of ambari server.

The views are present in the following location:

cd /var/lib/ambari-server/resources/views

If you do not want to hive view then you can try the following:

Move the hive view jar to some other place.

mv /var/lib/ambari-server/resources/views/hive-2.2.2.0.460.jar   /Someo_other_place

## Now delete to work directory content which is created with the view jar content 
cd /var/lib/ambari-server/resources/views
rm -rf work/HIVE\{1.0.0\}/

Then restart the ambari-server

Re: How do I block Ambari from creating Hive View on its restart?

New Contributor

Thank you very much! It went well!