我正在我的Hadoop集群(Ubuntu14.04) 遵循这些步骤上安装Cloudera管理器的最新版本。我将列表文件移到了/etc/apt/sources.list.d/目录中,没有意识到其他人也将Ubuntu的精确列表移到了那里。我尽可能多地浏览了安装过程,现在使用Oozie获得了一些奇怪的依赖错误:
% sudo apt-get install cloudera-manager-daemons
Reading package lists... Done
Building dependency tree
Reading state information... Done
cloudera-manager-daemons is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
oozie : Depends: oozie-client (= 3.1.3+155-1.cdh4.0.1.p0.1~precise-cdh4.0.1) but 4.1.0+cdh5.6.0+235-1.cdh5.6.0.p0.108~trusty-cdh5.6.0 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).当我列出安装的Oozie软件包时,我得到:
% dpkg --list | grep "oozie"
ii oozie 3.1.3+155-1.cdh4.0.1.p0.1~precise-cdh4.0.1 all A workflow and coordinator sytem for Hadoop jobs.
ii oozie-client 4.1.0+cdh5.6.0+235-1.cdh5.6.0.p0.108~trusty-cdh5.6.0 all Client for Oozie Workflow Engine因此,oozie正在使用精确的安装,而oozie-client使用的是可靠的安装。我无法删除它们(purge给出了类似的结果):
% sudo apt-get remove oozie-client
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
oozie : Depends: oozie-client (= 3.1.3+155-1.cdh4.0.1.p0.1~precise-cdh4.0.1) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).如果我试图继续执行Cloudera安装,我就会发现奇怪的Oozie依赖错误。有什么想法?
发布于 2016-03-02 15:11:14
原来在一个旧的sources.list文件中有一个错误。一旦它被替换,我就能够运行apt-get更新,这给出了一个不同的错误。看起来它试图停止oozie服务,并碰到语法错误。运行服务oozie stop给出了同样的错误。然后进入initscript /etc/init.d/oozie,取出给出语法错误的行。最后,我能够运行apt-get更新,卸载冲突的oozie版本,并重新安装可靠的版本。
https://stackoverflow.com/questions/35730808
复制相似问题