1) 有人告诉我,EMR 上安装了 git。这是真的 ?我不相信,因为我可以确认在我的 elastic-mapreduce ssh 终端中找不到“git”。请参阅:https://raw.github.com/gist/3177009/6128554a2668367b72758be74885836e41898923/gistfile1.txt .
2) 我需要在 EMR 上安装 git,但是下面一行:
hadoop@ip-10-235-11-52:/mnt$ sudo apt-get install git --assume-yes
结果:
hadoop@ip-10-235-11-52:/mnt$ sudo apt-get install git --assume-yes
阅读包裹 list ...完成
构建依赖树
正在读取状态信息...完成
git 已经是最新版本了。
0 个已升级,0 个新安装,0 个要删除,3 个未升级。
不幸的是,即使在发出此命令后,git 也不会在此 EMR 实例上运行:
hadoop@ip-10-235-11-52:/mnt$ git -bash: git: 找不到命令 hadoop@ip-10-235-11-52:/mnt$ sudo git 须藤:git:找不到命令
最佳答案
跟进@jayunit100 的回答:
yum install git-core 将适用于 AWS-EMR。
关于git - 在 EMR 上安装 GIT,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11653858/