sqoop从hive导出到sql server错误

时间:2015-09-21 11:29:07

标签: sql-server hadoop hive sqoop

我们正在尝试将数据从配置单元导出到SQL Server表

sqoop export -D mapred.child.java.opts='\-Djava.security.egd=file:/dev/../dev/urandom' --connect 'jdbc:sqlserver://' --username $$$$ --password #### --table ib_c3 --columns BILL_TO_CUSTOMER_NAME,CONTRACT_NUMBER,SERVICE_LINE_ID,SERVICE_LINE_NAME,SERVICE_LINE_STATUS,STS_CODE,INSTANCE_ID,SERIAL_NUMBER,ITEM_NAME,QUANTITY,INVENTORY_ITEM_ID,WARRANTY_TYPE,WARRANTY_END_DATE,SHIP_DATE,PARTY_SITE_ID,LAST_DOS,IB_PRODUCT_TYPE,PRODUCT_FAMILY,ERP_ITEM_TYPE,SKU_LIST_PRICE -m 1 --input-fields-terminated-by '\001' --export-dir /app/dev/SmartAnalytics/Apps/CSP/hivewarehouse/csp.db/csp_ib_c3_export --input-null-string '\\N' --input-null-non-string '\\N' -- --schema staging

在导出期间,我们从sqoop获得以下错误。有人可以帮我们解决这个问题。

  

引起:java.io.IOException:com.microsoft.sqlserver.jdbc.SQLServerException:当前事务无法提交,也无法支持写入日志文件的操作。回滚交易。           在org.apache.sqoop.mapreduce.AsyncSqlRecordWriter.write(AsyncSqlRecordWriter.java:220)           at org.apache.sqoop.mapreduce.AsyncSqlRecordWriter.write(AsyncSqlRecordWriter.java:46)           at org.apache.hadoop.mapred.MapTask $ NewDirectOutputCollector.write(MapTask.java:644)           at org.apache.hadoop.mapreduce.task.TaskInputOutputContextImpl.write(TaskInputOutputContextImpl.java:89)           at org.apache.hadoop.mapreduce.lib.map.WrappedMapper $ Context.write(WrappedMapper.java:112)           at org.apache.sqoop.mapreduce.TextExportMapper.map(TextExportMapper.java:84)           ......还有10个   引发者:com.microsoft.sqlserver.jdbc.SQLServerException:当前事务无法提交,也无法支持写入日志文件的操作。回滚交易。           at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:216)           在com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(SQLServerStatement.java:1515)           at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.doExecutePreparedStatementBatch(SQLServerPreparedStatement.java:1299)           at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement $ PrepStmtBatchExecCmd.doExecute(SQLServerPreparedStatement.java:1209)           在com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:5696)           在com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:1715)           在com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(SQLServerStatement.java:180)           在com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(SQLServerStatement.java:155)           在com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.executeBatch(SQLServerPreparedStatement.java:1173)           at org.apache.sqoop.mapreduce.AsyncSqlOutputFormat $ AsyncSqlExecThread.run(AsyncSqlOutputFormat.java:231)

0 个答案:

没有答案