Re: ssl error after changing to slider-dev branch

2014-08-20 Thread Jon Maron
that looks fine. Can you do the following: - Look for logging statements in the AM log like the following: 14/08/20 15:56:04 INFO mortbay.log: Started SslSelectChannelConnector@0.0.0.0:55882 14/08/20 15:56:05 INFO mortbay.log: Started SslSelectChannelConnector@0.0.0.0:48592 the connection

Re: ssl error after changing to slider-dev branch

2014-08-20 Thread Jon Maron
Try adding the following to your appConfig.json: components: { . . . }, slider-appmaster: { jvm.heapsize: 256M, jvm.opts: -Djavax.net.debug=all }, You should see some output from the protocol handshake, probably in slider-out.txt. Maybe that’ll tell us more about

Re: ssl error after changing to slider-dev branch

2014-08-20 Thread Rui Zhang
I found this in the slider-out log: Extension ec_point_formats, formats: [uncompressed, ansiX962_compressed_prime, ansiX962_compressed_char2] Extension elliptic_curves, curve names: {sect571r1, sect571k1, secp521r1, sect409k1, sect409r1, secp384r1, sect283k1, sect283r1, secp256k1, secp256r1,

Re: ssl error after changing to slider-dev branch

2014-08-20 Thread Rui Zhang
Thanks, Jon! This is the reason for the error! I think you should mention this in your documentation. Just commented out this line: security.provider.10=sun.security.pkcs11.SunPKCS11 ${java.home}/lib/security/nss.cfg in java.security will make it work. Thanks again. On 08/20/2014 02:43

Re: ssl error after changing to slider-dev branch

2014-08-19 Thread Rui Zhang
Tried so many methods. Changing the signature algorithm to sha256 in the java code and adding the cert to trusted list. All does not work and the same error. The certificate is generated in /tmp/work/security so I don't know what is wrong. Is there a self-check test for me to know whether I

Re: ssl error after changing to slider-dev branch

2014-08-19 Thread Jon Maron
I’m going to attempt this sort of deployment (I’m assuming you’re attempting two way SSL?) this afternoon (finishing up my current patch) and see if I can recreate the issue. — Jon On Aug 19, 2014, at 2:52 PM, Rui Zhang rzh...@vertica.com wrote: Tried so many methods. Changing the signature

Re: ssl error after changing to slider-dev branch

2014-08-19 Thread Jon Maron
I guess send the full agent and AM logs - I just this morning setup a cluster with no issue (admittedly this was on centos 6.4) — Jon On Aug 19, 2014, at 3:20 PM, Rui Zhang rzh...@vertica.com wrote: I think it is one-way ssl because I didn't set ssl.server.client.auth to true. BTW, I am

Re: ssl error after changing to slider-dev branch

2014-08-19 Thread Rui Zhang
Log attached. This is generated when I run the command logger example. On 08/19/2014 03:38 PM, Jon Maron wrote: I guess send the full agent and AM logs - I just this morning setup a cluster with no issue (admittedly this was on centos 6.4) — Jon On Aug 19, 2014, at 3:20 PM, Rui Zhang

Re: ssl error after changing to slider-dev branch

2014-08-15 Thread Rui Zhang
I tried with the latest installation. It now has another error. Exception in thread main java.lang.NoClassDefFoundError: com/codahale/metrics/MetricRegistry at org.apache.slider.server.appmaster.SliderAppMaster.clinit(SliderAppMaster.java:206) Caused by:

Re: ssl error after changing to slider-dev branch

2014-08-15 Thread Steve Loughran
On 15 August 2014 06:59, Rui Zhang rzh...@vertica.com wrote: Exception in thread main java.lang.NoClassDefFoundError: com/codahale/metrics/MetricRegistry at org.apache.slider.server.appmaster.SliderAppMaster. clinit(SliderAppMaster.java:206) Caused by:

Re: ssl error after changing to slider-dev branch

2014-08-15 Thread Rui Zhang
The first error solved. Thanks, Steve. But the ssl error still exists. BTW, I am not using Ambari so is it possible that I missed some configuration related to SSL in Yarn? Thanks. On 08/15/2014 10:09 AM, Steve Loughran wrote: ok, try now. On 15 August 2014 11:29, Steve Loughran

Re: ssl error after changing to slider-dev branch

2014-08-15 Thread Jon Maron
I’m having a hard time understanding exactly what your current setup is, so here are the details: - the agent code has been modified to communicate via SSL. That code is downloaded to each launched container from /slider/agent HDFS folder (slider-agent.tar.gz). If you have installed an up to

Re: ssl error after changing to slider-dev branch

2014-08-15 Thread Rui Zhang
Having done all of these but still got this error. It also says that it is not verified when I opened the link in the browser. Maybe there is some issue with my openssl. I will try to solve and report to you my progress. Thanks. On 08/15/2014 11:17 AM, Jon Maron wrote: - the agent code

Re: ssl error after changing to slider-dev branch

2014-08-15 Thread Jon Maron
OK. Make sure the AM logs indicate that the openssl commands are succeeding. You should see log statements displaying some openssl command or statements indicating if the server certificate exists. On Aug 15, 2014, at 12:05 PM, Rui Zhang rzh...@vertica.com wrote: Having done all of these

ssl error after changing to slider-dev branch

2014-08-14 Thread Rui Zhang
Hi, everyone, I have changed to the dev branch but now it has this error. ERROR 2014-08-14 15:52:28,244 NetUtil.py:52 - [Errno 8] _ssl.c:510: EOF occurred in violation of protocol ERROR 2014-08-14 15:52:28,244 NetUtil.py:54 - SSLError: Failed to connect. Please check openssl library versions.

Re: ssl error after changing to slider-dev branch

2014-08-14 Thread Jon Maron
Can you provide more of a stack trace from either the agent logs or the application master log? Thanks! Going Mobile On Aug 14, 2014, at 3:54 PM, Rui Zhang rzh...@vertica.com wrote: Hi, everyone, I have changed to the dev branch but now it has this error. ERROR 2014-08-14

Re: ssl error after changing to slider-dev branch

2014-08-14 Thread Jon Maron
Also, can you describe the upgrade process? Did you reinstall or just update the core jar? Going Mobile On Aug 14, 2014, at 3:54 PM, Rui Zhang rzh...@vertica.com wrote: Hi, everyone, I have changed to the dev branch but now it has this error. ERROR 2014-08-14 15:52:28,244

Re: ssl error after changing to slider-dev branch

2014-08-14 Thread Rui Zhang
INFO 2014-08-14 20:12:43,671 NetUtil.py:38 - Connecting to the following url https://vertica2.rzhang.com:58160/ws/v1/slider/agents/ ERROR 2014-08-14 20:12:43,674 NetUtil.py:52 - [Errno 8] _ssl.c:510: EOF occurred in violation of protocol ERROR 2014-08-14 20:12:43,675 NetUtil.py:54 - SSLError:

Re: ssl error after changing to slider-dev branch

2014-08-14 Thread Rui Zhang
Yes. I removed all the files in the original directory and clone the new branch and then compiled. On 08/14/2014 04:15 PM, Jon Maron wrote: Also, can you describe the upgrade process? Did you reinstall or just update the core jar? Going Mobile On Aug 14, 2014, at 3:54 PM, Rui Zhang