Skip to content

Commit debfb98

Browse files
Justin HayesPhilip Langdale
Justin Hayes
authored and
Philip Langdale
committed
typos and updated gitignore for PyDev
1 parent b56b490 commit debfb98

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# Eclipse files
55
.classpath
66
.project
7+
.pydevproject
78

89
# Emacs backup files
910
*~

python/examples/auto-deploy/deploycloudera.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# Copyright (c) 2013-2014 Cloudera, Inc. All rights reserved.
44

5-
# Deploys a CDH cluster and confiugres CM management services.
5+
# Deploys a CDH cluster and configures CM management services.
66

77
import socket, sys, time, ConfigParser, csv, pprint
88
from subprocess import Popen, PIPE, STDOUT
@@ -896,7 +896,7 @@ def deploy_accumulo(cluster, service_name, service_config, master_hosts, master_
896896
return accumulo
897897

898898

899-
# Executes steps that need to be done after the final startup once everytning is deployed and running.
899+
# Executes steps that need to be done after the final startup once everything is deployed and running.
900900
def post_startup(cluster, hdfs_service, oozie_service):
901901
# Create HDFS temp dir
902902
hdfs_service.create_hdfs_tmp()
@@ -1014,4 +1014,4 @@ def main():
10141014

10151015

10161016
if __name__ == "__main__":
1017-
main()
1017+
main()

python/examples/auto-deploy/setup-master.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ ntp_server=`grep ntp.server $config_file | awk -F'=' '{print $2}'`
1010
hive_metastore_host=`grep hive.metastore.host $config_file | awk -F'=' '{print $2}'`
1111
hive_metastore_password=`grep hive.metastore.password $config_file | awk -F'=' '{print $2}'`
1212

13-
# Prep Cloduera repo
13+
# Prep Cloudera repo
1414
sudo yum -y install wget
1515
wget http://archive.cloudera.com/cm5/redhat/6/x86_64/cm/cloudera-manager.repo
1616
sudo mv cloudera-manager.repo /etc/yum.repos.d/
1717

1818
# Turn off firewall
1919
sudo service iptables stop
2020

21-
#Turn off SELINUX
21+
# Turn off SELINUX
2222
sudo echo 0 >/selinux/enforce
2323

24-
#Set up NTP
24+
# Set up NTP
2525
sudo yum -y install ntp
2626
sudo chkconfig ntpd on
2727
sudo ntpdate $ntp_server
@@ -48,7 +48,7 @@ mysql -uroot -p$hive_metastore_password --execute="GRANT SELECT,INSERT,UPDATE,DE
4848
mysql -uroot -p$hive_metastore_password --execute="FLUSH PRIVILEGES;"
4949
mysql -uroot -p$hive_metastore_password --execute="create database oozie; grant all privileges on oozie.* to 'oozie'@'localhost' identified by '$hive_metastore_password'; grant all privileges on oozie.* to 'oozie'@'%' identified by '$hive_metastore_password';"
5050

51-
#Make sure DNS is set up properly so all nodes can find all other nodes
51+
# Make sure DNS is set up properly so all nodes can find all other nodes
5252

5353
# For master
5454
sudo yum -y install cloudera-manager-agent cloudera-manager-daemons cloudera-manager-server cloudera-manager-server-db-2
@@ -63,7 +63,7 @@ navigatordbpassword=`grep com.cloudera.cmf.NAVIGATOR.db.password /etc/cloudera-s
6363
headlampdbpassword=`grep com.cloudera.cmf.REPORTSMANAGER.db.password /etc/cloudera-scm-server/db.mgmt.properties | awk -F'=' '{print $2}'`
6464

6565
# Sleep for a while to give the agents enough time to check in with the master.
66-
# Or better yet, make a dependency so that the slave setup cripts don't start until now and the rest of this script doesn't finish until the slaves finish.
66+
# Or better yet, make a dependency so that the slave setup scripts don't start until now and the rest of this script doesn't finish until the slaves finish.
6767
sleep_time=180
6868
echo "Sleeping for $sleep_time seconds so managed cluster nodes can get set up."
6969
sleep $sleep_time

python/examples/auto-deploy/setup-slave.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ config_file=clouderaconfig.ini
88
cm_server_host=`grep cm.host $config_file | awk -F'=' '{print $2}'`
99
ntp_server=`grep ntp.server $config_file | awk -F'=' '{print $2}'`
1010

11-
# Prep Cloduera repo
11+
# Prep Cloudera repo
1212
sudo yum -y install wget
1313
wget http://archive.cloudera.com/cm5/redhat/6/x86_64/cm/cloudera-manager.repo
1414
sudo mv cloudera-manager.repo /etc/yum.repos.d/
1515

1616
# Turn off firewall
1717
sudo service iptables stop
1818

19-
#Turn off SELINUX
19+
# Turn off SELINUX
2020
sudo echo 0 >/selinux/enforce
2121

2222
#Set up NTP
@@ -25,12 +25,12 @@ sudo chkconfig ntpd on
2525
sudo ntpdate $ntp_server
2626
sudo /etc/init.d/ntpd start
2727

28-
#Make the mysql driver available to hive
28+
# Make the mysql driver available to hive
2929
sudo yum -y install mysql-connector-java
3030
sudo mkdir -p /usr/lib/hive/lib/
3131
sudo ln -s /usr/share/java/mysql-connector-java.jar /usr/lib/hive/lib/mysql-connector-java.jar
3232

33-
#Make sure DNS is set up properly so all nodes can find all other nodes
33+
# Make sure DNS is set up properly so all nodes can find all other nodes
3434

3535
# For slaves
3636
sudo yum -y install cloudera-manager-agent cloudera-manager-daemons

0 commit comments

Comments
 (0)