I’m using centos 5.5 and HDP 2.1. Automated installed by Ambari.
I’ve accidentally delete my /root path so all of the environments gone.
Today i stop my Hive and it cannot start again.
In the ambari-agent error file show that
Fail: Execution of ‘export HIVE_CONF_DIR=/etc/hive/conf.server ; /usr/lib/hive/bin/schematool -initSchema -dbType mysql -userName hive -passWord [protected]‘ returned 5. shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
and
Unable to determine Hadoop version information.
‘hadoop version’ returned:
So i try to check the script /usr/lib/hive/bin/schematool -initSchema -dbType mysql -userName hive -passWord [protected]
everything was fine. the result was
Metastore connection URL: jdbc:mysql://HADDN2/hive?createDatabaseIfNotExist=true
Metastore Connection Driver : com.mysql.jdbc.Driver
Metastore connection User: hive
Starting metastore schema initialization to 0.13.0
Initialization script hive-schema-0.13.0.mysql.sql
Initialization script completed
schemaTool completeted
Any suggestion to solve this problem or should i reinstall a hive
Regards