One Star

NoClassDefFoundError: org/apache/http/client/utils/URIBuilder

Talend Version: Talend Data Fabric 6.1.1.20160219
Very simple job to read a file in HDFS then print in log:
Get below error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/client/utils/URIBuilder
at org.apache.hadoop.crypto.key.kms.KMSClientProvider.createURL(KMSClientProvider.java:433)
at org.apache.hadoop.crypto.key.kms.KMSClientProvider.addDelegationTokens(KMSClientProvider.java:857)
at org.apache.hadoop.crypto.key.KeyProviderDelegationTokenExtension.addDelegationTokens(KeyProviderDelegationTokenExtension.java:86)
at org.apache.hadoop.hdfs.DistributedFileSystem.addDelegationTokens(DistributedFileSystem.java:2233)
at org.apache.hadoop.mapreduce.security.TokenCache.obtainTokensForNamenodesInternal(TokenCache.java:121)
at org.apache.hadoop.mapreduce.security.TokenCache.obtainTokensForNamenodesInternal(TokenCache.java:100)
at org.apache.hadoop.mapreduce.security.TokenCache.obtainTokensForNamenodes(TokenCache.java:80)
at org.apache.hadoop.mapred.FileOutputFormat.checkOutputSpecs(FileOutputFormat.java:126)
at org.apache.hadoop.mapreduce.JobSubmitter.checkSpecs(JobSubmitter.java:268)
at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:139)
at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1290)
at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1287)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Unknown Source)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
at org.apache.hadoop.mapreduce.Job.submit(Job.java:1287)
at org.apache.hadoop.mapred.JobClient$1.run(JobClient.java:575)
at org.apache.hadoop.mapred.JobClient$1.run(JobClient.java:570)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Unknown Source)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:570)
at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:561)
at org.talend.hadoop.mapred.lib.MRJobClient.runJob(MRJobClient.java:58)
at project.test_mr_copy_file_0_1.test_mr_copy_file.runMRJob(test_mr_copy_file.java:1141)
at project.test_mr_copy_file_0_1.test_mr_copy_file.tFileInputFullRow_1_HDFSInputFormatProcess(test_mr_copy_file.java:862)
at project.test_mr_copy_file_0_1.test_mr_copy_file.run(test_mr_copy_file.java:1109)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
at project.test_mr_copy_file_0_1.test_mr_copy_file.runJobInTOS(test_mr_copy_file.java:1047)
at project.test_mr_copy_file_0_1.test_mr_copy_file.main(test_mr_copy_file.java:1026)
Caused by: java.lang.ClassNotFoundException: org.apache.http.client.utils.URIBuilder
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 30 more
1 REPLY
One Star

Re: NoClassDefFoundError: org/apache/http/client/utils/URIBuilder

 
Not able to post a picture, under is the component:
iFileInputFullRow -> tLogRow