diff --git a/bde/create_cdh_users.sh b/bde/create_cdh_users.sh index eb3ca63..a24c6ca 100755 --- a/bde/create_cdh_users.sh +++ b/bde/create_cdh_users.sh @@ -1,7 +1,7 @@ #!/bin/bash -gid_base=601 -uid_base=601 +gid_base=1000 +uid_base=1000 #for user in hdfs mapred hbase hive yarn oozie sentry impala spark hue sqoop2 solr sqoop httpfs llama zookeper flume sample; do # userdel -f -r $user diff --git a/bde/remote_mount_nfs.sh b/bde/remote_mount_nfs.sh index 3b7896b..686d6a5 100755 --- a/bde/remote_mount_nfs.sh +++ b/bde/remote_mount_nfs.sh @@ -7,6 +7,6 @@ NFSPATH=$3 echo ${USER_HOST} ssh ${USER_HOST} "umount ${MOUNT} ; mkdir -p ${MOUNT}" || exit ssh ${USER_HOST} "grep -v ${MOUNT} /etc/fstab > /tmp/fstab ; cp /tmp/fstab /etc/fstab" || exit -ssh ${USER_HOST} "echo ${NFSPATH} ${MOUNT} nfs nolock,nfsvers=3,tcp,rw,hard,intr,timeo=600,retrans=2,rsize=131072,wsize=524288 >> /etc/fstab" || exit +ssh ${USER_HOST} "echo ${NFSPATH} ${MOUNT} nfs nolock,nfsvers=3,tcp,rw,hard,intr,timeo=600,retrans=2,rsize=524288,wsize=524288 >> /etc/fstab" || exit ssh ${USER_HOST} "mount -a; ls -lh ${MOUNT}" || exit diff --git a/etc/template-hwx-post.json b/etc/template-hwx-post.json new file mode 100755 index 0000000..c8077a9 --- /dev/null +++ b/etc/template-hwx-post.json @@ -0,0 +1,22 @@ +{ + "ser_host": "https://bde.lab.example.com:8443", + "ser_username": "root", + "ser_password": "your_vsphere_password", + "skip_configure_network": false, + "dhcp_domain": ".lab.example.com", + "cluster_name": "mycluster1", + "host_file_name": "etc/mycluster1-hosts.txt", + "node_password": "your_vm_root_password", + "name_filter_regex": "", + "tools_root": "/mnt/scripts/isilon-hadoop-tools", + "nfs_mounts": [ + {"mount_point": "/mnt/scripts", "path": "subnet0-pool0.isiloncluster1.lab.example.com:/ifs/isiloncluster1/scripts"} + ], + "ssh_commands": [ + "/mnt/scripts/isilon-hadoop-tools/bde/mount_data_directories.pl", + "cp -Rv /mnt/scripts/isilon-hadoop-tools/bde/centos6.4-overwrite/* /", + "sysctl -p ; true", + "echo never > /sys/kernel/mm/redhat_transparent_hugepage/defrag" + ] +} +