All Forums Hadoop
09 Mar 2015
exporting hive table to teradata table using teradata hadoop connector

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.ja va:308)

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

        at com.teradata.hive.mapreduce.TeradataHiveCombineFileRec ordReader.<init>(TeradataHiveCombineFileRecordReader.j ava:67)

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

        at org.apache.hadoop.mapred.MapTask$NewTrackingRecordRead er.<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.jav a:167)

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

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

        at org.apache.hadoop.security.UserGroupInformation.doAs(U serGroupInformation.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?

 

 

ajaykumar.d35 1 post Joined 03/15
11 Mar 2015

I am here to resolve your question. Ask me whatever you want.

11 Mar 2015

dow u have an idea about export parquet format data in hive partitioned table to teradata table using teradata hadoop connector?

You must sign in to leave a comment.