databricks / reference-apps

Spark reference applications
Other
656 stars 342 forks source link

Algorithm constraints check failed: SHA1withRSA while running Twitter Classifier Example #80

Open dapper-hacker opened 8 years ago

dapper-hacker commented 8 years ago

Hi, I have successfully compiled the Twitter classifier sample and I am trying to run the first program to collect the tweets. When I run the example I am running into this issue:

16/06/13 21:52:43 ERROR scheduler.ReceiverTracker: Deregistered receiver for stream 0: Restarting receiver with delay 2000ms: Error receiving tweets - sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: Algorithm constraints check failed: SHA1withRSA Relevant discussions can be found on the Internet at: http://www.google.co.jp/search?q=d0031b0b or http://www.google.co.jp/search?q=1db75522 TwitterException{exceptionCode=[d0031b0b-1db75522 db667dea-99334ae4 db667dea-99334ae4 db667dea-99334ae4], statusCode=-1, message=null, code=-1, retryAfter=-1, rateLimitStatus=null, version=3.0.3} at twitter4j.internal.http.HttpClientImpl.request(HttpClientImpl.java:192) at twitter4j.internal.http.HttpClientWrapper.request(HttpClientWrapper.java:61) at twitter4j.internal.http.HttpClientWrapper.get(HttpClientWrapper.java:89) at twitter4j.TwitterStreamImpl.getSampleStream(TwitterStreamImpl.java:176) at twitter4j.TwitterStreamImpl$4.getStream(TwitterStreamImpl.java:164) at twitter4j.TwitterStreamImpl$TwitterStreamConsumer.run(TwitterStreamImpl.java:462) Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: Algorithm constraints check failed: SHA1withRSA

My java is /usr/jdk64/java-1.8.0-openjdk-1.8.0.45-28.b13.el6_6.x86_64/jre/bin/java