“brew install hive”失败

“brew install hive”失败

以下是我今天得到的信息:

myname@mylaptop:~/tmp/123545/ brew install hive
==> Installing dependencies for hive: hadoop
==> Installing hive dependency: hadoop
==> Downloading https://www.apache.org/dyn/closer.cgi?path=hadoop/common/hadoop-3.1.2/hadoop-3.1.2.tar.gz
==> Downloading from http://apache.mirrors.tds.net/hadoop/common/hadoop-3.1.2/hadoop-3.1.2.tar.gz
######################################################################## 100.0%

答案1

您可以编辑 brew formula 并针对要安装的 Hive 版本进行配置。为此,请运行:

brew edit hive

您需要更新网址sha256字段。如果您想安装 Hive v3.1.2,您的公式应如下所示:

class Hive < Formula
  desc "Hadoop-based data summarization, query, and analysis"
  homepage "https://hive.apache.org"
  url "https://www-us.apache.org/dist/hive/hive-3.1.2/apache-hive-3.1.2-bin.tar.gz"
  sha256 "d75dcf36908b4e7b9b0ec9aec57a46a6628b97b276c233cb2c2f1a3e89b13462"

您可以在这里找到最新的 Hive 版本: https://www-us.apache.org/dist/hive/

然后继续跑

brew install hive

希望有帮助

相关内容