异常问题
在 openstack 上安装vertica的时候出现了几个问题
- 无法修改io scheduler,/sys/block/sda/queue/scheduler修改后查看仍然是none
- 出现错误 Error: 'NoneType' object has no attribute 'split',在添加参数 --ignore-install-config 后仍然显示HALT 级别的错误,无法跳过
问题的根本原因:
The root of the problem is that if you are installing Vertica on OpenStack it will have a metadata server (169.254.169.254), and if the install python script gets a response from it, it assumes its running under AWS, so it will request AWS specific metadata which doesnt exist, so it gets no response from the OpenStack metadata server.
To fix the issue issue you have to edit the aws_metadata.py (/opt/vertica/oss/ python/lib/python2.7/site-ackages/vertica/system/aws_metadata.py) file. Inside the load function (def load, not in the def init) replace the self.is_aws part to
self.is_aws = False
在文件中搜索def load后查看最近一行的self.is_aws = XXX ,修改内容为False,然后重新安装
参考链接: https://forum.vertica.com/discussion/235490/vertica-install-on-centos
PS: 不知是否可以使用 --ignore-aws-instance-typ 这个参数跳过
评论