在Ambari中,如果遇到以下错误消息:“Ambari无法重新启动:该版本的stack-select工具不支持hive-metastore包。”,这可能是由于Hive Metastore组件的版本与Ambari的stack-select工具不兼容导致的。
为了解决这个问题,你可以手动更改stack-select脚本,使其支持hive-metastore包。
以下是一个可能的解决方法:
/usr/bin/stack-select或/usr/sbin/stack-select。elif [ "$stack" == "HDP" ]; then
if [[ "$role" == "hive_metastore" ]]; then
export PACKAGE='hive-metastore'
elif [[ "$role" == "hiveserver2" ]]; then
export PACKAGE='hive-server2'
fi
yum list available | grep hive-metastore命令来确定正确的包名。elif [ "$stack" == "HDP" ]; then
if [[ "$role" == "hive_metastore" ]]; then
export PACKAGE='hive-metastore-x.x.x.x'
elif [[ "$role" == "hiveserver2" ]]; then
export PACKAGE='hive-server2'
fi
确保将上述代码中的"x.x.x.x"替换为正确的Hive Metastore版本号。
现在,你应该能够重新启动Ambari服务器而不再遇到“Ambari无法重新启动:该版本的stack-select工具不支持hive-metastore包。”的错误消息。