@@ -76,22 +76,22 @@ parse_opts() {
76
76
77
77
case " $1 " in
78
78
-c|--conf)
79
- check_empty " conf file not be empty" $2
80
- check_file_readable " file $2 not be read permission" $2
79
+ check_empty " conf file can't be empty" $2
80
+ check_file_readable " file $2 doesn't have read permission" $2
81
81
COMPUTER_CONF_PATH=$2
82
82
shift 2 ;;
83
83
-l|--log4)
84
- check_empty " log conf file not be empty" $2
85
- check_file_readable " file $2 not be read permission" $2
84
+ check_empty " log conf file can't be empty" $2
85
+ check_file_readable " file $2 doesn't have read permission" $2
86
86
LOG4J_CONF_PATH=$2
87
87
shift 2 ;;
88
88
-a|--algorithm)
89
- check_empty " algorithm jar file not be empty" $2
90
- check_file_readable " file $2 not be read permission" $2
89
+ check_empty " algorithm jar file can't be empty" $2
90
+ check_file_readable " file $2 doesn't have read permission" $2
91
91
JAR_FILE_PATH=$2
92
92
shift 2 ;;
93
93
-d|--drive)
94
- check_empty " drive not be empty" $1
94
+ check_empty " driver can't be empty" $1
95
95
case " $2 " in
96
96
${K8S_DRIVE} )
97
97
DRIVE=${K8S_DRIVE}
@@ -103,7 +103,7 @@ parse_opts() {
103
103
DRIVE=${LOCAL_DRIVE}
104
104
;;
105
105
* )
106
- echo " unknown drive %2, muse be k8s|yarn|local"
106
+ echo " unknown drive %2, must be k8s|yarn|local"
107
107
exit 1
108
108
esac
109
109
shift 2;;
@@ -116,7 +116,7 @@ parse_opts() {
116
116
ROLE=${ROLE_WORKER}
117
117
;;
118
118
* )
119
- echo " unknown role %2, muse be master|worker"
119
+ echo " unknown role %2, must be master|worker"
120
120
exit 1
121
121
esac
122
122
shift 2;;
@@ -129,21 +129,21 @@ parse_opts $*
129
129
130
130
if [ " ${COMPUTER_CONF_PATH} " = " " ]; then
131
131
if [ " $DRIVE " = " $K8S_DRIVE " ]; then
132
- echo " conf file missed " ;
132
+ echo " conf file is missing " ;
133
133
usage;
134
134
exit 1;
135
135
fi
136
136
COMPUTER_CONF_PATH=${CONF_DIR} /computer.properties
137
137
fi
138
138
139
139
if [ " ${DRIVE} " = " " ]; then
140
- echo " drive is missed " ;
140
+ echo " drive is missing " ;
141
141
usage;
142
142
exit 1;
143
143
fi
144
144
145
145
if [ " ${ROLE} " = " " ]; then
146
- echo " role is missed " ;
146
+ echo " role is missing " ;
147
147
usage;
148
148
exit 1;
149
149
fi
0 commit comments