Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

通过TUNA镜像源安装的kafka无法正常启动 #1887

Closed
1 task done
buildyuan opened this issue Jan 23, 2024 · 1 comment
Closed
1 task done

通过TUNA镜像源安装的kafka无法正常启动 #1887

buildyuan opened this issue Jan 23, 2024 · 1 comment

Comments

@buildyuan
Copy link

先决条件 (Prerequisites)

  • 我已确认这个问题没有在其他 issues中提出过。
    I am sure that this problem has NEVER been discussed in other issues.

发生了什么(What happened)

  1. brew install kafka
  2. brew services start kafka
  3. brew services
    kafka status 无法启动报错
    查询日志:/opt/homebrew/var/log/kafka/kafka_output.log

内容:

/opt/homebrew/Cellar/kafka/3.6.1/libexec/bin/kafka-run-class.sh: line 346: /opt/homebrew/@@HOMEBREW_JAVA@@/bin/java: No such file or directory
/opt/homebrew/Cellar/kafka/3.6.1/libexec/bin/kafka-run-class.sh: line 346: exec: /opt/homebrew/@@HOMEBREW_JAVA@@/bin/java: cannot execute: No such file or directory

期望的现象(What you expected to happen)

使用命令brew services start kafka 可以正常使用kafka

如何重现此问题(How to reproduce it)

  1. brew install kafka
  2. brew services start kafka

操作系统(OS Version)

14.2.1

浏览器(如果适用)(Browser version, if applicable)

No response

其他环境(Other environments)

zshrc 配置如下

export HOMEBREW_API_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api"
export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles"
export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git"
export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git"
export HOMEBREW_PIP_INDEX_URL="https://pypi.tuna.tsinghua.edu.cn/simple"
export HOMEBREW_NO_ENV_HINTS=1
eval "$(/opt/homebrew/bin/brew shellenv)"

其他需要说明的事项(Anything else we need to know)

最后在github上搜到了类似的情况
修改后重新安装HOMEBREW_BOTTLE_DOMAIN= brew install Kafka解决

参考:l0o0/jasminum#55 (comment)

@shankerwangmiao
Copy link
Member

感谢您的反馈,正如 https://github.com/orgs/Homebrew/discussions/2530#discussioncomment-2002374 中指出的那样,目前 bottle mirrors 中的与 JAVA 相关的 formulae 不能正常工作。该问题目前看来与镜像站没有直接的关系,而是 homebrew 对镜像的兼容性问题所致。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants