SegementTarPushJob failure

36 views
Skip to first unread message

Instance

unread,
Jul 9, 2018, 2:58:34 PM7/9/18
to Pinot Users
Hello,

I'm getting this error when i try to upload segments

Exception in thread "main" java.lang.NoSuchFieldError: INSTANCE
        at org.apache.http.conn.ssl.SSLConnectionSocketFactory.<clinit>(SSLConnectionSocketFactory.java:146)
        at org.apache.http.impl.client.HttpClientBuilder.build(HttpClientBuilder.java:964)
        at com.linkedin.pinot.common.utils.FileUploadDownloadClient.<init>(FileUploadDownloadClient.java:107)
        at com.linkedin.pinot.common.utils.FileUploadDownloadClient.<init>(FileUploadDownloadClient.java:98)
        at com.linkedin.pinot.hadoop.job.SegmentTarPushJob.pushOneTarFile(SegmentTarPushJob.java:82)
        at com.linkedin.pinot.hadoop.job.SegmentTarPushJob.pushDir(SegmentTarPushJob.java:72)
        at com.linkedin.pinot.hadoop.job.SegmentTarPushJob.run(SegmentTarPushJob.java:55)
        at com.linkedin.pinot.hadoop.PinotHadoopJobLauncher.kickOffPinotHadoopJob(PinotHadoopJobLauncher.java:57)
        at com.linkedin.pinot.hadoop.PinotHadoopJobLauncher.main(PinotHadoopJobLauncher.java:90)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:136)


I tried following the instructions provided at https://stackoverflow.com/questions/21864521/java-lang-nosuchfielderror-org-apache-http-message-basiclineformatter-instance . But unfortunately I get resource as null. Can someone please help.

Thanks 

Instance

unread,
Jul 9, 2018, 6:23:48 PM7/9/18
to Pinot Users

I tried modifying the httpclient and httpcore versions in pom.xml. And that leads to different set of errors like: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/impl/client/HttpClients] and Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/ssl/SSLContexts

jennifah...@gmail.com

unread,
Jul 10, 2018, 8:47:11 PM7/10/18
to Pinot Users
Thanks for reporting this problem. Could you try pulling from the fixmaven branch? If you do a mvn clean install -DskipTests -Pbuild-shaded-jar and run the push with the shaded jar, that should work. I will check in that change soon, after I get a review.

Best,
Jennifer

nandumal...@gmail.com

unread,
Jul 11, 2018, 7:11:07 PM7/11/18
to Pinot Users
This works..  :) 

Thank you
Reply all
Reply to author
Forward
0 new messages