You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

在EMR集群安装Cassandra遭遇Connection timed out连接超时问题

解决EMR集群下载Cassandra安装包超时问题

问题重现

执行命令:

$ wget https://dlcdn.apache.org/cassandra/4.0.8/apache-cassandra-4.0.8-bin.tar.gz

报错信息:

--2023-02-19 04:04:57--  
https://dlcdn.apache.org/cassandra/4.0.8/apache-cassandra-4.0.8-bin.tar.gz
Resolving dlcdn.apache.org (dlcdn.apache.org)... 151.101.2.132, 2a04:4e42::644
Connecting to dlcdn.apache.org (dlcdn.apache.org)|151.101.2.132|:443... failed: Connection timed out.
Connecting to dlcdn.apache.org (dlcdn.apache.org)|2a04:4e42::644|:443... failed: Network is unreachable.

解决方案

  • 强制使用IPv4下载
    直接在wget命令后加-4参数,跳过IPv6解析:

    wget -4 https://dlcdn.apache.org/cassandra/4.0.8/apache-cassandra-4.0.8-bin.tar.gz
    

    也可以临时禁用系统IPv6后再下载:

    echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6
    wget https://dlcdn.apache.org/cassandra/4.0.8/apache-cassandra-4.0.8-bin.tar.gz
    
  • 更换镜像源下载
    使用地理位置更近的Apache镜像站点替换原下载地址,避免跨网络超时:

    wget https://mirrors.tuna.tsinghua.edu.cn/apache/cassandra/4.0.8/apache-cassandra-4.0.8-bin.tar.gz
    
  • 检查EMR集群网络配置

    • 确认集群安全组的出站规则已开放443端口至公网
    • 验证VPC的互联网网关或NAT网关状态正常,确保节点具备公网访问能力
  • 本地下载后上传至集群
    先在本地机器完成安装包下载,再通过SCP工具传到EMR节点:

    scp apache-cassandra-4.0.8-bin.tar.gz hadoop@<EMR节点IP>:/your/target/directory
    

内容的提问来源于stack exchange,提问作者Vilas Patil

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.31 09:31:04