Hive services metastore and hiveserver2 won't come up if the machine that has these services installed is restarted. The reason for this is that init script daemons for both the services are missing creation of /var/run/hive directory before attempting to start the service and hence causes these processes to not able to create pid files under /var/run/hive directory. In current implementation hive-server2 init script is created using this template and hive-metastore init script is created when hive-metastore package is installed from HDP 2.0 repository. To resolve this issue we need to do following:
Add directory creation logic to hive-server2 template
Create a new template for hive-metastore init script and add directory creation logic to it.
Remove installation of hive-metastore package from bcpc-hadoop::hive_metastore
Hive services
metastore
andhiveserver2
won't come up if the machine that has these services installed is restarted. The reason for this is that init script daemons for both the services are missing creation of/var/run/hive
directory before attempting to start the service and hence causes these processes to not able to createpid
files under/var/run/hive
directory. In current implementationhive-server2
init script is created using this template andhive-metastore
init script is created whenhive-metastore
package is installed from HDP 2.0 repository. To resolve this issue we need to do following:hive-server2
templatehive-metastore
init script and add directory creation logic to it.bcpc-hadoop::hive_metastore