How to install zookeeper as service on CentOS 7 - centos

I am trying to install zookeeper on CentOS 7 using yum install zookeeper or yum install zookeeperd but it throws: There is no zookeeper package available.

An alternative answer if you don't want to install a 3rd party repo from cloudera you could use the Apache Bigtop repo. Apache being the actual maintainer of Zookeeper.
As of writing it's this repo file on CentOS 7.
This will let you install Zookeeper by simply running yum install zookeeper.
Unfortunately that package does not include a systemd service file so I had to write my own, but that's not very hard.
[Unit]
Description=Zookeeper
After=syslog.target
[Service]
SyslogIdentifier=zookeeper
TimeoutStartSec=10min
Type=forking
ExecStart=/usr/lib/zookeeper/bin/zkServer.sh start
ExecStop=/usr/lib/zookeeper/bin/zkServer.sh stop
[Install]
WantedBy=multi-user.target

You have to add the repo that contains zookeeper. You can do this with:
yum install https://archive.cloudera.com/cdh5/one-click-install/redhat/7/x86_64/cloudera-cdh-5-0.x86_64.rpm
Afterwards you can install zookeeper normally.
See the documents here:
http://www.cloudera.com/documentation/enterprise/5-8-x/topics/cdh_ig_zookeeper_package_install.html
http://www.cloudera.com/documentation/enterprise/5-8-x/topics/cdh_ig_cdh5_install.html

Related

How to uninstall collectd completely from ubuntu 16.04 server

I had collectd-5.5 installed on my ubuntu-16.04 server and I tried to install the newer version as described in collectd download page..
it seems that it didn't work, so now I'm trying to uninstall collectd from my server completely, to install a fresh version again.
To uninstall, I've run below commands:
sudo apt-get remove collectd
sudo apt-get remove --auto-remove collectd
sudo apt-get purge collectd
sudo apt-get purge --auto-remove collectd
now when I delete the /var/lib/collectd folder, it gets created immediately with the rrd folder in it.
collectd command and service do not exist anymore, but it seems that it's not removed from my server completely, or maybe I have another version of collectd running?
how can I check?
did I miss something in the uninstalling process?
Thanks.
as #Lutz mentioned in question comments, the collectd process was running after the uninstall, so I had to kill it manually, restarting the server would do the work though, but in my case, I was working on a production server, so I decided to kill it this way:
sudo killall collectd

Kubernetes installation with conjure up

I am trying to install kubernetes with conjure-up in my Mac. I installed conjure-up with the help of brew. Once I start conjure-up I am not getting the option to install in localhost. Why is that?
I only see commands requirement as below
brew install conjure-up
conjure-up kubernertes
I have tried with all flavours of kubernetes provided by conjure-up and didn't add any add on also.
THanks in advance
Before using conjure-up on Localhost you need to setup your LXD on local machine.
As mentioned in MacOs builds documentation you need to run:
brew install lxc
Then you need to run and configure LXD:
sudo lxd init
Then try again.

How to install Ambari in Hortonworks HDP?

I am trying to install HortonWorks HDP manually on a CentOS box. I am following the instructions given on this page http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.2/bk_installing_manually_book/content/meet-min-system-requirements.html
I do not see any instruction on installing Apache Ambari. How to do it?
The instructions that you are looking at are for installing HDP manually, that means installing HDP without Ambari. You cannot have a manual installation with Ambari since Ambari is a tool for provisioning, managing and monitoring Hadoop clusters. If the cluster is configured manually it cannot be managed or monitored by Ambari.
If you do intend on having Ambari provision the cluster for you and the machine has access to the internet you can run the following commands:
For CentOS6
sudo wget -nv http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.1.2/ambari.repo -O /etc/yum.repos.d/ambari.repo
sudo yum install ambari-server
sudo ambari-server setup
For CentOS7
sudo wget -nv http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.1.2/ambari.repo -O /etc/yum.repos.d/ambari.repo
sudo yum install ambari-server
sudo ambari-server setup
If the machine doesn't have access to the internet or if you need further information see the official HDP documentation for installation guidance.

How does Vagrant automatically install Docker on CentOS?

I wonder how Vagrant is installing Docker with the Docker provisioner. Is Vagrant using packages from some package-manager or is it built from source? Which commands were fired to finish the installation process?
Okay, found it by myself. Here's the sourcecode.
Vagrant is using yum on CentOS.
For CentOS 6 Vagrant uses the package ´docker-io´ in EPEL and for CentOS 7 ´docker´ in the Extras Repo.
1: if you must use centos . you must update you centos python version => 7.0
2: if you don't . pls use coreos . coreos begin with docker :)
if you want to get commond line for install docker-io .
add commonet

Install MongoDB on centos without YUM

I am trying to install mongodb on cent os. As mentioned in the question, I need to install it without YUM command. I downloaded the .rpm file from mongodb site. I have used rpm -ivh mongo-10gen-2.4.8-mongodb_1.x86_64.rpm command to install the .rpm. It successfully installed the mongodb. You can check the status here. I am not getting how to move forward after this ? The files mongod.conf and mongod also not getting on the system. Any help will be greatly appreciated.
The mongo-10gen-2.4.8-mongodb_1.x86_64.rpm is only MongoDB client. If you need a server, install a server package (mongo-10gen-server-X.X.X-mongodb_1.x86_64.rpm) or compile from a source.