Unable to install mesos on centos 6.5 - mesos

I am trying to install mesos package according to https://open.mesosphere.com/getting-started/install/#slave-setup but, when I run yum install mesos, transaction abort with error message:
Error unpacking rpm package mesos-1.0.1-2.0.93.centos65.x86_64
error: unpacking of archive failed on file /usr/lib/libmesos-1.0.1.so;57c7a348: cpio: read
Failed:
mesos.x86_64 0:1.0.1-2.0.93.centos65
any pointers? or is the packaging of this particular version corrupted?
I tried mesos.x86_64 0:1.0.0-2.0.89.centos65 which seems to be working.

The current mesos 1.x.x RPM installers do not handle upgrades from mesos versions < 1.0 gracefully in CentOS 6.X. A yum update of mesos from 0.28 to 1.1.0 produces the following error:
Running Transaction
Updating : mesos-1.1.0-2.0.107.centos65.x86_64
Error unpacking rpm package mesos-1.1.0-2.0.107.centos65.x86_64
error: unpacking of archive failed on file /usr/include/mesos/slave: cpio: rename
The workaround is to run:
rm -rf /usr/include/mesos/slave
And then re-run yum update (or whatever RPM management command you are using to upgrade mesos).
Source: https://github.com/mesosphere/mesos-deb-packaging/issues/87

[Updated:] A new RPM which fixes this error, 1.0.1-2.0.96, has been generated and is available for download at https://open.mesosphere.com/downloads/mesos/. (Thanks #js84)

Related

Unable to install Search Guard plugin for Elasticsearch-5.x

Due to the restrictions, I was not allowed to install any packages from internet. So, This command is not useful for me inorder to install search-guard.
bin/elasticsearch-plugin install -b com.floragunn:search-guard-ssl:<version>
However, I am able to install Search Guard successfully on a different network by running the above command.
Because of this reason, I tried installing Search Guard from tar.gz or zip file by the below command as per documentation.
/usr/share/elasticsearch# bin/elasticsearch-plugin install file:///home/xxxx/xxxx/search-guard-5-5.2.0-10-sgadmin-standalone.zip
This one is failing with the below error.
-> Downloading file:///home/xxx/xxxx/search-guard-5-5.2.0-10- sgadmin-standalone.zip
[=================================================] 100%  
ERROR: `elasticsearch` directory is missing in the plugin zip
I downloaded zip/tar.gz from this maven repository of search gaurd.
Is anyone also facing the same issue. If not, kindly help in solving this one.
Download this file from maven to /home/xxxx:
https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-5/5.2.0-11/search-guard-5-5.2.0-11.zip
Install it:
bin/elasticsearch-plugin install -b file:///home/xxxx/search-guard-5-5.2.0-11.zip
Other releases are available here: https://oss.sonatype.org/content/repositories/releases/com/floragunn/

Elasticsearch : Marvel and Sense Plugin Installation does not work

I have tried the online and offline instructions for installing marvel and sense, but nothing works. I have ES 2.2.1 and Kibana 4.4.2
I tried
plugin install marvel-agent
but i get
Installing marvel-agent...
Trying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/marvel-agent/2.2.0/marvel-agent-2.2.0.zip ...
ERROR: failed to download out of all possible locations..., use --verbose to get detailed information
same error for
bin/plugin install license
bin/kibana plugin --install elasticsearch/marvel/latest
so then i tried downloading the files and follow instructions on
https://www.elastic.co/guide/en/marvel/current/installing-marvel.html#offline-installation
i tried
plugin install file:///C:/Users/xyz/ElasticSearch/zips/marvel-agent-2.2.0.zip
but i get
-> Installing from file:/C:/Users/xyz/ElasticSearch/zips/marvel-agent-2.2.0.zip...
Trying file:/C:/Users/xyz/ElasticSearch/zips/marvel-agent-2.2.0.zip ...
Downloading ..DONE
Verifying file:/C:/Users/xyz/ElasticSearch/zips/marvel-agent-2.2.0.zip checksums if available ...
NOTE: Unable to verify checksum for downloaded plugin (unable to find .sha1 or .md5 file to verify)
same for
plugin install file:///C:/Users/xyz/ElasticSearch/zips/license-2.2.0.zip
and finally for
kibana plugin --install marvel --url file:///C:/Users/xyz/ElasticSearch/zips/marvel-2.2.0.tar.gz
i get
Installing marvel
Attempting to transfer from file:///C:/Users/xyz/ElasticSearch/zips/marvel-2.2.0.tar.gz
Error: ENOTFOUND
Plugin installation was unsuccessful due to error "No valid url specified."
Please point out what i am doing wrong.
For me, the last installation instruction required a different format for the url.
file://c:/Temp/ElasticSearch/marvel-2.2.1.tar.gz. Basically, remove one of the forward slashes.
download the Sense tar file from the following link: https://download.elasticsearch.org/elastic/sense/sense-latest.tar.gz
open cmd form kibana\bin location
then you can install Sense using the following command:
kibana plugin -i sense -u file:PATH_TO_SENSE_TAR_FILE

Dependency Resolution Error while installing Zabbix 2.4 on Centos 7

I have installed rpm from this site 1- Zabbix 2.4 download page for centos7
And I have been following installation instructions on this site 2- Zabbix.org centos installation instructions
first, I configure zabbix repository
rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.‌​rpm
But, then I realized this repository is for /rhel/6. Then I run the command below to change the zabbix repository which is for /rhel/7 , since I use centos 7.
rpm --import http://repo.zabbix.com/RPM-GPG-KEY-ZABBIX
rpm -Uv http://repo.zabbix.com/zabbix/2.4/rhel/7/x86_64/zabbix-release-2.4-1.el7.noarch.rpm
Then, I try to install zabbix
yum install mysql-server zabbix-server-mysql zabbix-web-mysql zabbix-agent zabbix-java-gateway
But I couldn't because of some dependency could not be installed.
--> Finished Dependency Resolution
Error: Package: zabbix-server-mysql-2.4.5-1.el6.x86_64 (zabbix)
Requires: libmysqlclient.so.16()(64bit)
Error: Package: zabbix-server-mysql-2.4.5-1.el6.x86_64 (zabbix)
Requires: libmysqlclient.so.16(libmysqlclient_16)(64bit)
Error: Package: zabbix-server-mysql-2.4.5-1.el6.x86_64 (zabbix)
Requires: libnetsnmp.so.20()(64bit)
Error: Package: iksemel-1.4-2.el6.x86_64 (zabbix-non-supported)
Requires: libgnutls.so.26()(64bit)
Error: Package: iksemel-1.4-2.el6.x86_64 (zabbix-non-supported)
Requires: libgnutls.so.26(GNUTLS_1_4)(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I have searched a bit and I have came accross a lot of people has same problem and you can find some offered solutions to the problem. I have tried to implement the offered solutions but non of them solved the problem.
3.1- Offered solution from centos.org/forum : I could not understand this, I run the commands and result are shown below.
rpm -qR postfix
libmysqlclient.so.18()(64bit)
libmysqlclient.so.18(libmysqlclient_18)(64bit)
rpm -q mysql-libs
package mysql-libs is not installed
3.2- Offered solution from centos.org/forum This problem seems very similar but it does not helped either
3.3- Offered solution from zabbix.com/forum This problem seems exactly same, and a solution is offered. But I could not understand it.
Also, I found that on Zabbix official documentation 4- Zabbix 2.4 manual
Supported for versions: RHEL6, CentOS 6
centos 7 is not listed here, but it contradicts with Zabbix download page, since they provide a link for centos 7. you can check first link.
Please share if you have any idea how to solve this problem.
As #Jan Garaj pointed, the problem was yum try to install el6 packages, although I have changed the zabbix repository which is for rhel/7.
So, I have just cleaned the cache with the commands below and problem is resolved.
yum clean headers
yum clean packages
yum clean metadata
You can find more information about cleaning yum caches on this site:
Centos/clearing yum caches
You can find information about removing a yum repository on tihs site, Just cleaning cache solves this problem, so I did not try to remove yum repository. But, it can be useful if cleaning cache does not help.
serverFault/how to remove yum repo
I had similar problem while installing nginx. For me what helped was continuous release repository CR
Usage:
yum -y install yum-utils
yum-config-manager --enable cr

Error downloading and installling ant

Hi i am trying to install ant build system on my mac running latest version of OSX and i get this error:
brew install ant
==> Downloading http://www.apache.org/dyn/closer.cgi?path=ant/binaries/apache-ant-1.9.4-bin.tar.gz
Error: Failed to download resource "ant"
Download failed: Couldn't determine mirror, try again later.
Not sure what the issue is as all examples i have seen stated that the above should work fine?
i even tried a brew update and still get the same error.
Any suggestions?

Cloudera manager - hadoop installation failure

Try install Cloudera Manager.
Failed on step auto install in the hadoop hosts.
Error:
Installing JDK package...
BEGIN yum info jdk
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: archive.cs.uu.nl
* extras: archive.cs.uu.nl
* updates: mirror.fraunhofer.de
http://archive.cloudera.com/redhat/cdh/3/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: cloudera-cdh3. Please verify its path and try again
END (1)
remote package jdk is not available, giving up
From OS command
yum info jdk
complete success.
In the OS set proxy (export http_proxy=....)
Cloudera SCM fails because it is not able to use yum to download and install JDK.
So far I have seen it always tries to do that.
You can update yum repository on the machines yourself, depending on what version of Linux you are using.
Here is example using RHEL / OEL 5:
# This adds Oracle Yum repo
cd /etc/yum.repos.d/
wget http://public-yum.oracle.com/public-yum-el5.repo
# This adds Fedora EPEL yum repo
yum remove epel-release-5-4
rpm -Uvh http://mirrors.kernel.org/fedora-epel/5/x86_64/epel-release-5-4.noarch.rpm
See if you can install JDK manually.
[Edit:]
Check if you are able to do the following with out issues:
python
>>> import urllib
>>> x = urllib.urlopen('http://archive.cloudera.com/redhat/cdh/3/repodata/repomd.xml')
>>> x.getcode()
200
>>> print x.readlines()

Resources