How to install Ambari in Hortonworks HDP? - centos

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.

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.

Issue with hosting website on google cloud

Hosted website on google cloud, the PHP pages dont open in browser instead the webpage download, html pages work fine
we had a website hosted on hostinger it worked fine there, i have pointed my cname to google setup a bucket and all & uploaded files on public html from hostinger to this bucket
How to i get my php website to work on google cloud
You need to deploy LAMP stack on your GCP instance. Here are the steps to setup LAMP stack:
Install Apache and PHP on your instance
Debian 8 and Ubuntu 14
sudo apt-get update
sudo apt-get install apache2 php5 libapache2-mod-php5
Debian 9 and Ubuntu 16/17
sudo apt-get update
sudo apt-get install apache2 php libapache2-mod-php
CentOS 6 and 7
Install Apache and PHP:
sudo yum check-update
sudo yum -y install httpd php
Start the Apache service:
sudo service httpd start
Optional: Set the Apache service to start automatically:
sudo chkconfig httpd on
For complete documentation: Setting up LAMP on Compute Engine

How to install zookeeper as service on CentOS 7

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

Installing Spring-XD on Hortonworks HDP

I'm trying to install Spring-XD on the Hortonworks HDP Sandbox (VM Virtualbox running Red Hat).
According to the Spring-XD documentation (http://docs.spring.io/spring-xd/docs/1.0.0.M6/reference/html/#redhatcentos-installation), you can "install Spring XD using homebrew on OSX and yum on RedHat/CentOS."
I've tried yum search spring and with other spelling permutations, but get no matches.
Can anyone explain how to install spring-xd in this environment, whether via yum or other means?