Quantcast
Viewing all articles
Browse latest Browse all 62

exporting hive table to teradata table using teradata hadoop connector - forum topic by NAGARAJUVANDANAPU

Hi all,
I am trying to export data hive table to teradata table, Below is the command

hadoop com.teradata.hadoop.tool.TeradataExportTool

-url jdbc:teradata://testsystem/database=testdb

-username testuser

-password testpassword

-jobtype hive

-fileformat textfile

-sourcedatabase database_example

-sourcetable example5_hive

-nummappers 1 -targettable example5_td 

 

i mentioned all details accurately

 

i have added all jars to the classpath.

But i am getting the exception 

 

Error: java.lang.ClassNotFoundException: org.apache.hadoop.hive.serde2.SerDeException

        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)

        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

        at java.security.AccessController.doPrivileged(Native Method)

        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)

        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

        at com.teradata.hive.mapreduce.TeradataHiveCombineFileRecordReader.<init>(TeradataHiveCombineFileRecordReader.java:67)

        at com.teradata.hive.mapreduce.TeradataHiveCombineFileInputFormat.createRecordReader(TeradataHiveCombineFileInputFormat.java:28)

        at org.apache.hadoop.mapred.MapTask$NewTrackingRecordReader.<init>(MapTask.java:492)

        at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:735)

        at org.apache.hadoop.mapred.MapTask.run(MapTask.java:340)

        at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:167)

        at java.security.AccessController.doPrivileged(Native Method)

        at javax.security.auth.Subject.doAs(Subject.java:415)

        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1594)

        at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:162)

 

I dont understand why the hell it is throwing this exception?

Can anyone help me resolving this issue?

 

 

Forums: 

Viewing all articles
Browse latest Browse all 62

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>