Support Questions

Find answers, ask questions, and share your expertise

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

avatar
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

avatar

@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

View solution in original post

2 REPLIES 2

avatar

@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

avatar
Contributor

Thank you very much! It went well!