mirror of
https://github.com/apache/sqoop.git
synced 2025-05-07 02:31:08 +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_CLIENT_CHAR = 'c';
|
||||||
public static final char OPT_PROTOCOL_CHAR = 'p';
|
public static final char OPT_PROTOCOL_CHAR = 'p';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Resource keys for various commands, command options,
|
// Resource keys for various commands, command options,
|
||||||
// functions and descriptions
|
// functions and descriptions
|
||||||
public static final String CMD_CLONE = "clone";
|
public static final String CMD_CLONE = "clone";
|
||||||
@ -143,13 +141,10 @@ public class Constants {
|
|||||||
public static final String RES_PROMPT_FILL_JOB_METADATA =
|
public static final String RES_PROMPT_FILL_JOB_METADATA =
|
||||||
"prompt.fill_job_metadata";
|
"prompt.fill_job_metadata";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public static final String RES_CLONE_USAGE =
|
public static final String RES_CLONE_USAGE =
|
||||||
"clone.usage";
|
"clone.usage";
|
||||||
public static final String RES_CLONE_CONN_SUCCESSFUL =
|
public static final String RES_CLONE_CONN_SUCCESSFUL =
|
||||||
"clone.conn_successful";
|
"clone.conn.successful";
|
||||||
public static final String RES_CLONE_JOB_SUCCESSFUL =
|
public static final String RES_CLONE_JOB_SUCCESSFUL =
|
||||||
"clone.job.successful";
|
"clone.job.successful";
|
||||||
public static final String RES_CLONE_CLONING_CONN =
|
public static final String RES_CLONE_CLONING_CONN =
|
||||||
@ -157,7 +152,6 @@ public class Constants {
|
|||||||
public static final String RES_CLONE_CLONING_JOB =
|
public static final String RES_CLONE_CLONING_JOB =
|
||||||
"clone.cloning_job";
|
"clone.cloning_job";
|
||||||
|
|
||||||
|
|
||||||
public static final String RES_CREATE_USAGE =
|
public static final String RES_CREATE_USAGE =
|
||||||
"create.usage";
|
"create.usage";
|
||||||
public static final String RES_CREATE_CONN_SUCCESSFUL =
|
public static final String RES_CREATE_CONN_SUCCESSFUL =
|
||||||
@ -169,7 +163,6 @@ public class Constants {
|
|||||||
public static final String RES_CREATE_CREATING_JOB =
|
public static final String RES_CREATE_CREATING_JOB =
|
||||||
"create.creating_job";
|
"create.creating_job";
|
||||||
|
|
||||||
|
|
||||||
public static final String RES_DELETE_USAGE =
|
public static final String RES_DELETE_USAGE =
|
||||||
"delete.usage";
|
"delete.usage";
|
||||||
|
|
||||||
@ -227,7 +220,6 @@ public class Constants {
|
|||||||
public static final String RES_SHOW_PROMPT_CONN_INFO =
|
public static final String RES_SHOW_PROMPT_CONN_INFO =
|
||||||
"show.prompt_conn_info";
|
"show.prompt_conn_info";
|
||||||
|
|
||||||
|
|
||||||
public static final String RES_SHOW_PROMPT_DISPLAY_ALL_CONNECTORS =
|
public static final String RES_SHOW_PROMPT_DISPLAY_ALL_CONNECTORS =
|
||||||
"show.prompt_display_all_connectors";
|
"show.prompt_display_all_connectors";
|
||||||
public static final String RES_SHOW_PROMPT_DISPLAY_CONNECTOR_CID =
|
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 =
|
public static final String RES_SHOW_PROMPT_VERSION_PROTOCOL =
|
||||||
"show.prompt_version_protocol";
|
"show.prompt_version_protocol";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public static final String RES_SQOOP_SHELL_BANNER =
|
public static final String RES_SQOOP_SHELL_BANNER =
|
||||||
"sqoop.shell_banner";
|
"sqoop.shell_banner";
|
||||||
public static final String RES_SQOOP_PROMPT_SHELL_LOADRC =
|
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 =
|
public static final String RES_SQOOP_PROMPT_SHELL_LOADEDRC =
|
||||||
"sqoop.prompt_shell_loadedrc";
|
"sqoop.prompt_shell_loadedrc";
|
||||||
|
|
||||||
|
|
||||||
public static final String RES_SUBMISSION_USAGE =
|
public static final String RES_SUBMISSION_USAGE =
|
||||||
"submission.usage";
|
"submission.usage";
|
||||||
|
|
||||||
|
|
||||||
public static final String RES_UPDATE_USAGE =
|
public static final String RES_UPDATE_USAGE =
|
||||||
"update.usage";
|
"update.usage";
|
||||||
public static final String RES_UPDATE_UPDATING_CONN =
|
public static final String RES_UPDATE_UPDATING_CONN =
|
||||||
"update.updating_conn";
|
"update.conn";
|
||||||
public static final String RES_UPDATE_CONN_SUCCESSFUL =
|
public static final String RES_UPDATE_CONN_SUCCESSFUL =
|
||||||
"update.conn_successful";
|
"update.conn_successful";
|
||||||
public static final String RES_UPDATE_UPDATING_JOB =
|
public static final String RES_UPDATE_UPDATING_JOB =
|
||||||
"update.updating_job";
|
"update.job";
|
||||||
public static final String RES_UPDATE_JOB_SUCCESSFUL =
|
public static final String RES_UPDATE_JOB_SUCCESSFUL =
|
||||||
"update.job_successful";
|
"update.job_successful";
|
||||||
private Constants() {
|
private Constants() {
|
||||||
|
@ -81,8 +81,7 @@ private void showJob(String jid) {
|
|||||||
JobBean jobBean = readJob(jid);
|
JobBean jobBean = readJob(jid);
|
||||||
|
|
||||||
List<MJob> jobs = jobBean.getJobs();
|
List<MJob> jobs = jobBean.getJobs();
|
||||||
String s = MessageFormat.format(Constants
|
String s = MessageFormat.format(getResource().getString(Constants.RES_SHOW_PROMPT_JOBS_TO_SHOW), jobs.size());
|
||||||
.RES_SHOW_PROMPT_JOBS_TO_SHOW, jobs.size());
|
|
||||||
io.out.println(s);
|
io.out.println(s);
|
||||||
|
|
||||||
for (MJob job : jobs) {
|
for (MJob job : jobs) {
|
||||||
|
@ -51,19 +51,20 @@ connection object
|
|||||||
prompt.fill_job_metadata = Please fill following values to create new \
|
prompt.fill_job_metadata = Please fill following values to create new \
|
||||||
job object
|
job object
|
||||||
|
|
||||||
|
#
|
||||||
|
# Update command
|
||||||
|
update.conn = Updating connection with id {0}
|
||||||
## Updating messages
|
update.job = Updating job with id {0}
|
||||||
updating.conn = Updating connection with id {0}
|
update.usage = Usage: update {0}
|
||||||
updating.job = Updating job with id {0}
|
update.conn_successful = Connection was successfully updated with status {0}
|
||||||
|
update.job_successful = Job was successfully updated with status {0}
|
||||||
|
|
||||||
#
|
#
|
||||||
# Clone command
|
# Clone command
|
||||||
clone.usage = Usage: clone {0}
|
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}
|
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}
|
status {0} and persistent id {1}
|
||||||
clone.cloning_conn = Cloning connection with id {0}
|
clone.cloning_conn = Cloning connection with id {0}
|
||||||
clone.cloning_job = Cloning job 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 command
|
||||||
delete.usage = Usage: delete {0}
|
delete.usage = Usage: delete {0}
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Help command
|
# Help command
|
||||||
help.usage = [<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.prompt_display_conn_xid = Display the connection with xid
|
||||||
show.conn_usage = Usage: show connection
|
show.conn_usage = Usage: show connection
|
||||||
show.prompt_conns_to_show = @|bold {0} connection(s) to show: |@
|
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_all_connectors = Display all connectors
|
||||||
show.prompt_display_connector_cid = Display the connector with xid
|
show.prompt_display_connector_cid = Display the connector with xid
|
||||||
show.connector_usage = Usage: show connector
|
show.connector_usage = Usage: show connector
|
||||||
show.prompt_connectors_to_show = @|bold {0} connection(s) to show: |@
|
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}
|
Class: {2}\n Version: {3}
|
||||||
|
|
||||||
show.framework_usage = Usage: show framework
|
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.prompt_display_job_jid = Display jobwith given jid
|
||||||
show.job_usage = Usage: show job
|
show.job_usage = Usage: show job
|
||||||
show.prompt_jobs_to_show = @|bold {0} job(s) to show: |@
|
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_all_servers = Display all server information
|
||||||
show.prompt_display_server_host = Display server host name
|
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.
|
sqoop.prompt_shell_loadedrc = Resource file loaded.
|
||||||
|
|
||||||
submission.usage = Usage: submission {0}
|
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