使用apt存储库安装时,Ubuntu 14.04上的DataStax Enterprise 4.8.4 LTS安装错误

时间:2016-01-26 13:45:59

标签: datastax datastax-enterprise

我完全按照docs.datastax.com/en/datastax_enterprise/install/installDEBdse.html

中的说明使用了apt存储库安装方法。

密钥没有问题。我有Oracle Server JDK 8(截至今日)。来自Miniconda的Python 2.7(今天也是全新安装),使用默认值并允许预先添加PATH变量。

安装完成后,有关未满足的依赖项的错误:

dse-full : Depends: dse (=4.8.4-1) but it is not going to be installed
           Depends: dse-hive (=4.8.4-1) but it is not going to be installed
           Depends: dse-pig (=4.8.4-1) but it is not going to be installed
           Depends: dse-demos (=4.8.4-1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

这台服务器完全无法使用,因此Ubuntu环境干净整洁。

我删除了sources.list.d文件夹,获得了一个新密钥(删除此文件夹也删除了与任何密钥对的关联),并发现完全相同的错误。

这里不知道如何纠正和继续。

可能相关的附加信息是nuking是因为在我之前的安装尝试中,apt存储器抛出了http和https错误,所以下载文件并在使其可执行后安装。没有错误被抛出。但是,在尝试安装最新的OpsCenter时,会出现与丢失的文件和文件夹有关的错误。我甚至无法卸载每个DSE文档,因为从未创建/ usr / share / dse文件夹。

更多信息RE:错误和环境

环境 -

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.3 LTS
Release:    14.04
Codename:   trusty

$ java -version
java version "1.8.0_72"
Java(TM) SE Runtime Environment (build 1.8.0_72-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.72-b15, mixed mode)

$ python --version
Python 2.7.5

缓存内容 -

$ apt-cache madison dse-full | grep 4.8
  dse-full |    4.8.4-1 | https://debian.datastax.com/enterprise/ stable/main amd64 Packages
  dse-full |    4.8.3-1 | https://debian.datastax.com/enterprise/ stable/main amd64 Packages
  dse-full |    4.8.2-1 | https://debian.datastax.com/enterprise/ stable/main amd64 Packages
  dse-full |    4.8.1-1 | https://debian.datastax.com/enterprise/ stable/main amd64 Packages
  dse-full |    4.8.0-1 | https://debian.datastax.com/enterprise/ stable/main amd64 Packages

REMOVAL -

$ sudo apt-get purge "dse*" datastax-agent

Package 'datastax-agent' is not installed, so not removed
Package 'dse-demos' is not installed, so not removed
Package 'dse-full' is not installed, so not removed
Package 'dse-hive' is not installed, so not removed
Package 'dse-libcassandra' is not installed, so not removed
Package 'dse-libhadoop-native' is not installed, so not removed
Package 'dse-libhadoop' is not installed, so not removed
Package 'dse-libhive' is not installed, so not removed
Package 'dse-liblog4j' is not installed, so not removed
Package 'dse-libmahout' is not installed, so not removed
Package 'dse-libpig' is not installed, so not removed
Package 'dse-libsolr' is not installed, so not removed
Package 'dse-libspark' is not installed, so not removed
Package 'dse-libsqoop' is not installed, so not removed
Package 'dse-libtomcat' is not installed, so not removed
Package 'dse-pig' is not installed, so not removed
Package 'dse' is not installed, so not removed

新安装 -

$ sudo apt-get install dse-full
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 dse-full : Depends: dse (= 4.8.4-1) but it is not going to be installed
            Depends: dse-hive (= 4.8.4-1) but it is not going to be installed
            Depends: dse-pig (= 4.8.4-1) but it is not going to be installed
            Depends: dse-demos (= 4.8.4-1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

4 个答案:

答案 0 :(得分:1)

我自己走了这条路。我强烈推荐以下内容:

1)重新开始使用Ubuntu 12节点。 (对我来说,我使用的是Amazon EC2 ami-15cbe87f。)

2)节点启动后,下载并运行最新的Datastax Enterprise安装程序。这会升级群集,并将hadoop置于/ usr / share / dse / resources / hadoop。 (对我来说,我使用了DataStaxEnterprise-4.8.4.2016011118-linux-x64-installer.run)

2)在/etc/dse/cassandra/cassandra.yaml中:     - 设置群集名称     - 使用内部向上地址172.xx.xx.xx作为种子节点,listen_address,broadcast_address,broadcast_rpc_address     - 使用0.0.0.0表示rpc_address     - 使用PropertyFileSnitch并编辑/etc/dse/cassandra/cassandra-topology.properties。添加内部和外部IP的条目。        - #Cassandra Node IP =数据中心:机架        - 52.xx.xx.xx = us-east:1a        - 172.xx.xx.xx = us-east:1a        - #默认为未知节点        - default = us-east:1a

3)将/etc/dse/hadoop/taskcontroller.cfg复制到/etc/hadoop/taskcontroller.cfg。还有一段代码没有使用HADOOP_CONF_DIR。

4)将Dir更改为/ usr / share / dse / resources / hadoop / native / Linux-amd64-64 / bin和chmod 4750任务控制器

5)是的,4750。

6)不要忘记编辑/var/lib/datastax-agent/conf/address.yaml来包含:     - stomp_interface:172.xx.xx.xx     - local_interface:172.xx.xx.xx     - use_ssl:0

7)在某些时候,您需要返回并设置ssl。

8)sudo service dse start并检查/var/log/cassandra/output.log和system.log中的错误

9)修复完成后,您可以删除您的群集,然后进入/ var / lib / cassandra并删除其中的所有内容。 (小心!)然后,返回步骤8.重复直到没有错误。

10)使用此方法可以使一个仅限Cassandra的节点干净地工作。然后,使用此方法使spark / hadoop节点干净地工作。然后,您可以将它们组合起来并扩展您的群集。

答案 1 :(得分:0)

不是答案,而是一些帮助排除故障的想法。需要注意的一点是当前版本是4.8.4(而不是4.8.6)。

我刚刚安装了一个新的Ubuntu 14.04虚拟机,只安装了Java(OpenJDK)和Python,并且所有内容都按照文档进行了操作。

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.3 LTS
Release:    14.04
Codename:   trusty
$ java -version
openjdk version "1.8.0_72-internal"
OpenJDK Runtime Environment (build 1.8.0_72-internal-b05)
OpenJDK 64-Bit Server VM (build 25.72-b05, mixed mode)
$ python --version
Python 2.7.6

一些故障排除/清理步骤:

$ sudo apt-get update
$ # confirm 4.8.4 is the latest package known
$ apt-cache madison dse-full | grep 4.8
  dse-full |    4.8.4-1 | http://debian.datastax.com/enterprise/ stable/main amd64 Packages
  dse-full |    4.8.3-1 | http://debian.datastax.com/enterprise/ stable/main amd64 Packages
  dse-full |    4.8.2-1 | http://debian.datastax.com/enterprise/ stable/main amd64 Packages
  dse-full |    4.8.1-1 | http://debian.datastax.com/enterprise/ stable/main amd64 Packages
  dse-full |    4.8.0-1 | http://debian.datastax.com/enterprise/ stable/main amd64 Packages

$ # remove any DSE packages
$ sudo apt-get purge "dse*" datastax-agent

$ # see if any packages marked as held
$ dpkg --get-selections | grep hold
$ # for each package from above (package_name) set it to 'install'
$ echo "package_name install" | sudo dpkg --set-selections

$ # try again to install DSE
$ sudo apt-get install dse-full

如果这些步骤不起作用,请包含运行apt-get install的完整命令和响应。

答案 2 :(得分:0)

这似乎不是DataStax软件包本身的问题,但感觉服务器上的repo存在问题。

在很多情况下,“未满足的依赖关系”是由于重复的存储库造成的。删除所有重复项并执行清理,然后再按照@BrianC上面的说明再次安装。

答案 3 :(得分:0)

安装时尝试执行以下版本而不是dse-full。在安装之前,请确保执行“yum update”

sudo yum install dse-full-4.8.4-1

以下; Oracle JRE 8满足安装要求 http://docs.datastax.com/en/datastax_enterprise/4.8/datastax_enterprise/install/installRHELdse.html

如果安装失败,您可以发布安装命令并输出以下内容。