1. ansible-playbook bootstrap.yml 执行问题

问题:fio: randread iops of tikv_data_dir disk is too low: 4948 < 40000, it is strongly recommended to use SSD disks for TiKV and PD, or there might be performance issues

  • 解决方案:

    因为在进行fio对tikv磁盘性能检查出现不满足要求,重新执行下面命令跳过磁盘检查。:

    ansible-playbook bootstrap.yml --extra-vars "dev_mode=True"

2. TiDB 部署NTP检查操作及原因

问题:Make sure NTP service is running and ntpstat is synchronised to NTP server. See https://github.com/pingcap/docs/blob/master/op-guide/ansible-deployment.

  • 解决方案:

    因为tidb要求数据库时间一致,提供高精准度的时间校正,需要在中控机执行下面命令:

    ansible-playbook -i hosts.ini deploy_ntp.yml -u tidb -b

3. TiDB 部署NTP检查操作及原因

问题:The default maximum number of open file descriptors is too low 65535, should be 1000000

  • 解决方案:系统打开文件最大数目过低,看下详细错误信息,找到那台实例机器,登录对应的机器修改所存在问题机器的配置,执行命令如下:
    vi /etc/profile  
    ## 把ulimit -n 1000000 加到此配置的最后一行  
    source /etc/profile
    

4. You need to install jmespath prior to running json_query filter 报错

You need to install jmespath prior to running json_query filter

  • 解决方案:在中控机上通过 pip 安装 Ansible 及相关依赖的指定版本,默认会安装 jmespath,执行命令如下:

    pip show jmespath

5. 启动 Pump/Drainer 报 zk: node does not exist 错误

zk: node does not exist

  • 解决方案: 请检查 inventory.ini 里的 zookeeper_addrs 参数配置与 Kafka 集群内的配置是否相同、是否填写了命名空间。关于命名空间的配置说明如下:
    # ZooKeeper connection string (see ZooKeeper docs for details).  
    # ZooKeeper address of Kafka cluster, example:  
    # zookeeper_addrs = "192.168.0.11:2181,192.168.0.12:2181,192.168.0.13:2181"  
    # You can also append an optional chroot string to the URLs to specify the root directory for all Kafka znodes. Example:  
    # zookeeper_addrs = "192.168.0.11:2181,192.168.0.12:2181,192.168.0.13:2181/kafka/123"
    

完工总结

欢迎同病相怜的同志,可以回复下你所遇见的问题,或者小编提问,很乐意为你效劳_


标题:TIDB安装常见问题
作者:ituac
地址:http://blog.ituac.com/tidb_install_error

添加新评论