一.问题
M1电脑macOS12.4安装Kettle执行spoon.sh报如下错误,原因是Kettle不支持M1。
sh /Users/jason/Downloads/data-integration/spoon.sh
I'm sorry, this Mac platform [arm64] is not yet supported!
Please try starting using 'Data Integration 32-bit' or
'Data Integration 64-bit' as appropriate.
二.解决步骤
1.下载Kettle官网地址
选择自己想要的版本,这里下载的是最新版本。下载完成后进入data-integration目录,执行sh spoon.sh看是否会报上面的问题,如果会继续下面的步骤。
2.创建Rosetta Terminal官网教程
(1)打开终端->偏好设置
(2) 选择描述文件,点击左下角+创建一个终端Rosetta Shell(名称可自定义)
(3)切换到窗口栏自定义名称Terminal (Intel)
(4)切换到Shell栏
运行命令中输入如下内容然后回车
env /usr/bin/arch -x86_64 /bin/zsh --login
取消选项在shell中运行
(5)双击左侧Rosetta Shell图标打开终端,输入如下命令安装Homebrew
cd /usr/local
sudo mkdir homebrew
sudo chgrp admin homebrew
sudo chmod g+rwx homebrew
curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew
(6)使用vi命令或者显示隐藏文件后在根目录下打开.zshrc文件,添加如下内容:
if [ "$(sysctl -n sysctl.proc_translated)" = "1" ]; then
local brew_path="/usr/local/homebrew/bin"
else
local brew_path="/opt/homebrew/bin"
fi
export PATH="${brew_path}:${PATH}"
(7)在终端执行命令:source ~/.zshrc
(8)进入Kettle下载文件夹data-integration目录下,执行sh spoon.sh命令启动Kettle,启动成功会打开如下界面:
三.其他问题
1.连接Mysql报错
Driver class 'org.gjt.mm.mysql.Driver' could not be found, make sure the 'MySQL' driver (jar file) is installed. org.gjt.mm.mysql.Driver
解决方法:
下载mysql-connector-j-8.0.32.jar文件并放到data-integration的lib目录下(官网地址)