source: nutchez-0.2/src/shell/lang/lang_en_US

Last change on this file was 244, checked in by shunfa, 14 years ago

修改驗證資料夾及語言檔

File size: 15.3 KB
Line 
1#!/bin/bash
2# Program:
3#   Chinese Language file for NutchEZ
4# Author:
5#   Waue, Shunfa, Rock {waue, shunfa, rock}@nchc.org.tw
6# Version:
7#    1.0
8# History:
9#
10
11############ Lang for master_install -Start ############
12MI_main_echo_1="Welcome to use NutchEZ, this install program will create a new accunt and to assist you to setup the password of nutchuser."
13MI_main_echo_2="Please confirm the install infomation of above :1.Yes 2.No "
14MI_main_echo_3="Installed successfully!"
15MI_main_echo_4="You can visit the manage website :http://$MasterIP_Address:8080"
16
17## Lang for master_install_func.sh ##
18### [for choose_lang()] ###
19MI_choose_lang_1="Please select a language: (1)English (2)中文" 
20MI_choose_lang_2="Use (1/2):" 
21
22### [for check_root()]###
23MI_check_root_1="Please change root to execute it!!!" 
24MI_check_root_2="Identify is root" 
25 
26### [for check_systemInfo()]###
27MI_check_sys_1="check_systemInfo" 
28MI_check_sys_2="Your system information is:" 
29
30### [for install_packages()]###
31MI_install_pack_1="install_packages" 
32MI_install_pack_2="Check dependent packages" 
33MI_install_pack_if_1="It will install some packages (expect, ssh, and dialog)." 
34MI_install_pack_if_2="Please manually install expect, ssh, and dialog.Please manually install expect, ssh, and dialog." 
35 
36### [for check_nez_installed()] ###
37MI_check_nez_1="chcheck_nez_installed" 
38MI_check_nez_2="System already had NutchEz." 
39MI_check_nez_3="System does not has NutchEz." 
40 
41### [for check_sunJava()] ###
42MI_check_sunJava_1="check_sunJava" 
43MI_check_sunJava_2="NutchEz need Sun Java JDK 1.6.x or above version" 
44MI_check_sunJava_if_1="Java is not Sun version, plz install sun Java 1.6.X" 
45MI_check_sunJava_if_2="Please input your choice:" 
46MI_check_sunJava_if_3="(1)System don't have Sun Java (2)Sun Java is in other path (3)Exit" 
47MI_check_sunJava_if_4="Use (1/2/3): " 
48MI_check_sunJava_if_5="Please install Sun Java manually!" 
49MI_check_sunJava_if_6="Input Sun Java home path(ex. '/usr/lib/jvm/java-6-sun-1.6.0.12' or using default '/usr' ): " 
50MI_check_sunJava_if_7="It is not Sun Java! Please install Sun Java manually !" 
51MI_check_sunJava_if_8="Java version is too old (it need 1.6.X above)"
52MI_check_sunJava_if_9="System has Sun Java 1.6 above version." 
53MI_check_sunJava_if_10="Please install Sun JAVA 1.6.X or above version" 
54 
55### [for check_ssh()] ###
56MI_check_ssh_1="check_ssh" 
57MI_check_ssh_2="System has ssh." 
58MI_check_ssh_3="Please install ssh." 
59MI_check_ssh_4="System has ssh Server (sshd)." 
60MI_check_ssh_5="Please install ssh Server (sshd)." 
61 
62### [for check_dialog()] ###
63MI_check_dialog_1="check_dialog" 
64MI_check_dialog_2="System has dialog." 
65MI_check_dialog_3="Please install dialog." 
66     
67#
68MI_set_nutchuser_passwd_echo_1="Set password for nutchuser:"
69MI_set_nutchuser_passwd_echo_2="keyin the password again:"
70
71#
72MI_select_eth_echo_1="System has detectable network cards as follows:"
73MI_select_eth_echo_2="Please choose a netword card for NutchEZ. Use (1/2/3):"
74MI_select_eth_echo_3="Your choose is:$net_choice"
75MI_select_eth_echo_4="Master IP address is:$net_address"
76MI_select_eth_echo_5="Master MAC address is:$net_MacAddr"
77
78#
79MI_show_master_info_echo_1="Master IP address is:"
80MI_show_master_info_echo_2="Master MAC address is: "
81
82
83#
84MI_make_ssh_key_echo_1="Producing SSH Key... "
85MI_make_ssh_key_echo_2="SSH Key has been produced."
86
87#
88MI_set_haoop_site_echo_1="Setting hadoop-site.xml... "
89MI_set_haoop_site_echo_2="Setting hadoop-site.xml finished."
90
91#
92MI_set_nutch_site_echo_1="Setting nutch-site.xml..."
93MI_set_nutch_site_echo_2="Setting http.agent.url at line: $Line_NO..."
94MI_set_nutch_site_echo_3="Editing http.agent.url, delete line $Line_NO."
95MI_set_nutch_site_echo_4="Editing http.agent.url finished."
96MI_set_nutch_site_echo_5="Setting http.agent.email at line:$Line_NO."
97MI_set_nutch_site_echo_6="Editing http.agent.email, delete line $Line_NO."
98MI_set_nutch_site_echo_7="Editing http.agent.email finished."
99MI_set_nutch_site_echo_8="Editing hadoop-site.xmlfinished."
100
101#
102MI_format_HDFS_echo_1="Formatting HDFS..."
103MI_format_HDFS_echo_2="HDFS has been formatted."
104
105#
106MI_start_up_NutchEZ_echo_1="Start up NutchEZ..."
107
108#
109MI_set_hosts_echo_1="Set hosts on master"
110
111#
112MI_install_Nutch_echo_1="Master's IP address is:"
113MI_install_Nutch_echo_2="Master's Hostname is:"
114
115#
116MI_client_PassMasterIPAddr_echo_1="Edit MasterIP in client install file at line $Line_NO"
117MI_client_PassMasterIPAddr_echo_2="Editing MasterIP..."
118MI_client_PassMasterIPAddr_echo_3="MasterIP has been set."
119
120#
121MI_client_PassMaster_Hostname_echo_1="Edit master hostname in client install file at line $Line_NO"
122MI_client_PassMaster_Hostname_echo_2="Editing Hostname..."
123MI_client_PassMaster_Hostname_echo_3="Hostname has been set."
124
125#
126MI_make_client_install_echo_1="In function of make_client_install ..."
127
128#
129MI_start_up_tomcat_echo_1="Start up tomcat..."
130MI_start_up_tomcat_echo_2="Please wait about 10 sec..."
131MI_start_up_tomcat_echo_3="Tomcat has been started!"
132
133#
134MI_client_install_commands_echo_1="For client install, please refer commands as follows:"
135MI_client_install_commands_echo_2="scp nutchuser@$MasterIP_Address:/home/nutchuser/nutchez/source/client_deploy ."
136MI_client_install_commands_echo_3="./client_deploy"
137MI_client_install_commands_echo_4="sudo su"
138MI_client_install_commands_echo_5="~/nutchez_client_install/client_install"
139
140########## Lang for Master Install - End##########
141
142########## Lang for Client Install - Start##########
143
144# [Variables Declaration] #
145## Lang for client_install ##
146par_echo_1="Your master IP is:"
147par_echo_2="Is this information cooect? (yes/no): "
148par_echo_3="These parameters are correct."
149par_echo_4="Please edit these parameters in this file."
150
151## [Lang for client_install_fun.sh] ##
152### [for choose_lang()] ###
153choose_lang_1="Please choose your language: (1)English (2)中文"
154choose_lang_2="(1/2):"
155
156### [for check_root()]###
157check_root_1="Please Change root to execute it!!!"
158check_root_2="Identify is root."
159
160### [for check_systemInfo()]###
161check_sys_1="check_systemInfo"
162check_sys_2="Your system information are: "
163
164### [for install_packages()]###
165install_pack_1="install_packages"
166install_pack_2="Check dependent packages"
167install_pack_if_1="It will install some packages (expect, ssh, and dialog)."
168install_pack_if_2="Please manually install expect, ssh, and dialog."
169
170### [for check_nez_installed()] ###
171check_nez_1="chcheck_nez_installed"
172check_nez_2="System already had NutchEz."
173check_nez_3="System does not has NutchEz."
174
175### [for check_sunJava()] ###
176check_sunJava_1="check_sunJava"
177check_sunJava_2="NutchEz need Sun Java JDK 1.6.x or above version"
178check_sunJava_if_1="Java is not Sun version, plz install sun Java 1.6.X"
179check_sunJava_if_2="Please input your choice: "
180check_sunJava_if_3="(1)System don't have Sun Java (2)Sun Java is in other path (3)Exit"
181check_sunJava_if_4="plz input (1/2/3): "
182check_sunJava_if_5="Please install Sun Java manually!"
183check_sunJava_if_6="Input Sun Java home path(ex. '/usr/lib/jvm/java-6-sun-1.6.0.12' or using default '/usr' ): "
184check_sunJava_if_7="It is not Sun Java! Plz install Sun Java manually !"
185check_sunJava_if_8="Java version is too old (it need 1.6.X above)"
186check_sunJava_if_9="System has Sun Java 1.6 above version."
187check_sunJava_if_10="Please install Sun JAVA 1.6.X or above version"
188
189### [for check_ssh()] ###
190check_ssh_1="check_ssh"
191check_ssh_2="System has ssh."
192check_ssh_3="Please install ssh."
193check_ssh_4="System has ssh Server (sshd)."
194check_ssh_5="Please install ssh Server (sshd)."
195
196### [for check_dialog()] ###
197check_dialog_1="check_dialog"
198check_dialog_2="System has dialog."
199check_dialog_3="Please install dialog."
200
201### scp_master_nutchuser_sshkey() ###
202scp_sshkey_d1="scp_master_nutchuser_sshkey"
203scp_sshkey_d2="mkdir -p /home/nutchuser/"
204scp_sshkey_d3="scp nutchuser@master:~/.ssh /home/nutchuser/"
205scp_sshkey_expect_1="Password is error"
206scp_sshkey_s1="scp correct."
207scp_sshkey_s2="scp error,\n(1)plese check nutchuser password in server\n(2)nutchuser's authorized_keys in server\n(3)server's network status"
208scp_sshkey_d4="chown -R nutchuser:nutchuser /home/nutchuser/.ssh"
209
210### [for creat_nutchuser_account()] ###
211create_nutchuser_d1="creat_nutchuser_account"
212create_nutchuser_1="Plz input nutchuser password of master node: "
213create_nutchuser_2="plz input nutchuser password, again: "
214create_nutchuser_3="Two Passwords match."
215create_nutchuser_4="Two passwords don't match, please re-input nutchuser's password."
216create_nutchuser_s1="System already has nutchuser, change nutchuser password."
217create_nutchuser_s2="Create nutchuser and change password."
218
219### [for scp_packages()] ###
220scp_packages_d1="scp_packages"
221scp_packages_d2="chown -R nutchuser:nutchuser /opt/nutchez"
222scp_packages_d3="scp -r nutchuser@\$1:/opt/nutchez/NutchezForClientOf_\$Master_IP_Address.tar.gz /home/nutchuser/nutchez/source"
223
224### [for install_nutch_package()] ###
225install_nutch_package_d1="install_nutch_package"
226
227### [for recall_hostname_ip()] ###
228recall_hostname_ip_d1="recall_hostname_ip"
229recall_hostname_ip_1="net_address is"
230recall_hostname_ip_2="net_MacAddr is"
231recall_hostname_ip_3="System have multiple network device, which network use for this machine: "
232recall_hostname_ip_4="Please choice(1/2/3...): "
233recall_hostname_ip_d2="ssh nutchuser@\$1 echo \$net_address \$(hostname) \$net_MacAddr \>\> ~/nutchez/system/nutch_nodes"
234
235########## Lang for Client Install - End##########
236
237########## Lang for Master Remove - Start##########
238
239# check root
240MR_check_root_1="Please change root to execute it!!!"
241MR_check_root_2="Identify is root, let's continue!"
242
243# shutdown service
244MR_shutdown_service_echo_1="Stop the service of slaves..."
245MR_shutdown_service_echo_2="Stop the service of master..."
246MR_shutdown_service_echo_3="The service of Master"
247
248# remove_folders
249MR_remove_folders_echo_1="Deleting floders and files of NutchEZ..."
250MR_remove_folders_echo_2="Floders and files has deleted."
251
252# edit_hosts
253MR_edit_hosts_echo_1="Restoring /etc/hosts..."
254MR_edit_hosts_echo_2="/etc/hosts restoring finished."
255
256# user_delete
257MR_user_delete_echo_1="Deleting user: nutchuser..."
258MR_user_delete_echo_2="nutchuser has deleted"
259
260# main
261MR_main_echo_1="Warning - this program will remove nutchEZ, if you don't understard what this program to do, please press Ctrl+c to leave!"
262MR_main_echo_2="This program will delete all of nutchEZ's files and folders and delete user nutchuser."
263MR_main_echo_3="Are you sure to remove this node? 1.Yes 2.No "
264MR_main_echo_4="NutchEZ had removed!"
265MR_main_echo_5="You are cancelling this remove procedure!"
266MR_main_echo_6="If you want to remove NutchEZ of this node, please execute this program again."
267
268########## Lang for Master Remove - End ##########
269
270########## Lang for Client Remove - Start ##########
271# check root
272CR_check_root_1="Please change root to execute it!!!"
273CR_check_root_2="Identify is root!"
274
275# shutdown service
276CR_shutdown_service_echo_1="Shutdown all service of this node..."
277CR_shutdown_service_echo_2="The service of this node had shutdown."
278
279# remove_folders
280CR_remove_folders_echo_1="Deleting floders and files of NutchEZ..."
281CR_remove_folders_echo_2="Floders and files has deleted."
282
283# edit_hosts
284CR_edit_hosts_echo_1="Restoring /etc/hosts..."
285CR_edit_hosts_echo_2="/etc/hosts restoring finished."
286
287# user_delete
288CR_user_delete_echo_1="Deleting user: nutchuser..."
289CR_user_delete_echo_2="nutchuser has deleted"
290
291# main
292CR_main_echo_1="Warning - this program will remove nutchEZ, if you don't understard what this program to do, please press Ctrl+c to leave!"
293CR_main_echo_2="This program will delete all of nutchEZ's files and folders and delete user nutchuser."
294CR_main_echo_3="Are you sure to remove this node? 1.Yes 2.No "
295CR_main_echo_4="NutchEZ had removed!"
296CR_main_echo_5="You are cancelling this remove procedure!"
297CR_main_echo_6="If you want to remove NutchEZ of this node, please execute this program again."
298########## Lang for Client Remove - End ##########
299
300########## Lang for nutchez - Start ##########
301# [Variables Declaration] #
302## Lang for common ##
303user_error="You aren't nutchuser,please change to  \"nutchuser\" !!!"
304
305## [Lang for dialog] ##
306dia_back='= [NutchEz Management Interface] ~by NCHC ='
307dia_choose="Please choose what you want to do: "
308dia_backto_main="Back to Main Menu"
309dia_exit="Exit"
310
311## [Lang for prepare_check] ##
312dia_pre_check_title_1="[file nutch_nodes]"
313dia_pre_check_msg_1="Failure:System can't find it!"
314dia_pre_check_title_2="[Update /etc/host]"
315dia_pre_check_yesno_1="You are frist execute NutchEz Management Interface"
316dia_pre_check_yesno_2="Please update /etc/hosts !!!"
317pre_check_echo_1="Please enter root's password to update /etc/hosts !!!"
318pre_check_echo_2="root password error,please make sure root's password is correct!!!"
319dia_pre_check_yesno_3="nutch_nodes has modified"
320
321## [Lang for main_menu()] ##
322dia_main_title_1="[Management Options]"
323dia_main_menu_1_1="Check cluster state"
324dia_main_menu_1_2="Set datanode & tasktracker"
325dia_main_menu_1_3="Set namenode & jobtracker"
326dia_main_menu_1_4="Startup/Shutdown/Restart Tomcat"
327dia_main_menu_1_5="Change Tomcat port"
328dia_main_menu_1_6="Change language"
329
330## [Lang for cluster_status()] ##
331cluster_status_echo_1="[IP] \t\t [Hostname] \t [Network] \t [Dtatnode & Tasktracker]"
332cluster_status_echo_2="Start check cluster..."
333cluster_status_read_1="press any key to continue..."
334dia_cluster_status_title_1="[Cluster state]"
335
336## [Lang for srver_setup()] ##
337dia_server_title_1="[Server State]"
338dia_server_msg_1="Namenode & Jobtracker shutdown"
339dia_server_msg_2="Jobtracker running, Namenode shutdown"
340dia_server_msg_3="Namenode running, Jobtracker shutdown"
341dia_server_msg_4="Namenode & Jobtracker running"
342dia_server_title_2="[Set Namenode & Jobtracker]"
343dia_server_menu_1_1="Startup Namenode & Jobtracker"
344dia_server_menu_1_2="Shutdown Namenode & Jobtracker"
345dia_server_menu_1_3="Restart Namenode & Jobtracker"
346
347## [Labg for cluster_setup()] ##
348dia_cluster_setup_title_1="[All or part of nodes]"
349dia_cluster_setup_menu_1_1="All nodes"
350dia_cluster_setup_menu_1_2="A part of nodes"
351dia_cluster_setup_title_2="[Select Datanode & Tasktracker Nodes]"
352dia_cluster_setup_check_1="Select Datanode & Tasktracker: "
353dia_cluster_setup_title_3="[Set Datanode & Tasktracker]"
354dia_cluster_setup_menu_2_1="Startup Datanodes & Tasktrackers"
355dia_cluster_setup_menu_2_2="Shutdown Datanodes & Tasktrackers"
356dia_cluster_setup_menu_2_3="Restart Datanodes & Tasktrackers"
357cluster_setup_echo_1="[Startup datanode & tasktracker]"
358cluster_setup_echo_error="Failure:can't connect to ssh "
359cluster_setup_echo_3="[Shutdown datanode & tasktracker]"
360cluster_setup_echo_5="[Restart datanode & tasktracker]"
361
362## [Lang for tomcat_swith()] #
363dia_tomcat_switch_title_1="[Tomcat state]"
364dia_tomcat_switch_msg_1="Tomcat is running !!!"
365dia_tomcat_switch_msg_2="Tomcat doesn't run !!!"
366dia_tomcat_switch_title_2="[The service of Tomcat]"
367dia_tomcat_switch_menu_1_1="Startup Tomcat"
368dia_tomcat_switch_menu_1_2="Stop Tomcat"
369dia_tomcat_switch_menu_1_3="Restart Tomcat"
370tomcat_switch_echo_1="Failure:System can't find it!"
371tomcat_switch_echo_3="[Start up Tomcat]"
372tomcat_switch_echo_4="[Shutdown Tomcat]"
373tomcat_switch_echo_5="[Restart Tomcat]"
374
375## [Lang for tomcat_port()] ##
376dia_tomcat_port_title_1="[Edit Tomcat servel.xml]"
377dia_tomcat_port_msg_1="Edit failure: Can't find the file."
378dia_tomcat_port_title_2="[Change Tomcat Port ]"
379dia_tomcat_port_input_1="Please enter tomcat port NO.(default 8080): "
380
381## [Lang for lang_switch()] ##
382dia_lang_title_1="[Change language]"
383dia_lang_menu_1_1="English"
384dia_lang_menu_1_2="中文"
385########## Lang for nutchez - End ##########
Note: See TracBrowser for help on using the repository browser.