Review Board 1.7.22


SQOOP-692 Move execution specific error codes from CoreError to it's own error codes class

Review Request #8015 - Created Nov. 12, 2012 and submitted

Jarek Cecho
SQOOP-692
Reviewers
Sqoop
sqoop-sqoop2
I've moved execution specific error codes to newly created ErrorCode class.
Tests are passing.
core/src/main/java/org/apache/sqoop/core/CoreError.java
Revision 08034ed910cbfb288295f1ab32b8d70ec6bea0a4 New Change
[20] 48 lines
[+20]
49
  CORE_0006("Properties configuration provider unable to load config file"),
49
  CORE_0006("Properties configuration provider unable to load config file"),
50

    
   
50

   
51
  /** The configuration system has not been initialized correctly. */
51
  /** The configuration system has not been initialized correctly. */
52
  CORE_0007("System not initialized"),
52
  CORE_0007("System not initialized"),
53

    
   
53

   
54
  /** Error occurs during job execution. */

   
55
  CORE_0008("Error occurs during job execution"),

   
56

    
   

   
57
  /** The system was unable to load the specified class. */

   
58
  CORE_0009("Unable to load the specified class"),

   
59

    
   

   
60
  /** The system was unable to instantiate the specified class. */

   
61
  CORE_0010("Unable to instantiate the specified class"),

   
62

    
   

   
63
  /** The parameter already exists in the context */

   
64
  CORE_0011("The parameter already exists in the context"),

   
65

    
   

   
66
  /** The type is not supported */

   
67
  CORE_0012("The type is not supported"),

   
68

    
   

   
69
  /** Cannot write to the data writer */

   
70
  CORE_0013("Cannot write to the data writer"),

   
71

    
   

   
72
  /** Cannot read from the data reader */

   
73
  CORE_0014("Cannot read to the data reader"),

   
74

    
   

   
75
  /** Unable to write data due to interrupt */

   
76
  CORE_0015("Unable to write data due to interrupt"),

   
77

    
   

   
78
  /** Unable to read data due to interrupt */

   
79
  CORE_0016("Unable to read data due to interrupt"),

   
80

    
   

   
81
  /** Error occurs during extractor run */

   
82
  CORE_0017("Error occurs during extractor run"),

   
83

    
   

   
84
  /** Error occurs during loader run */

   
85
  CORE_0018("Error occurs during loader run"),

   
86

    
   

   
87
  CORE_0019("Data have not been completely consumed yet"),

   
88

    
   

   
89
  /** The required option has not been set yet */

   
90
  CORE_0020("The required option has not been set yet"),

   
91

    
   

   
92
  /** Error occurs during partitioner run */

   
93
  CORE_0021("Error occurs during partitioner run"),

   
94

    
   

   
95
  /** Unable to parse because it is not properly delimited */

   
96
  CORE_0022("Unable to parse because it is not properly delimited"),

   
97

    
   

   
98
  /** Unknown job type */

   
99
  CORE_0023("Unknown job type"),

   
100

    
   

   
101
  ;
54
  ;
102

    
   
55

   
103
  private final String message;
56
  private final String message;
104

    
   
57

   
105
  private CoreError(String message) {
58
  private CoreError(String message) {
[+20] [20] 11 lines
execution/mapreduce/src/main/java/org/apache/sqoop/job/MapreduceExecutionError.java
New File
 
execution/mapreduce/src/main/java/org/apache/sqoop/job/etl/HdfsSequenceImportLoader.java
Revision 1235d1d90e14c35ac898f9d4dca0f969b561e47e New Change
 
execution/mapreduce/src/main/java/org/apache/sqoop/job/etl/HdfsTextImportLoader.java
Revision 36aa11f7f2871e99fbc84d518bfa524d108f3cf4 New Change
 
execution/mapreduce/src/main/java/org/apache/sqoop/job/io/Data.java
Revision 4ddd13209e4b581d32fc46508826e7e40683b3ee New Change
 
execution/mapreduce/src/main/java/org/apache/sqoop/job/mr/SqoopMapper.java
Revision dbe832a44eade338676d41ed26aeb3547506de91 New Change
 
execution/mapreduce/src/main/java/org/apache/sqoop/job/mr/SqoopOutputFormatLoadExecutor.java
Revision 96e1533ec1899f618b5a49c7a4fabac1abbb541a New Change
 
execution/mapreduce/src/main/java/org/apache/sqoop/job/mr/SqoopSplit.java
Revision 7dc9541350a85e4178975b45e97619f99d1aa509 New Change
 
  1. core/src/main/java/org/apache/sqoop/core/CoreError.java: Loading...
  2. execution/mapreduce/src/main/java/org/apache/sqoop/job/MapreduceExecutionError.java: Loading...
  3. execution/mapreduce/src/main/java/org/apache/sqoop/job/etl/HdfsSequenceImportLoader.java: Loading...
  4. execution/mapreduce/src/main/java/org/apache/sqoop/job/etl/HdfsTextImportLoader.java: Loading...
  5. execution/mapreduce/src/main/java/org/apache/sqoop/job/io/Data.java: Loading...
  6. execution/mapreduce/src/main/java/org/apache/sqoop/job/mr/SqoopMapper.java: Loading...
  7. execution/mapreduce/src/main/java/org/apache/sqoop/job/mr/SqoopOutputFormatLoadExecutor.java: Loading...
  8. execution/mapreduce/src/main/java/org/apache/sqoop/job/mr/SqoopSplit.java: Loading...