ubuntu - 尝试安装Cloudera Manager 5时Oozie依赖性不正确

标签 ubuntu hadoop cloudera oozie cloudera-manager

我正在尝试在Hadoop集群(Ubuntu 14.04)上安装最新版本的Cloudera Manager,即following these steps。我将Ubuntu Trusty Cloudera Manager列表文件移至/etc/apt/sources.list.d/目录,但没有意识到其他人也已经将Ubuntu Precise列表移至那里。我进行了尽可能多的安装,现在在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使用的是Precise安装,而oozie-client使用的是Trusty安装。我无法删除其中任何一个(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依赖错误。有什么想法吗?

最佳答案

原来,其中一个较旧的sources.list文件中有一个错字。一旦替换了它,我便能够运行apt-get update,然后给出了另一个错误。看起来它正在尝试停止oozie服务并遇到语法错误。运行服务oozie stop给出了相同的错误。然后进入initscript /etc/init.d/oozie并取出出现语法错误的行。最终,我能够运行apt-get更新,卸载冲突的oozie版本并重新安装Trusty版本。

关于ubuntu - 尝试安装Cloudera Manager 5时Oozie依赖性不正确,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35730808/

相关文章:

scala - 合法代码在 Scalding 中无法编译

hadoop - Sqoop 导入错误 : org. apache.hadoop.security.AccessControlException: Permission denied by sticky bit

sql - Hadoop SQL需要一个表名来获取时间。如何获得 table ?

hadoop hdfs 指向文件 :///not hdfs://

bash - 使用 awk 在文件中搜索十六进制值时,版本 4.0 和 4.1 的不同行为

node.js - 如何在 443 端口上配置多个进程? Apache - ubuntu

hadoop - 如何squeop导入将新数据追加到分区配置单元表中,从而在同一分区列上创建新的分区文件夹?以下是我的情况

apache-spark - 通过远程配置单元运行sql查询时出现未知主机错误

python-3.x - Pygattlib 未经授权访问内存 [Ubuntu 16.4]

linux - 新鲜蛤蜊 : symbol lookup error: freshclam: undefined symbol: print_version, 版本 FRESHCLAM_PRIVATE