为提高效率,请提供以下信息,问题描述清晰能够更快得到解决:
【TiDB 版本】
[tidb@localhost ~]$ tiup --version
v1.3.2 tiup
Go Version: go1.13
Git Branch: release-1.3
GitHash: 2d88460
[tidb@localhost ~]$
【问题描述】
tiup打包最新版本的dm后 离线机器安装报找不到指定版本prometheus、grafana
解压的版本与需要的版本不一致
#连网机器
export version=nightly #
tiup mirror clone tidb-dm-${version}-linux-amd64 --os=linux --arch=amd64
–dm-master=${version} --dm-worker=${version} --dmctl=${version}
–alertmanager=${version} --grafana=${version} --prometheus=${version}
–tiup=$(tiup --version|grep ‘tiup’|awk -F ’ ’ ‘{print $1}’) --dm=$(tiup --version|grep ‘tiup’|awk -F ’ ’ ‘{print $1}’)
tar czvf tidb-dm-${version}-linux-amd64.tar.gz tidb-dm-${version}-linux-amd64
#离线机
[tidb@localhost ~]$ export version=nightly
[tidb@localhost ~]$ tiup dm deploy dm-test ${version} topology.yaml
Starting component dm
: /home/tidb/.tiup/components/dm/v1.3.2/tiup-dm deploy dm-test nightly topology.yaml
Please confirm your topology:
Cluster type: dm
Cluster name: dm-test
Cluster version: nightly
Type Host Ports OS/Arch Directories
dm-master 192.168.58.128 8261/8291 linux/x86_64 /home/tidb/dm/deploy/dm-master-8261,/home/tidb/dm/data/dm-master-8261
dm-worker 192.168.58.128 8262 linux/x86_64 /home/tidb/dm/deploy/dm-worker-8262,/home/tidb/dm/data/dm-worker-8262
prometheus 192.168.58.128 9090 linux/x86_64 /home/tidb/dm/deploy/prometheus-9090,/home/tidb/dm/data/prometheus-9090
grafana 192.168.58.128 3000 linux/x86_64 /home/tidb/dm/deploy/grafana-3000
alertmanager 192.168.58.128 9093/9094 linux/x86_64 /home/tidb/dm/deploy/alertmanager-9093,/home/tidb/dm/data/alertmanager-9093
Attention:
1. If the topology is not what you expected, check your yaml file.
2. Please confirm there is no port/directory conflicts in same host.
Do you want to continue? [y/N]: y
- Generate SSH keys … Done
- Download TiDB components
- Download dm-master:nightly (linux/amd64) … Done
- Download dm-worker:nightly (linux/amd64) … Done
- Download prometheus:v4.0.3 (linux/amd64) … Error
- Download grafana:v4.0.3 (linux/amd64) … Error
- Download alertmanager:v0.17.0 (linux/amd64) … Done
Error: version v4.0.3 on linux/amd64 for component grafana not found
Verbose debug logs has been written to /home/tidb/.tiup/logs/tiup-dm-debug-2021-02-03-10-23-26.log.
Error: run /home/tidb/.tiup/components/dm/v1.3.2/tiup-dm
(wd:/home/tidb/.tiup/data/SNuwEIG) failed: exit status 1
#解压文件