You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by ja...@apache.org on 2014/06/23 15:08:29 UTC

git commit: BIGTOP-1347. Support better entropy performance on vagrant VMs

Repository: bigtop
Updated Branches:
  refs/heads/master b163a794d -> 90b2df1ce


BIGTOP-1347. Support better entropy performance on vagrant VMs

Signed-off-by: Jay Vyas <ja...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/90b2df1c
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/90b2df1c
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/90b2df1c

Branch: refs/heads/master
Commit: 90b2df1ce21faff7414ce3203340eb13498e2b5a
Parents: b163a79
Author: evans_ye <in...@gmail.com>
Authored: Sun Jun 22 18:18:00 2014 +0800
Committer: Jay Vyas <ja...@apache.org>
Committed: Mon Jun 23 09:07:59 2014 -0400

----------------------------------------------------------------------
 bigtop-deploy/vm/vagrant-puppet/provision.sh | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/90b2df1c/bigtop-deploy/vm/vagrant-puppet/provision.sh
----------------------------------------------------------------------
diff --git a/bigtop-deploy/vm/vagrant-puppet/provision.sh b/bigtop-deploy/vm/vagrant-puppet/provision.sh
index 92c58f3..0daccfa 100755
--- a/bigtop-deploy/vm/vagrant-puppet/provision.sh
+++ b/bigtop-deploy/vm/vagrant-puppet/provision.sh
@@ -33,3 +33,9 @@ components,hadoop,hbase
 EOF
 
 mkdir -p /data/{1,2}
+
+# Setup rng-tools to improve virtual machine entropy performance.
+# The poor entropy performance will cause kerberos provisioning failed.
+yum -y install rng-tools
+sed -i.bak 's/EXTRAOPTIONS=\"\"/EXTRAOPTIONS=\"-r \/dev\/urandom\"/' /etc/sysconfig/rngd
+service rngd start