Member since
01-19-2017
3679
Posts
632
Kudos Received
372
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 824 | 06-04-2025 11:36 PM | |
| 1409 | 03-23-2025 05:23 AM | |
| 701 | 03-17-2025 10:18 AM | |
| 2507 | 03-05-2025 01:34 PM | |
| 1641 | 03-03-2025 01:09 PM |
10-15-2017
09:06 PM
subsequent screenshots
... View more
10-15-2017
09:03 PM
1 Kudo
@ilia kheifets As promised I tried to recreate your environment on a 1 node cluster running Ubuntu 16.04 in a VM with 12 GB RAM.After the installations find below the high-level steps I performed. The Cluster is installing without any issues Generate public and private SSH keys on the Ambari Server host. root@ubuntu17:~# ssh-keygen Accepted default values,copy the SSH Public Key (id_rsa.pub) to the root account on your target hosts if multi-node. .ssh/id_rsa .ssh/id_rsa.pub Add the SSH Public Key to the authorized_keys file on your target hosts. root@ubuntu17:~# cat id_rsa.pub >> authorized_keys
root@ubuntu17:~# chmod 700 ~/.ssh
root@ubuntu17:~# chmod 600 ~/.ssh/authorized_keys Set NTPD root@ubuntu17:~# apt-get install ntp
root@ubuntu17:~# update-rc.d ntp defaults Set the host FQDN in my case the Ambari server vi /etc/hosts ---- IP--FDN--ALIAS 192.168.0.172 ubuntu17.kenya.com ubuntu17 Edit host name root@ubuntu17:~# vi /etc/hostname
ubuntu17.kenya.com Firewall settings root@ubuntu17:~# sudo ufw disable
The program 'setenforce' is currently not installed.So I installed
The program 'setenforce' is currently not installed.So I installed root@ubuntu17:~# apt install selinux-utils Disable SE-Linux root@ubuntu17:~# setenforce 0 Set UMASK root@ubuntu17:~# umask 0022
root@ubuntu17:~# echo umask 0022 >> /etc/profile Download Ambari repo files root@ubuntu17:~# wget -O /etc/apt/sources.list.d/ambari.list http://public-repo-1.hortonworks.com/ambari/ubuntu16/2.x/updates/2.5.2.0/ambari.list Grab the key root@ubuntu17:~# apt-key adv --recv-keys --keyserver keyserver.ubuntu.com B9733A7A07513CAD Update root@ubuntu17:~# apt-get update root@ubuntu17:~# apt-cache showpkg ambari-server
root@ubuntu17:~# apt-cache showpkg ambari-agent
root@ubuntu17:~# apt-cache showpkg ambari-metrics-assembly Install Java Openjdk comes with JCE root@ubuntu17:~# sudo apt-get install openjdk-8-jdk Install Ambari server here I used the root user root@ubuntu17:~# apt-get install ambari-server
root@ubuntu17:~# ambari-server setup Setup as root user with default postgres databases root@ubuntu17:~# ambari-server start
Ambari Server 'start' completed successfully. Get the FQDN for the ambari server root@ubuntu17:~# hostname -f
ubuntu17.kenya.com So my Ambari URL will be http://ubuntu17.kenya.com:8080 See attached screenshot,got an error with THP so had to disable root@ubuntu17:~/.ssh# cat /sys/kernel/mm/transparent_hugepage/enabled [always] madvise never
root@ubuntu17:~/.ssh# echo never > /sys/kernel/mm/transparent_hugepage/enabled
root@ubuntu17:~/.ssh# echo never > /sys/kernel/mm/transparent_hugepage/defrag
root@ubuntu17:~/.ssh# cat /sys/kernel/mm/transparent_hugepage/enabled always madvise [never] Setup Mysql database for hive ,oozie etc root@ubuntu17:~# sudo apt-get update
root@ubuntu17:~# sudo apt-get install mysql-server
root@ubuntu17:~# sudo mysql_secure_installation
root@ubuntu17:~# apt-get install -y libpostgresql-jdbc-java
root@ubuntu17:~# apt-get install libmysql-java
root@ubuntu17:~# ls /usr/share/java/mysql-connector-java.jar Check that the mysql connector is present at that location root@ubuntu17:~# ls /usr/share/java/mysql-connector-java.jar Create the hive,oozie and ranger databases in Mysql with the correct privileges created database for hive successfully created database for oozie successfully created database for ranger successfully Run this command # ambari-server setup --jdbc-db=mysql --jdbc-driver=/usr/share/java/mysql-connector-java.jar Proceeded with the cluster installation http://ubuntu17.kenya.com:8080 See attached screenshots
... View more
10-15-2017
08:16 PM
@Neha G I think I have seen a typo error in your command can you copy and paste the below command sudo su - hdfs hdfs dfsadmin -safemode leave And let me know
... View more
10-15-2017
07:42 PM
@Neha G Can you copy me the commands you used, just to be sure. Is it a single node cluster? And always include the details to error stack .
... View more
10-15-2017
07:20 PM
@Neha G The problem is that your HDFS is Safe mode do this to resolve the issue As root switch user to hdfs # su - hdfs Then # hdfs dfsadmin -safemode leave Then try restarting the namenode it should start successfully
... View more
10-15-2017
02:57 PM
@ilia kheifets revert justmeans get back to me I have just downloaded an Ubuntu 16.0.4 let me try it out. The ambari-agent can be installed NOT only when using non-root but if you don't have passwordless configuration between the nodes. # apt-get install ambari-agent Give me some time
... View more
10-15-2017
02:14 PM
@ilia kheifets I don't see your updated thread though I have just received your update email. So you are still encountering the same problem. What document did you use, if you have one can you share it. Did you run the below on all the 3 nodes # apt-get install ambari-agent Can you confirm that this directory exists /var/lib/ambari-agent/data/output-106.txt Please revert
... View more
10-15-2017
10:35 AM
@ilia kheifets Its unfortunate we didn't drill down to resolve the issue but always remember to also install the ambari-agent on the Ambari server! Keep me posted so I won't install and ubuntu 14 to resolve your problem.
... View more
10-15-2017
08:41 AM
@ilia kheifets Curious though did you install ambari-agent on the ambari server too? If you didn't please do that and edit /etc/ambari-agent/conf/ambari-agent.ini to point to the new host. [server]
hostname={Ambari-server_FQDN}
url_port=8440
secured_url_port=8441 Please le me know before I build an environment to reproduce your issue!
... View more
10-15-2017
08:14 AM
@ilia kheifets What is your cluster size? what error especially are you experiencing? Once you respond, I never experience such a problem n Ubuntu, will build a single node cluster and try to reproduce your error.
... View more