Hortonworks Scripts & Utils
We have two scripts: install.sh and install_hdf_on_hdp.sh. Both scripts requires a configuration file called install.cfg.
We need to setup a configuration file, the following is a sample we we need to define variables that will define the installation of the HDP servers.
REMOTE_PATH=root
NUMINSTANCES=4
HOSTPREFIX='hgalante-hdp-sample-cluster-'
DOMAIN='.sample.anycloud.com'
START=1
AMBARI_NUMBER=1
MARIA_DB_NUMBER=2
GENERATE_KEYS=N
USER=root
PASSWORD=my_strong_password
AMBARI_REPO_URL=http://private-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.7.3.6-4/ambari.repo
MPACK_AMBARI_HDF_URL=http://public-repo-1.hortonworks.com/HDF/centos7/3.x/updates/3.4.1.1/tars/hdf_ambari_mp/hdf-ambari-mpack-3.4.1.1-4.tar.gz
Type | Description |
---|---|
REMOTE_PATH | Path where we are going to use for temp downloads |
NUMINSTANCES | Number of vm instances to use |
HOSTPREFIX | name of the servers, usually, they have the same start up in the name |
DOMAIN | Domain of the machines |
START | Which machine should we start on |
AMBARI_NUMBER | Number of vm instance where Ambari will be deployed |
MARIA_DB_NUMBER | Number of vm where MariaDB will be deployed |
GENERATE_KEYS | Do we need to generate SSH keys? Y/N |
USER | User used to login into the linux boxes |
AMBARI_REPO_URL | URL where is the Repo file to download and install the Ambari software |
MPACK_AMBARI_HDF_URL | URL where is the HDF pack |
All scripts developed on this repo are only for CentOS 7.x
If you get an error while installing the cluster or a node to HDP like SSLError: Failed to connect. Please check openssl library versions, please edit the configuration on all nodes for the agent
# vi /etc/ambari-agent/conf/ambari-agent.ini
force_https_protocol=PROTOCOL_TLSv1_2
Please refer to the following article for more information: https://techtalks.tech/knowledge-base/error-while-adding-a-node-to-hdp-sslerror-failed-to-connect-please-check-openssl-library-versions/
Starting with the HDP 3.1.5 release, access to HDP repositories requires authentication. To access the binaries, you must first have the required authentication credentials (username and password).
All scripts developed on this repo are only for CentOS 7.x
If you want to change it, first, you need to change it in Ranger and after that on Ambari. If you forgot the password on ranger, go to the mysql database and execute the following SQL rto reset to defaul: admin
use ranger;
update x_portal_user set password = 'ceb4f32325eda6142bd65215f4c0f371' where login_id = 'admin';