Created on 01-19-2017 04:10 PM - edited 09-16-2022 01:38 AM
HDB 2.1.1
Reference: http://hdb.docs.pivotal.io/211
http://hdb.docs.pivotal.io/211/hdb/releasenotes/HAWQ211ReleaseNotes.html
http://hdb.docs.pivotal.io/211/hdb/install/install-ambari.html
Download HDB from Hortonworks at http://hortonworks.com/downloads/ or directly from Pivotal at https://network.pivotal.io/products/pivotal-hdb (You need to create a pivotal account)
yum install httpd sudo service httpd status sudo service httpd start
/* On Ambari Node */ 1. mkdir /staging 2. chmod a+rx /staging 3. scp -i <<your key>> -o 'StrictHostKeyChecking=no' hdb-2.1.1.0-7.tar root@<<ambarinode>>:~/staging 4. tar -zxvf hdb-2.1.1.0-7.tarcd /staging/hdb-2.1.1.0./setup_repo.sh /* You should see the message “hdb-2.1.1.0 Repo file successfully created at /etc/yum.repos.d/hdb-2.1.1.0.repo. */ 5. yum install -y hawq-ambari-plugin 6. cd /var/lib/hawq 7. ./add-hawq.py --user admin --password admin --stack HDP-2.5 /* if the repo is in the same node as Ambari else pint to where the repo lives*/ ./add-hawq.py --user <admin-username> --password <admin-password> --stack HDP-2.5 --hawqrepo <hdb-2.1.x-url> --addonsrepo <hdb-add-ons-2.1.x-url> 8. ambari-server restart
Property | Setting |
dfs.allow.truncate | true |
dfs.block.access.token.enable | false for an unsecured HDFS cluster, or true for a secure cluster |
dfs.block.local-path-access.user | gpadmin |
dfs.client.read.shortcircuit | true |
dfs.client.socket-timeout*** | 300000000 |
dfs.client.use.legacy.blockreader.local | false |
dfs.datanode.handler.count | 60 |
dfs.datanode.socket.write.timeout*** | 7200000 |
dfs.namenode.handler.count | 600 |
dfs.support.append | true |
Property | Setting |
ipc.client.connection.maxidletime** | 3600000 |
ipc.client.connect.timeout** | 300000 |
ipc.server.listen.queue.size | 3300 |
select * from hawq_toolkit.hawq_size_of_table_disk;
select sodddatname, sodddatsize/(1024*1024) from hawq_toolkit.hawq_size_of_database;
select * hawq_toolkit.hawq_size_of_partition_and_indexes_disk
SELECT gp_segment_id, COUNT(*) FROM <<table>> GROUP BY gp_segment_id ORDER BY 1;
<<TBD>
<<TBD>