Issue:
Error seen in the stderr.log file
Thu Jan 31 14:24:26 UTC 2019: Executing curl POST to https://cloud.streamsets.com/security/public-rest/v1/authentication/login
curl: option --tlsv1.2: is unknown
curl: try 'curl --help' or 'curl --manual' for more information
Thu Jan 31 14:24:26 UTC 2019: Failed POST to https://cloud.streamsets.com/security/public-rest/v1/authentication/login
As per https://stackoverflow.com/questions/39192646/curl-tlsv1-2-option-not-working `The --tlsv1.2 option was added in curl 7.34.0 so no older version can ask specifically for 1.2, you could only ask for "TLS" back then. – Daniel Stenberg Aug 28 '16 at 21:44`
Curl installed in my docker :
[root@node-1 /]# curl --version
curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz
Versions affected:
All versions of SDC
Solution:
[root@node-1 /]# curl --version
curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz
Resolution: Upgrade curl to later than 7.34 using the steps below
[root@node-1 /]# yum clean all
Loaded plugins: fastestmirror, ovl
Cleaning repos: CityFan base cloudera-manager epel extras updates
Cleaning up Everything
Cleaning up list of fastest mirrors
[root@node-1 /]# yum deplist curl.x86_64 | awk '/provider:/ {print $2}' | sort -u | xargs yum -y install <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Loaded plugins: fastestmirror, ovl
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirror.web-ster.com
* epel: mirror.pnl.gov
* extras: mirror.web-ster.com
* updates: mirror.web-ster.com
Package ca-certificates-2018.2.22-65.1.el6.noarch already installed and latest version
Package glibc-2.12-1.212.el6.i686 already installed and latest version
Package glibc-2.12-1.212.el6.x86_64 already installed and latest version
Package krb5-libs-1.10.3-65.el6.x86_64 already installed and latest version
Package libcom_err-1.41.12-24.el6.x86_64 already installed and latest version
Package nspr-4.19.0-1.el6.x86_64 already installed and latest version
Package nss-util-3.36.0-1.el6.x86_64 already installed and latest version
Package nss-3.36.0-9.el6_10.x86_64 already installed and latest version
Package openldap-2.4.40-16.el6.x86_64 already installed and latest version
Package openssl-1.0.1e-57.el6.x86_64 already installed and latest version
Package zlib-1.2.3-29.el6.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package libcurl.x86_64 0:7.19.7-53.el6_9 will be updated
.
.
Installing : libssh2-1.8.0-8.0.cf.rhel6.i686 18/25
Updating : curl-7.63.0-5.0.cf.rhel6.x86_64 19/25
Updating : libidn-1.34-3.0.el6.x86_64 20/25
install-info: No such file or directory for /usr/share/info/libidn.info
Installing : libcurl-7.63.0-5.0.cf.rhel6.i686 21/25
Cleanup : curl-7.19.7-53.el6_9.x86_64 22/25
Cleanup : libcurl-7.19.7-53.el6_9.x86_64 23/25
Cleanup : libidn-1.18-2.el6.x86_64 24/25
Cleanup : libssh2-1.4.2-2.el6_7.1.x86_64 25/25
Verifying : libmetalink-0.1.3-7.rhel6.x86_64 1/25
.
.
Installed:
libcurl.i686 0:7.63.0-5.0.cf.rhel6 libmetalink.x86_64 0:0.1.3-7.rhel6
Dependency Installed:
c-ares.i686 0:1.15.0-1.0.cf.rhel6 c-ares.x86_64 0:1.15.0-1.0.cf.rhel6 cyrus-sasl-lib.i686 0:2.1.23-15.el6_6.2 db4.i686 0:4.7.25-22.el6 libnghttp2.i686 0:1.6.0-1.el6.1
libnghttp2.x86_64 0:1.6.0-1.el6.1 libssh2.i686 0:1.8.0-8.0.cf.rhel6 ncurses-libs.i686 0:5.7-4.20090207.el6 nspr.i686 0:4.19.0-1.el6 nss.i686 0:3.36.0-9.el6_10
nss-softokn.i686 0:3.14.3-23.3.el6_8 nss-util.i686 0:3.36.0-1.el6 openldap.i686 0:2.4.40-16.el6 readline.i686 0:6.0-4.el6 sqlite.i686 0:3.6.20-1.el6_7.2
Updated:
libcurl.x86_64 0:7.63.0-5.0.cf.rhel6 libidn.x86_64 0:1.34-3.0.el6 libssh2.x86_64 0:1.8.0-8.0.cf.rhel6
Dependency Updated:
curl.x86_64 0:7.63.0-5.0.cf.rhel6
Complete!
[root@node-1 /]# curl --version
curl 7.63.0 (x86_64-redhat-linux-gnu) libcurl/7.63.0 OpenSSL/1.0.1e zlib/1.2.3 c-ares/1.15.0 libssh2/1.8.0 nghttp2/1.6.0
Release-Date: 2018-12-12
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz HTTP2 UnixSockets HTTPS-proxy Metalink
Now start the streamsets service via CDH.