mirror of
https://github.com/apache/sqoop.git
synced 2025-05-08 02:50:38 +08:00
SQOOP-2054: Sqoop2: Client cannot understand server exceptions
(Richard Zhou via Abraham Elmahrek)
This commit is contained in:
parent
d7ba495af7
commit
f7efa38005
@ -17,7 +17,7 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.apache.sqoop.connector.idf;
|
||||
package org.apache.sqoop.error.code;
|
||||
|
||||
import org.apache.sqoop.classification.InterfaceAudience;
|
||||
import org.apache.sqoop.classification.InterfaceStability;
|
@ -16,7 +16,7 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.sqoop.connector.idf;
|
||||
package org.apache.sqoop.error.code;
|
||||
|
||||
import org.apache.sqoop.classification.InterfaceAudience;
|
||||
import org.apache.sqoop.classification.InterfaceStability;
|
@ -15,7 +15,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.sqoop.repository.common;
|
||||
package org.apache.sqoop.error.code;
|
||||
|
||||
import org.apache.sqoop.common.ErrorCode;
|
||||
|
@ -15,7 +15,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.sqoop.configurable;
|
||||
package org.apache.sqoop.error.code;
|
||||
|
||||
import org.apache.sqoop.classification.InterfaceAudience;
|
||||
import org.apache.sqoop.classification.InterfaceStability;
|
@ -15,7 +15,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.sqoop.repository.derby;
|
||||
package org.apache.sqoop.error.code;
|
||||
|
||||
import org.apache.sqoop.common.ErrorCode;
|
||||
|
@ -15,7 +15,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.sqoop.connector.jdbc;
|
||||
package org.apache.sqoop.error.code;
|
||||
|
||||
import org.apache.sqoop.common.ErrorCode;
|
||||
|
@ -15,7 +15,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.sqoop.connector.hdfs;
|
||||
package org.apache.sqoop.error.code;
|
||||
|
||||
import org.apache.sqoop.common.ErrorCode;
|
||||
|
@ -16,7 +16,7 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.sqoop.connector.idf;
|
||||
package org.apache.sqoop.error.code;
|
||||
|
||||
import org.apache.sqoop.classification.InterfaceAudience;
|
||||
import org.apache.sqoop.classification.InterfaceStability;
|
@ -17,7 +17,7 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.apache.sqoop.connector.idf;
|
||||
package org.apache.sqoop.error.code;
|
||||
|
||||
import org.apache.sqoop.classification.InterfaceAudience;
|
||||
import org.apache.sqoop.classification.InterfaceStability;
|
@ -15,7 +15,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.sqoop.connector.kafka;
|
||||
package org.apache.sqoop.error.code;
|
||||
|
||||
import org.apache.sqoop.common.ErrorCode;
|
||||
|
@ -15,7 +15,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.sqoop.connector.kite;
|
||||
package org.apache.sqoop.error.code;
|
||||
|
||||
import org.apache.sqoop.common.ErrorCode;
|
||||
|
@ -15,7 +15,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.sqoop.job;
|
||||
package org.apache.sqoop.error.code;
|
||||
|
||||
import org.apache.sqoop.common.ErrorCode;
|
||||
|
@ -15,7 +15,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.sqoop.submission.mapreduce;
|
||||
package org.apache.sqoop.error.code;
|
||||
|
||||
import org.apache.sqoop.common.ErrorCode;
|
||||
|
@ -16,7 +16,7 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.sqoop.connector.matcher;
|
||||
package org.apache.sqoop.error.code;
|
||||
|
||||
import org.apache.sqoop.classification.InterfaceAudience;
|
||||
import org.apache.sqoop.classification.InterfaceStability;
|
@ -15,7 +15,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.sqoop.repository.postgresql;
|
||||
package org.apache.sqoop.error.code;
|
||||
|
||||
import org.apache.sqoop.common.ErrorCode;
|
||||
|
@ -15,7 +15,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.sqoop.server.common;
|
||||
package org.apache.sqoop.error.code;
|
||||
|
||||
import org.apache.sqoop.common.ErrorCode;
|
||||
|
@ -28,6 +28,7 @@
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.apache.sqoop.common.SqoopException;
|
||||
import org.apache.sqoop.error.code.GenericJdbcConnectorError;
|
||||
|
||||
public class GenericJdbcExecutor {
|
||||
|
||||
|
@ -25,6 +25,7 @@
|
||||
import org.apache.sqoop.common.SqoopException;
|
||||
import org.apache.sqoop.connector.jdbc.configuration.FromJobConfiguration;
|
||||
import org.apache.sqoop.connector.jdbc.configuration.LinkConfiguration;
|
||||
import org.apache.sqoop.error.code.GenericJdbcConnectorError;
|
||||
import org.apache.sqoop.job.etl.Extractor;
|
||||
import org.apache.sqoop.job.etl.ExtractorContext;
|
||||
import org.apache.sqoop.schema.Schema;
|
||||
|
@ -20,8 +20,6 @@
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.ResultSetMetaData;
|
||||
import java.sql.SQLException;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
@ -31,6 +29,7 @@
|
||||
import org.apache.sqoop.connector.jdbc.configuration.FromJobConfiguration;
|
||||
import org.apache.sqoop.connector.jdbc.configuration.LinkConfiguration;
|
||||
import org.apache.sqoop.connector.jdbc.util.SqlTypesUtils;
|
||||
import org.apache.sqoop.error.code.GenericJdbcConnectorError;
|
||||
import org.apache.sqoop.job.Constants;
|
||||
import org.apache.sqoop.job.etl.Initializer;
|
||||
import org.apache.sqoop.job.etl.InitializerContext;
|
||||
|
@ -30,6 +30,7 @@
|
||||
import org.apache.sqoop.common.SqoopException;
|
||||
import org.apache.sqoop.connector.jdbc.configuration.LinkConfiguration;
|
||||
import org.apache.sqoop.connector.jdbc.configuration.FromJobConfiguration;
|
||||
import org.apache.sqoop.error.code.GenericJdbcConnectorError;
|
||||
import org.apache.sqoop.job.etl.Partition;
|
||||
import org.apache.sqoop.job.etl.Partitioner;
|
||||
import org.apache.sqoop.job.etl.PartitionerContext;
|
||||
|
@ -20,8 +20,6 @@
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.ResultSetMetaData;
|
||||
import java.sql.SQLException;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
@ -31,6 +29,7 @@
|
||||
import org.apache.sqoop.connector.jdbc.configuration.LinkConfiguration;
|
||||
import org.apache.sqoop.connector.jdbc.configuration.ToJobConfiguration;
|
||||
import org.apache.sqoop.connector.jdbc.util.SqlTypesUtils;
|
||||
import org.apache.sqoop.error.code.GenericJdbcConnectorError;
|
||||
import org.apache.sqoop.job.etl.Initializer;
|
||||
import org.apache.sqoop.job.etl.InitializerContext;
|
||||
import org.apache.sqoop.schema.Schema;
|
||||
|
@ -29,6 +29,7 @@
|
||||
import org.apache.sqoop.connector.hdfs.configuration.ToJobConfiguration;
|
||||
import org.apache.sqoop.connector.spi.ConnectorConfigurableUpgrader;
|
||||
import org.apache.sqoop.connector.spi.SqoopConnector;
|
||||
import org.apache.sqoop.error.code.HdfsConnectorError;
|
||||
import org.apache.sqoop.job.etl.From;
|
||||
import org.apache.sqoop.job.etl.To;
|
||||
|
||||
|
@ -34,6 +34,7 @@
|
||||
import org.apache.sqoop.common.SqoopException;
|
||||
import org.apache.sqoop.connector.hdfs.configuration.FromJobConfiguration;
|
||||
import org.apache.sqoop.connector.hdfs.configuration.LinkConfiguration;
|
||||
import org.apache.sqoop.error.code.HdfsConnectorError;
|
||||
import org.apache.sqoop.etl.io.DataWriter;
|
||||
import org.apache.sqoop.job.etl.Extractor;
|
||||
import org.apache.sqoop.job.etl.ExtractorContext;
|
||||
|
@ -32,6 +32,7 @@
|
||||
import org.apache.sqoop.connector.hdfs.hdfsWriter.GenericHdfsWriter;
|
||||
import org.apache.sqoop.connector.hdfs.hdfsWriter.HdfsSequenceWriter;
|
||||
import org.apache.sqoop.connector.hdfs.hdfsWriter.HdfsTextWriter;
|
||||
import org.apache.sqoop.error.code.HdfsConnectorError;
|
||||
import org.apache.sqoop.etl.io.DataReader;
|
||||
import org.apache.sqoop.job.etl.Loader;
|
||||
import org.apache.sqoop.job.etl.LoaderContext;
|
||||
|
@ -42,6 +42,7 @@
|
||||
import org.apache.sqoop.common.SqoopException;
|
||||
import org.apache.sqoop.connector.hdfs.configuration.FromJobConfiguration;
|
||||
import org.apache.sqoop.connector.hdfs.configuration.LinkConfiguration;
|
||||
import org.apache.sqoop.error.code.HdfsConnectorError;
|
||||
import org.apache.sqoop.job.etl.Partition;
|
||||
import org.apache.sqoop.job.etl.Partitioner;
|
||||
import org.apache.sqoop.job.etl.PartitionerContext;
|
||||
|
@ -24,6 +24,7 @@
|
||||
import org.apache.sqoop.common.SqoopException;
|
||||
import org.apache.sqoop.connector.kafka.configuration.ToJobConfiguration;
|
||||
import org.apache.sqoop.connector.kafka.configuration.LinkConfiguration;
|
||||
import org.apache.sqoop.error.code.KafkaConnectorErrors;
|
||||
import org.apache.sqoop.job.etl.Loader;
|
||||
import org.apache.sqoop.job.etl.LoaderContext;
|
||||
|
||||
|
@ -25,6 +25,7 @@
|
||||
import org.apache.sqoop.connector.common.FileFormat;
|
||||
import org.apache.sqoop.connector.common.AvroDataTypeUtil;
|
||||
import org.apache.sqoop.connector.kite.util.KiteDataTypeUtil;
|
||||
import org.apache.sqoop.error.code.KiteConnectorError;
|
||||
import org.kitesdk.data.Dataset;
|
||||
import org.kitesdk.data.DatasetDescriptor;
|
||||
import org.kitesdk.data.DatasetReader;
|
||||
|
@ -22,6 +22,7 @@
|
||||
import org.apache.sqoop.connector.kite.configuration.FromJobConfiguration;
|
||||
import org.apache.sqoop.connector.kite.configuration.LinkConfiguration;
|
||||
import org.apache.sqoop.connector.common.AvroDataTypeUtil;
|
||||
import org.apache.sqoop.error.code.KiteConnectorError;
|
||||
import org.apache.sqoop.job.etl.Initializer;
|
||||
import org.apache.sqoop.job.etl.InitializerContext;
|
||||
import org.apache.sqoop.schema.Schema;
|
||||
|
@ -23,6 +23,7 @@
|
||||
import org.apache.sqoop.connector.kite.configuration.ConfigUtil;
|
||||
import org.apache.sqoop.connector.kite.configuration.LinkConfiguration;
|
||||
import org.apache.sqoop.connector.kite.configuration.ToJobConfiguration;
|
||||
import org.apache.sqoop.error.code.KiteConnectorError;
|
||||
import org.apache.sqoop.job.etl.Initializer;
|
||||
import org.apache.sqoop.job.etl.InitializerContext;
|
||||
import org.apache.sqoop.schema.NullSchema;
|
||||
|
@ -21,7 +21,7 @@
|
||||
import org.apache.sqoop.classification.InterfaceAudience;
|
||||
import org.apache.sqoop.classification.InterfaceStability;
|
||||
import org.apache.sqoop.common.SqoopException;
|
||||
import org.apache.sqoop.connector.idf.IntermediateDataFormatError;
|
||||
import org.apache.sqoop.error.code.IntermediateDataFormatError;
|
||||
import org.apache.sqoop.schema.type.AbstractComplexListType;
|
||||
import org.apache.sqoop.schema.type.Column;
|
||||
import org.apache.sqoop.schema.type.FixedPoint;
|
||||
|
@ -20,8 +20,8 @@
|
||||
import org.apache.sqoop.classification.InterfaceAudience;
|
||||
import org.apache.sqoop.classification.InterfaceStability;
|
||||
import org.apache.sqoop.common.SqoopException;
|
||||
import org.apache.sqoop.connector.idf.CSVIntermediateDataFormatError;
|
||||
import org.apache.sqoop.connector.idf.IntermediateDataFormatError;
|
||||
import org.apache.sqoop.error.code.CSVIntermediateDataFormatError;
|
||||
import org.apache.sqoop.error.code.IntermediateDataFormatError;
|
||||
import org.apache.sqoop.schema.type.AbstractComplexListType;
|
||||
import org.apache.sqoop.schema.type.Column;
|
||||
import org.apache.sqoop.schema.type.ColumnType;
|
||||
|
@ -36,6 +36,7 @@
|
||||
import org.apache.sqoop.classification.InterfaceAudience;
|
||||
import org.apache.sqoop.classification.InterfaceStability;
|
||||
import org.apache.sqoop.common.SqoopException;
|
||||
import org.apache.sqoop.error.code.IntermediateDataFormatError;
|
||||
import org.apache.sqoop.schema.type.Column;
|
||||
import org.apache.sqoop.utils.ClassUtils;
|
||||
import org.joda.time.LocalDate;
|
||||
|
@ -24,6 +24,7 @@
|
||||
import org.apache.sqoop.classification.InterfaceStability;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.apache.sqoop.common.SqoopException;
|
||||
import org.apache.sqoop.error.code.IntermediateDataFormatError;
|
||||
import org.apache.sqoop.schema.Schema;
|
||||
import org.apache.sqoop.schema.type.AbstractComplexListType;
|
||||
import org.apache.sqoop.schema.type.Column;
|
||||
|
@ -21,6 +21,7 @@
|
||||
import org.apache.sqoop.classification.InterfaceAudience;
|
||||
import org.apache.sqoop.classification.InterfaceStability;
|
||||
import org.apache.sqoop.common.SqoopException;
|
||||
import org.apache.sqoop.error.code.IntermediateDataFormatError;
|
||||
import org.apache.sqoop.schema.Schema;
|
||||
import org.apache.sqoop.utils.ClassUtils;
|
||||
import org.joda.time.DateTime;
|
||||
|
@ -24,6 +24,8 @@
|
||||
import org.apache.sqoop.classification.InterfaceAudience;
|
||||
import org.apache.sqoop.classification.InterfaceStability;
|
||||
import org.apache.sqoop.common.SqoopException;
|
||||
import org.apache.sqoop.error.code.IntermediateDataFormatError;
|
||||
import org.apache.sqoop.error.code.JSONIntermediateDataFormatError;
|
||||
import org.apache.sqoop.schema.Schema;
|
||||
import org.apache.sqoop.schema.type.Column;
|
||||
import org.apache.sqoop.utils.ClassUtils;
|
||||
|
@ -21,7 +21,7 @@
|
||||
import org.apache.sqoop.classification.InterfaceAudience;
|
||||
import org.apache.sqoop.classification.InterfaceStability;
|
||||
import org.apache.sqoop.common.SqoopException;
|
||||
import org.apache.sqoop.configurable.ConfigurableError;
|
||||
import org.apache.sqoop.error.code.ConfigurableError;
|
||||
import org.apache.sqoop.model.MFromConfig;
|
||||
import org.apache.sqoop.model.MLinkConfig;
|
||||
import org.apache.sqoop.model.MToConfig;
|
||||
|
@ -32,7 +32,7 @@
|
||||
import org.apache.sqoop.common.Direction;
|
||||
import org.apache.sqoop.common.PrefixContext;
|
||||
import org.apache.sqoop.common.SqoopException;
|
||||
import org.apache.sqoop.job.MRExecutionError;
|
||||
import org.apache.sqoop.error.code.MRExecutionError;
|
||||
import org.apache.sqoop.job.MRJobConstants;
|
||||
import org.apache.sqoop.job.etl.Partition;
|
||||
import org.apache.sqoop.job.etl.Partitioner;
|
||||
|
@ -32,7 +32,7 @@
|
||||
import org.apache.sqoop.connector.matcher.Matcher;
|
||||
import org.apache.sqoop.connector.matcher.MatcherFactory;
|
||||
import org.apache.sqoop.job.MRJobConstants;
|
||||
import org.apache.sqoop.job.MRExecutionError;
|
||||
import org.apache.sqoop.error.code.MRExecutionError;
|
||||
import org.apache.sqoop.common.PrefixContext;
|
||||
import org.apache.sqoop.job.etl.Extractor;
|
||||
import org.apache.sqoop.job.etl.ExtractorContext;
|
||||
|
@ -37,7 +37,7 @@
|
||||
import org.apache.sqoop.connector.matcher.Matcher;
|
||||
import org.apache.sqoop.connector.matcher.MatcherFactory;
|
||||
import org.apache.sqoop.job.MRJobConstants;
|
||||
import org.apache.sqoop.job.MRExecutionError;
|
||||
import org.apache.sqoop.error.code.MRExecutionError;
|
||||
import org.apache.sqoop.common.PrefixContext;
|
||||
import org.apache.sqoop.job.etl.Loader;
|
||||
import org.apache.sqoop.job.etl.LoaderContext;
|
||||
|
@ -24,7 +24,7 @@
|
||||
import org.apache.hadoop.io.Writable;
|
||||
import org.apache.hadoop.mapreduce.InputSplit;
|
||||
import org.apache.sqoop.common.SqoopException;
|
||||
import org.apache.sqoop.job.MRExecutionError;
|
||||
import org.apache.sqoop.error.code.MRExecutionError;
|
||||
import org.apache.sqoop.job.etl.Partition;
|
||||
import org.apache.sqoop.utils.ClassUtils;
|
||||
|
||||
|
@ -24,6 +24,7 @@
|
||||
import org.apache.sqoop.common.SqoopException;
|
||||
import org.apache.sqoop.common.SupportedDirections;
|
||||
import org.apache.sqoop.driver.Driver;
|
||||
import org.apache.sqoop.error.code.CommonRepositoryError;
|
||||
import org.apache.sqoop.model.SubmissionError;
|
||||
import org.apache.sqoop.model.MBooleanInput;
|
||||
import org.apache.sqoop.model.MConfig;
|
||||
|
@ -44,6 +44,7 @@
|
||||
import org.apache.sqoop.connector.ConnectorHandler;
|
||||
import org.apache.sqoop.connector.ConnectorManagerUtils;
|
||||
import org.apache.sqoop.driver.Driver;
|
||||
import org.apache.sqoop.error.code.DerbyRepoError;
|
||||
import org.apache.sqoop.model.MConfigType;
|
||||
import org.apache.sqoop.model.MConfigurableType;
|
||||
import org.apache.sqoop.model.MDriver;
|
||||
|
@ -36,7 +36,7 @@
|
||||
import org.apache.sqoop.model.MJob;
|
||||
import org.apache.sqoop.model.MMapInput;
|
||||
import org.apache.sqoop.model.MStringInput;
|
||||
import org.apache.sqoop.repository.common.CommonRepositoryError;
|
||||
import org.apache.sqoop.error.code.CommonRepositoryError;
|
||||
import org.testng.annotations.BeforeMethod;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
|
@ -31,7 +31,7 @@
|
||||
import org.apache.sqoop.model.MLink;
|
||||
import org.apache.sqoop.model.MMapInput;
|
||||
import org.apache.sqoop.model.MStringInput;
|
||||
import org.apache.sqoop.repository.common.CommonRepositoryError;
|
||||
import org.apache.sqoop.error.code.CommonRepositoryError;
|
||||
import org.testng.annotations.BeforeMethod;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
|
@ -23,6 +23,7 @@
|
||||
import org.apache.log4j.Logger;
|
||||
import org.apache.sqoop.common.Direction;
|
||||
import org.apache.sqoop.common.SqoopException;
|
||||
import org.apache.sqoop.error.code.PostgresqlRepoError;
|
||||
import org.apache.sqoop.repository.JdbcRepositoryContext;
|
||||
import org.apache.sqoop.repository.common.CommonRepoConstants;
|
||||
import org.apache.sqoop.repository.common.CommonRepositoryHandler;
|
||||
|
@ -35,7 +35,7 @@
|
||||
import org.apache.sqoop.server.RequestContext;
|
||||
import org.apache.sqoop.server.RequestContext.Method;
|
||||
import org.apache.sqoop.server.RequestHandler;
|
||||
import org.apache.sqoop.server.common.ServerError;
|
||||
import org.apache.sqoop.error.code.ServerError;
|
||||
|
||||
public class ConnectorRequestHandler implements RequestHandler {
|
||||
|
||||
|
@ -26,7 +26,7 @@
|
||||
import org.apache.sqoop.server.RequestContext;
|
||||
import org.apache.sqoop.server.RequestHandler;
|
||||
import org.apache.sqoop.server.RequestContext.Method;
|
||||
import org.apache.sqoop.server.common.ServerError;
|
||||
import org.apache.sqoop.error.code.ServerError;
|
||||
|
||||
public class DriverRequestHandler implements RequestHandler {
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
||||
import org.apache.sqoop.common.SqoopException;
|
||||
import org.apache.sqoop.connector.ConnectorManager;
|
||||
import org.apache.sqoop.repository.Repository;
|
||||
import org.apache.sqoop.server.common.ServerError;
|
||||
import org.apache.sqoop.error.code.ServerError;
|
||||
|
||||
public class HandlerUtils {
|
||||
|
||||
|
@ -48,7 +48,7 @@
|
||||
import org.apache.sqoop.request.HttpEventContext;
|
||||
import org.apache.sqoop.server.RequestContext;
|
||||
import org.apache.sqoop.server.RequestHandler;
|
||||
import org.apache.sqoop.server.common.ServerError;
|
||||
import org.apache.sqoop.error.code.ServerError;
|
||||
import org.apache.sqoop.validation.ConfigValidationResult;
|
||||
import org.apache.sqoop.validation.Status;
|
||||
import org.json.simple.JSONObject;
|
||||
|
@ -40,7 +40,7 @@
|
||||
import org.apache.sqoop.repository.RepositoryManager;
|
||||
import org.apache.sqoop.server.RequestContext;
|
||||
import org.apache.sqoop.server.RequestHandler;
|
||||
import org.apache.sqoop.server.common.ServerError;
|
||||
import org.apache.sqoop.error.code.ServerError;
|
||||
import org.apache.sqoop.validation.ConfigValidationResult;
|
||||
import org.json.simple.JSONObject;
|
||||
|
||||
|
@ -30,7 +30,7 @@
|
||||
import org.apache.sqoop.server.RequestContext;
|
||||
import org.apache.sqoop.server.RequestContext.Method;
|
||||
import org.apache.sqoop.server.RequestHandler;
|
||||
import org.apache.sqoop.server.common.ServerError;
|
||||
import org.apache.sqoop.error.code.ServerError;
|
||||
|
||||
public class SubmissionRequestHandler implements RequestHandler {
|
||||
|
||||
|
@ -26,7 +26,7 @@
|
||||
import org.apache.sqoop.server.RequestContext;
|
||||
import org.apache.sqoop.server.RequestContext.Method;
|
||||
import org.apache.sqoop.server.RequestHandler;
|
||||
import org.apache.sqoop.server.common.ServerError;
|
||||
import org.apache.sqoop.error.code.ServerError;
|
||||
/**
|
||||
* Version request handler is supporting following resources:
|
||||
*
|
||||
|
@ -21,7 +21,7 @@
|
||||
import org.apache.hadoop.security.token.delegation.web.HttpUserGroupInformation;
|
||||
import org.apache.sqoop.common.SqoopException;
|
||||
import org.apache.sqoop.security.AuthenticationManager;
|
||||
import org.apache.sqoop.server.common.ServerError;
|
||||
import org.apache.sqoop.error.code.ServerError;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
@ -39,6 +39,7 @@
|
||||
import org.apache.sqoop.common.MapContext;
|
||||
import org.apache.sqoop.common.SqoopException;
|
||||
import org.apache.sqoop.driver.SubmissionEngine;
|
||||
import org.apache.sqoop.error.code.MapreduceSubmissionError;
|
||||
import org.apache.sqoop.execution.mapreduce.MRJobRequest;
|
||||
import org.apache.sqoop.execution.mapreduce.MapreduceExecutionEngine;
|
||||
import org.apache.sqoop.driver.JobRequest;
|
||||
|
Loading…
Reference in New Issue
Block a user