mirror of
https://github.com/apache/sqoop.git
synced 2025-05-07 00:20:58 +08:00
SQOOP-766: Fix client resources
(Jarek Jarcec Cecho via Cheolsoo Park)
This commit is contained in:
parent
115db84e30
commit
2fdd0a0675
@ -57,8 +57,6 @@ public class Constants {
|
||||
public static final char OPT_CLIENT_CHAR = 'c';
|
||||
public static final char OPT_PROTOCOL_CHAR = 'p';
|
||||
|
||||
|
||||
|
||||
// Resource keys for various commands, command options,
|
||||
// functions and descriptions
|
||||
public static final String CMD_CLONE = "clone";
|
||||
@ -143,13 +141,10 @@ public class Constants {
|
||||
public static final String RES_PROMPT_FILL_JOB_METADATA =
|
||||
"prompt.fill_job_metadata";
|
||||
|
||||
|
||||
|
||||
|
||||
public static final String RES_CLONE_USAGE =
|
||||
"clone.usage";
|
||||
public static final String RES_CLONE_CONN_SUCCESSFUL =
|
||||
"clone.conn_successful";
|
||||
"clone.conn.successful";
|
||||
public static final String RES_CLONE_JOB_SUCCESSFUL =
|
||||
"clone.job.successful";
|
||||
public static final String RES_CLONE_CLONING_CONN =
|
||||
@ -157,7 +152,6 @@ public class Constants {
|
||||
public static final String RES_CLONE_CLONING_JOB =
|
||||
"clone.cloning_job";
|
||||
|
||||
|
||||
public static final String RES_CREATE_USAGE =
|
||||
"create.usage";
|
||||
public static final String RES_CREATE_CONN_SUCCESSFUL =
|
||||
@ -169,7 +163,6 @@ public class Constants {
|
||||
public static final String RES_CREATE_CREATING_JOB =
|
||||
"create.creating_job";
|
||||
|
||||
|
||||
public static final String RES_DELETE_USAGE =
|
||||
"delete.usage";
|
||||
|
||||
@ -227,7 +220,6 @@ public class Constants {
|
||||
public static final String RES_SHOW_PROMPT_CONN_INFO =
|
||||
"show.prompt_conn_info";
|
||||
|
||||
|
||||
public static final String RES_SHOW_PROMPT_DISPLAY_ALL_CONNECTORS =
|
||||
"show.prompt_display_all_connectors";
|
||||
public static final String RES_SHOW_PROMPT_DISPLAY_CONNECTOR_CID =
|
||||
@ -287,8 +279,6 @@ public class Constants {
|
||||
public static final String RES_SHOW_PROMPT_VERSION_PROTOCOL =
|
||||
"show.prompt_version_protocol";
|
||||
|
||||
|
||||
|
||||
public static final String RES_SQOOP_SHELL_BANNER =
|
||||
"sqoop.shell_banner";
|
||||
public static final String RES_SQOOP_PROMPT_SHELL_LOADRC =
|
||||
@ -296,19 +286,17 @@ public class Constants {
|
||||
public static final String RES_SQOOP_PROMPT_SHELL_LOADEDRC =
|
||||
"sqoop.prompt_shell_loadedrc";
|
||||
|
||||
|
||||
public static final String RES_SUBMISSION_USAGE =
|
||||
"submission.usage";
|
||||
|
||||
|
||||
public static final String RES_UPDATE_USAGE =
|
||||
"update.usage";
|
||||
public static final String RES_UPDATE_UPDATING_CONN =
|
||||
"update.updating_conn";
|
||||
"update.conn";
|
||||
public static final String RES_UPDATE_CONN_SUCCESSFUL =
|
||||
"update.conn_successful";
|
||||
public static final String RES_UPDATE_UPDATING_JOB =
|
||||
"update.updating_job";
|
||||
"update.job";
|
||||
public static final String RES_UPDATE_JOB_SUCCESSFUL =
|
||||
"update.job_successful";
|
||||
private Constants() {
|
||||
|
@ -81,8 +81,7 @@ private void showJob(String jid) {
|
||||
JobBean jobBean = readJob(jid);
|
||||
|
||||
List<MJob> jobs = jobBean.getJobs();
|
||||
String s = MessageFormat.format(Constants
|
||||
.RES_SHOW_PROMPT_JOBS_TO_SHOW, jobs.size());
|
||||
String s = MessageFormat.format(getResource().getString(Constants.RES_SHOW_PROMPT_JOBS_TO_SHOW), jobs.size());
|
||||
io.out.println(s);
|
||||
|
||||
for (MJob job : jobs) {
|
||||
|
@ -51,19 +51,20 @@ connection object
|
||||
prompt.fill_job_metadata = Please fill following values to create new \
|
||||
job object
|
||||
|
||||
|
||||
|
||||
|
||||
## Updating messages
|
||||
updating.conn = Updating connection with id {0}
|
||||
updating.job = Updating job with id {0}
|
||||
#
|
||||
# Update command
|
||||
update.conn = Updating connection with id {0}
|
||||
update.job = Updating job with id {0}
|
||||
update.usage = Usage: update {0}
|
||||
update.conn_successful = Connection was successfully updated with status {0}
|
||||
update.job_successful = Job was successfully updated with status {0}
|
||||
|
||||
#
|
||||
# Clone command
|
||||
clone.usage = Usage: clone {0}
|
||||
clone.conn_successful = Connection was successfully created with validation \
|
||||
clone.conn.successful = Connection was successfully created with validation \
|
||||
status {0} and persistent id {1}
|
||||
clone.job_successful = Job was successfully created with validation \
|
||||
clone.job.successful = Job was successfully created with validation \
|
||||
status {0} and persistent id {1}
|
||||
clone.cloning_conn = Cloning connection with id {0}
|
||||
clone.cloning_job = Cloning job with id {0}
|
||||
@ -83,7 +84,6 @@ create.creating_job = Creating job for connection with id {0}
|
||||
# Delete command
|
||||
delete.usage = Usage: delete {0}
|
||||
|
||||
|
||||
#
|
||||
# Help command
|
||||
help.usage = [<command>]
|
||||
@ -120,13 +120,13 @@ show.prompt_display_all_conns = Display all connections
|
||||
show.prompt_display_conn_xid = Display the connection with xid
|
||||
show.conn_usage = Usage: show connection
|
||||
show.prompt_conns_to_show = @|bold {0} connection(s) to show: |@
|
||||
show.prompt_conn_info = Connection with id {0} and name: ${1}
|
||||
show.prompt_conn_info = Connection with id {0} and name: {1}
|
||||
|
||||
show.prompt_display_all_connectors = Display all connectors
|
||||
show.prompt_display_connector_cid = Display the connector with xid
|
||||
show.connector_usage = Usage: show connector
|
||||
show.prompt_connectors_to_show = @|bold {0} connection(s) to show: |@
|
||||
show.prompt_connector_info = Connector with id {0}:\n Name: ${1} \n \
|
||||
show.prompt_connector_info = Connector with id {0}:\n Name: {1} \n \
|
||||
Class: {2}\n Version: {3}
|
||||
|
||||
show.framework_usage = Usage: show framework
|
||||
@ -136,7 +136,7 @@ show.prompt_display_all_jobs = Display all jobs
|
||||
show.prompt_display_job_jid = Display jobwith given jid
|
||||
show.job_usage = Usage: show job
|
||||
show.prompt_jobs_to_show = @|bold {0} job(s) to show: |@
|
||||
show.prompt_job_info = Job with id {0} and name: ${1}
|
||||
show.prompt_job_info = Job with id {0} and name: {1}
|
||||
|
||||
show.prompt_display_all_servers = Display all server information
|
||||
show.prompt_display_server_host = Display server host name
|
||||
@ -161,7 +161,3 @@ sqoop.prompt_shell_loadrc = Loading resource file {0}
|
||||
sqoop.prompt_shell_loadedrc = Resource file loaded.
|
||||
|
||||
submission.usage = Usage: submission {0}
|
||||
|
||||
update.usage = Usage: update {0}
|
||||
update.conn_successful = Connection was successfully updated with status {0}
|
||||
update.job_successful = Job was successfully updated with status {0}
|
||||
|
Loading…
Reference in New Issue
Block a user