Review Board 1.7.22


Expose the xid and cid when show status of job in sqoop2 client

Review Request #10444 - Created April 13, 2013 and updated

Vasanth kumar RJ
SQOOP-876
Reviewers
Sqoop
sqoop-sqoop2
In this patch, 
>show connection --xid arg 
prints connector id with other properties

>show job --xid arg
prints connection id and connector id with other properties

Included a fix in create connection function where it was printing resource key in shell.
Done
client/src/main/java/org/apache/sqoop/client/core/Constants.java
Revision cc956d0 New Change
[20] 219 lines
[+20] [+] public class Constants {
220
      "show.conn_usage";
220
      "show.conn_usage";
221
  public static final String RES_SHOW_PROMPT_CONNS_TO_SHOW =
221
  public static final String RES_SHOW_PROMPT_CONNS_TO_SHOW =
222
      "show.prompt_conns_to_show";
222
      "show.prompt_conns_to_show";
223
  public static final String RES_SHOW_PROMPT_CONN_INFO =
223
  public static final String RES_SHOW_PROMPT_CONN_INFO =
224
      "show.prompt_conn_info";
224
      "show.prompt_conn_info";

    
   
225
  public static final String RES_SHOW_PROMPT_CONN_CID_INFO =

    
   
226
      "show.prompt_conn_cid_info";
225

    
   
227

   
226
  public static final String RES_SHOW_PROMPT_DISPLAY_ALL_CONNECTORS =
228
  public static final String RES_SHOW_PROMPT_DISPLAY_ALL_CONNECTORS =
227
      "show.prompt_display_all_connectors";
229
      "show.prompt_display_all_connectors";
228
  public static final String RES_SHOW_PROMPT_DISPLAY_CONNECTOR_CID =
230
  public static final String RES_SHOW_PROMPT_DISPLAY_CONNECTOR_CID =
229
      "show.prompt_display_connector_cid";
231
      "show.prompt_display_connector_cid";
[+20] [20] 17 lines
[+20] public class Constants {
247
      "show.job_usage";
249
      "show.job_usage";
248
  public static final String RES_SHOW_PROMPT_JOBS_TO_SHOW =
250
  public static final String RES_SHOW_PROMPT_JOBS_TO_SHOW =
249
      "show.prompt_jobs_to_show";
251
      "show.prompt_jobs_to_show";
250
  public static final String RES_SHOW_PROMPT_JOB_INFO =
252
  public static final String RES_SHOW_PROMPT_JOB_INFO =
251
      "show.prompt_job_info";
253
      "show.prompt_job_info";

    
   
254
  public static final String RES_SHOW_PROMPT_JOB_XID_CID_INFO =

    
   
255
      "show.prompt_job_xid_cid_info";
252

    
   
256

   
253
  public static final String RES_SHOW_PROMPT_DISPLAY_ALL_SERVERS =
257
  public static final String RES_SHOW_PROMPT_DISPLAY_ALL_SERVERS =
254
      "show.prompt_display_all_servers";
258
      "show.prompt_display_all_servers";
255
  public static final String RES_SHOW_PROMPT_DISPLAY_SERVER_HOST =
259
  public static final String RES_SHOW_PROMPT_DISPLAY_SERVER_HOST =
256
      "show.prompt_display_server_host";
260
      "show.prompt_display_server_host";
[+20] [20] 100 lines
client/src/main/java/org/apache/sqoop/client/shell/CreateConnectionFunction.java
Revision 04238ee New Change
 
client/src/main/java/org/apache/sqoop/client/shell/ShowConnectionFunction.java
Revision 4fe20c1 New Change
 
client/src/main/java/org/apache/sqoop/client/shell/ShowJobFunction.java
Revision 5505d51 New Change
 
client/src/main/resources/client-resource.properties
Revision feb09e0 New Change
 
  1. client/src/main/java/org/apache/sqoop/client/core/Constants.java: Loading...
  2. client/src/main/java/org/apache/sqoop/client/shell/CreateConnectionFunction.java: Loading...
  3. client/src/main/java/org/apache/sqoop/client/shell/ShowConnectionFunction.java: Loading...
  4. client/src/main/java/org/apache/sqoop/client/shell/ShowJobFunction.java: Loading...
  5. client/src/main/resources/client-resource.properties: Loading...