ERROR:oracle.jdbc.driver.T4CPreparedStatement.isClosed()Z (sqoop从oralce向hive导数据)解决

[[email protected] ~]$ sqoop import -connect jdbc:oracle:thin:@192.168.8.228:1521:bonc -username AQ -password bonc1234 -table ORCL_TEST1 -hive-import -
hive-database test -hive-table ORCL_HIVE_TEST1 -null-string ‘ ‘ -null-non-string ‘‘ -m 1
15/06/11 17:05:58 INFO sqoop.Sqoop: Running Sqoop version: 1.4.4-cdh5.0.0
15/06/11 17:05:58 WARN tool.BaseSqoopTool: Setting your password on the command-line is insecure. Consider using -P instead.
15/06/11 17:05:58 INFO tool.BaseSqoopTool: Using Hive-specific delimiters for output. You can override
15/06/11 17:05:58 INFO tool.BaseSqoopTool: delimiters with --fields-terminated-by, etc.
15/06/11 17:05:58 INFO manager.SqlManager: Using default fetchSize of 1000
15/06/11 17:05:58 INFO tool.CodeGenTool: Beginning code generation
15/06/11 17:05:59 INFO manager.OracleManager: Time zone has been set to GMT
15/06/11 17:05:59 INFO manager.SqlManager: Executing SQL statement: SELECT t.* FROM ORCL_TEST1 t WHERE 1=0
15/06/11 17:05:59 INFO orm.CompilationManager: HADOOP_MAPRED_HOME is /opt/beh/core/hadoop
Note: /tmp/sqoop-hadoop/compile/7808ec7272d1b4eaa5af7d983f35fcd9/ORCL_TEST1.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
15/06/11 17:06:01 INFO orm.CompilationManager: Writing jar file: /tmp/sqoop-hadoop/compile/7808ec7272d1b4eaa5af7d983f35fcd9/ORCL_TEST1.jar
15/06/11 17:06:01 INFO manager.OracleManager: Time zone has been set to GMT
15/06/11 17:06:01 INFO manager.OracleManager: Time zone has been set to GMT
15/06/11 17:06:01 INFO mapreduce.ImportJobBase: Beginning import of ORCL_TEST1
15/06/11 17:06:02 INFO Configuration.deprecation: mapred.jar is deprecated. Instead, use mapreduce.job.jar
15/06/11 17:06:02 INFO manager.OracleManager: Time zone has been set to GMT
15/06/11 17:06:03 INFO Configuration.deprecation: mapred.map.tasks is deprecated. Instead, use mapreduce.job.maps
15/06/11 17:06:03 INFO client.RMProxy: Connecting to ResourceManager at /0.0.0.0:8032
15/06/11 17:06:04 INFO db.DBInputFormat: Using read commited transaction isolation
15/06/11 17:06:04 INFO mapreduce.JobSubmitter: number of splits:1
15/06/11 17:06:05 INFO mapreduce.JobSubmitter: Submitting tokens for job: job_1432609090750_0032
15/06/11 17:06:05 INFO impl.YarnClientImpl: Submitted application application_1432609090750_0032
15/06/11 17:06:05 INFO mapreduce.Job: The url to track the job: http://mdhadoop:23188/proxy/application_1432609090750_0032/
15/06/11 17:06:05 INFO mapreduce.Job: Running job: job_1432609090750_0032
15/06/11 17:06:14 INFO mapreduce.Job: Job job_1432609090750_0032 running in uber mode : false
15/06/11 17:06:14 INFO mapreduce.Job: map 0% reduce 0%
15/06/11 17:06:20 INFO mapreduce.Job: Task Id : attempt_1432609090750_0032_m_000000_0, Status : FAILED
Error: oracle.jdbc.driver.T4CPreparedStatement.isClosed()Z
15/06/11 17:06:26 INFO mapreduce.Job: Task Id : attempt_1432609090750_0032_m_000000_1, Status : FAILED
Error: oracle.jdbc.driver.T4CPreparedStatement.isClosed()Z
15/06/11 17:06:32 INFO mapreduce.Job: Task Id : attempt_1432609090750_0032_m_000000_2, Status : FAILED
Error: oracle.jdbc.driver.T4CPreparedStatement.isClosed()Z
15/06/11 17:06:40 INFO mapreduce.Job: map 100% reduce 0%
15/06/11 17:06:41 INFO mapreduce.Job: Job job_1432609090750_0032 failed with state FAILED due to: Task failed task_1432609090750_0032_m_000000
Job failed as tasks failed. failedMaps:1 failedReduces:0

15/06/11 17:06:41 INFO mapreduce.Job: Counters: 8
Job Counters
Failed map tasks=4
Launched map tasks=4
Other local map tasks=4
Total time spent by all maps in occupied slots (ms)=18943
Total time spent by all reduces in occupied slots (ms)=0
Total time spent by all map tasks (ms)=18943
Total vcore-seconds taken by all map tasks=18943
Total megabyte-seconds taken by all map tasks=19397632
15/06/11 17:06:41 WARN mapreduce.Counters: Group FileSystemCounters is deprecated. Use org.apache.hadoop.mapreduce.FileSystemCounter instead
15/06/11 17:06:41 INFO mapreduce.ImportJobBase: Transferred 0 bytes in 38.4552 seconds (0 bytes/sec)
15/06/11 17:06:41 WARN mapreduce.Counters: Group org.apache.hadoop.mapred.Task$Counter is deprecated. Use org.apache.hadoop.mapreduce.TaskCounter instead
15/06/11 17:06:41 INFO mapreduce.ImportJobBase: Retrieved 0 records.
15/06/11 17:06:41 ERROR tool.ImportTool: Error during import: Import job failed!
[[email protected] ~]$

JDBC驱动是10g的,更新为11g的就解决了

时间: 2024-12-28 08:38:22

ERROR:oracle.jdbc.driver.T4CPreparedStatement.isClosed()Z (sqoop从oralce向hive导数据)解决的相关文章

MyBatis+Oracle时出现的错误: Method oracle/jdbc/driver/OracleResultSetImpl.isClosed()Z is abstract

今天在看MyBatis时,准备写一个Demo来验证看完TypHandler源码后的想法,可是demo刚一跑起来就报下面的错了. 随手在网上搜了一遍,都说是版本不匹配:就是不明白怎么个不匹配法:可是好奇心驱使我就想看看怎么个不匹配法. 先把我自己的代码贴在这. maven依赖: 1 <dependency> 2 <groupId>mysql</groupId> 3 <artifactId>mysql-connector-java</artifactId&

关于cognos Framework报oracle.jdbc.driver.T4CPreparedStatement错误

这个是之前某天在技术群的一位群友问的问题 说cognos Framework测试数据报错 具体如下图 具体报错信息 oracle.jdbc.driver.T4CPreparedStatement.getParameterMetaData()Ljava/sql/ParameterMetaDate; 百度了一下,找不到什么有用的资料~~~ 比较多都提出了,但好像都没有具体解决了的方案 接着我换谷歌,搜了一下,在某个人的博客看到相对有用的信息 而那个博客的作者的情况是在进行java开发连接数据库时发生

JSP Tomcat8.0运行连接池时发生异常【AbstractMethodError oracle.jdbc.driver.T4CConnection.isValid(I)Z】

原创 2015年12月28日 11:38:01 2004 一.Tomcat8.0运行连接池时发生异常: AbstractMethodError oracle.jdbc.driver.T4CConnection.isValid(I)Z 二.如何解决 由于驱动包引起的:原先是用的Oracle 10g 10.2.0.2 JDBC_ojdbc14.jar 但现在必须换成: ojdbc6.jar   即OK! 注意: Tomcat8+JDK1.7+Ojdbc6.jar Oracle驱动包

Cannot load JDBC driver class &#39;oracle.jdbc.driver.OracleDriver&#39;

: Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver'错误来源:Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver' 出现这个问题,主要是驱动包没放到项目里,解决办法如下:1.找到oracle里的jdbc\lib:2.设置系统的 classpath 为 ojdbc14.jar.class12.jar:3.把这两个jar拷贝到你的项目里的 \WEB-

java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver 错误的解决办法

java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver 错误的解决办法 (2011-05-05 16:08:05) 转载▼ 标签: 杂谈 分类: Oracle 出现这个问题,主要是驱动包没放到项目里,解决办法如下: 1.找到oracle里的jdbc\lib: 2.设置系统的 classpath 为 ojdbc14.jar.class12.jar: 3.把这两个jar拷贝到你的项目里的 \WEB-INF\lib 下: 4.

皕杰报表:连接数据库失败,请检查数据源配置(oracle.jdbc.driver.OracleDriver)

皕杰报表:连接数据库失败,请检查数据源配置(oracle.jdbc.driver.OracleDriver)问题解决: 缺少了classes12.jar 在窗口--首选项--报表运行时配置--添加--确认 原文地址:https://www.cnblogs.com/uranusyo/p/11349366.html

解决 Registered driver with driverClassName=oracle.jdbc.driver.OracleDriver was not found, trying direct instantiation.

原数据源配置为这样 spring.datasource.driver-class-name=oracle.jdbc.driver.OracleDriver 跟现在更改为 spring.datasource.driver-class-name=oracle.jdbc.OracleDriver 启动项目,ok 原文地址:https://www.cnblogs.com/ketoli/p/12155432.html

JAVA-系统-【3】-java应用连接oracle正常,但是网页却报错java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver

这是因为jar包已经导入了项目的应用部分,网页的lib去没有导入. 导入以后还要刷新项目,最好重启tomcat,就解决了..

Java-解决SSH集成时,oracle报错:Error while registering Oracle JDBC Diagnosablility MBean

今天在做项目练习时,在集成SSH后,发现控制台有oracle的报错: Error while registering Oracle JDBC Diagnosability MBean. javax.management.MalformedObjectNameException: Invalid character ' ' in value part of property at javax.management.ObjectName.construct(ObjectName.java:602)