使用teradata-connector将表从teradata导入到hive时出错

时间:2016-10-20 11:15:29

标签: hadoop jdbc teradata

我正在尝试使用myemp将Teradata中的teradata-connector表格导入hive,hortonworks-teradata-connector也会出现同样的错误,但是 通过使用JDBC而不使用连接器,效果很好。

hadoop com.teradata.hadoop.tool.TeradataImportTool \
-libjars $LIB_JARS \
-url jdbc:teradata://192.168.2.129/database=mydb \
-username kd \
-password exa \
-classname com.teradata.jdbc.TeraDriver \
-jobtype hive \
-fileformat rcfile \
-targettable tab1 \
-sourcetable myemp

错误:

16/10/20 11:10:17 INFO tool.ConnectorImportTool: ConnectorImportTool starts at 1476961817658
16/10/20 11:10:19 INFO common.ConnectorPlugin: load plugins in jar:file:/usr/hdp/2.4.0.0-169/sqoop/lib/teradata-connector-1.4.1-hadoop2.jar!/teradata.connector.plugins.xml
16/10/20 11:10:19 INFO hive.metastore: Trying to connect to metastore with URI thrift://sandbox.hortonworks.com:9083
16/10/20 11:10:19 INFO tool.ConnectorImportTool: java.lang.NoSuchMethodError: org.apache.hadoop.hive.shims.HadoopShims.getUGIForConf(Lorg/apache/hadoop/conf/Configuration;)Lorg/apache/hadoop/security/UserGroupInformation;
at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.open(HiveMetaStoreClient.java:292)
at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.<init>(HiveMetaStoreClient.java:163)
at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.<init>(HiveMetaStoreClient.java:103)
at com.teradata.connector.hive.utils.HiveUtils.isHiveOutputTablePartitioned(HiveUtils.java:1075)
at com.teradata.connector.common.tool.ConnectorImportTool.processArgs(ConnectorImportTool.java:625)
at com.teradata.connector.common.tool.ConnectorImportTool.run(ConnectorImportTool.java:58)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90)
at com.teradata.hadoop.tool.TeradataImportTool.main(TeradataImportTool.java:29)

16/10/20 11:10:19 INFO tool.ConnectorImportTool: job completed with exit code 10000

0 个答案:

没有答案