<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Error when trying to connect to Timescale Cloud with SSL by using Apache Ni-Fi in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Error-when-trying-to-connect-to-Timescale-Cloud-with-SSL-by/m-p/339092#M233030</link>
    <description>&lt;P&gt;Hi André!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your answer! That was the problem!&lt;/P&gt;</description>
    <pubDate>Tue, 22 Mar 2022 08:36:50 GMT</pubDate>
    <dc:creator>BerniHacker</dc:creator>
    <dc:date>2022-03-22T08:36:50Z</dc:date>
    <item>
      <title>Error when trying to connect to Timescale Cloud with SSL by using Apache Ni-Fi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-when-trying-to-connect-to-Timescale-Cloud-with-SSL-by/m-p/339047#M233006</link>
      <description>&lt;DIV class="s-prose js-post-body"&gt;&lt;P&gt;I have created a data pipeline with &lt;STRONG&gt;Apache Ni-Fi&lt;/STRONG&gt; (version 1.15.2) to transfer data from a MySQL database in a AWS RDS instance into Timescale (postgreSQL). Ni-Fi runs in Linux Ubuntu 18.04 in Virtual Box on top of Windows 10. The pipeline has been tested successfully by using as a target the Timescale database located in my local Linux instance, without using SSL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I have modified the pipeline to use &lt;STRONG&gt;Timescale Cloud&lt;/STRONG&gt; as a target (&lt;A href="https://portal.timescale.cloud/login" target="_blank" rel="nofollow noopener noreferrer"&gt;https://portal.timescale.cloud/login&lt;/A&gt;). The database name is: periodic-measurements&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Timescale Cloud service page I can see these credentials:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Host: &amp;lt;host-string&amp;gt;&lt;/LI&gt;&lt;LI&gt;Port: 10250&lt;/LI&gt;&lt;LI&gt;User: tsdbadmin&lt;/LI&gt;&lt;LI&gt;Password: &amp;lt;timescale-cloud-service-password&amp;gt;&lt;/LI&gt;&lt;LI&gt;Service URI: postgres://tsdbadmin:&amp;lt;timescale-cloud-service-password&amp;gt;@&amp;lt;host-string&amp;gt;:10250/defaultdb?sslmode=require&lt;/LI&gt;&lt;LI&gt;SSL mode: require&lt;/LI&gt;&lt;LI&gt;Allowed IP addresses: 0.0.0.0/0&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I use PutDatabaseRecord processor to write data in the postgreSQL database which uses the DBCPConnectionPool controller service.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have copied the CA certificate got from Timescale Cloud service page into the following directory in my Linux instance with the following file name:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/etc/ca-certificates/ts-cloud-ca.pem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are the configuration parameters in the the DBCPConnectionPool controller service:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;• Database Connection URL: jdbc:postgres://&amp;lt;host-string&amp;gt;:10250/periodic-measurements&lt;/P&gt;&lt;P&gt;• Database Driver Class Name: org.postgresql.Driver&lt;/P&gt;&lt;P&gt;• Database Driver Location: /usr/share/java/postgresql/postgresql-42.3.1.jar&lt;/P&gt;&lt;P&gt;• Database User: tsdbadmin&lt;/P&gt;&lt;P&gt;• Password: &amp;lt;timescale-cloud-service-password&amp;gt;&lt;/P&gt;&lt;P&gt;• sslmode: require&lt;/P&gt;&lt;P&gt;• sslrootcert: /etc/ca-certificates/ts-cloud-ca.pem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When enabling the controller service I get the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;StandardControllerServiceNode[service=DBCPConnectionPool[id=&lt;SPAN class="hljs-number"&gt;017e1005&lt;/SPAN&gt;-&lt;SPAN class="hljs-number"&gt;818e-1423&lt;/SPAN&gt;-&lt;SPAN class="hljs-number"&gt;7951&lt;/SPAN&gt;-125faf9dff4d], name=Connector to Timescale Cloud, active=&lt;SPAN class="hljs-literal"&gt;true&lt;/SPAN&gt;] Failed to invoke &lt;SPAN class="hljs-meta"&gt;@OnEnabled&lt;/SPAN&gt; method due to java.sql.SQLException: No suitable driver

causes: org.apache.nifi.processor.exception.ProcessException: No suitable driver &lt;SPAN class="hljs-keyword"&gt;for&lt;/SPAN&gt; the given Database Connection URL: No suitable driver &lt;SPAN class="hljs-keyword"&gt;for&lt;/SPAN&gt; the given Database Connection URL&lt;/PRE&gt;&lt;P&gt;I get the same result if I change the DBCPConnectionPool controller service settings with sslmode: verify-ca&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that I have managed to connect successfully to the Timescale Cloud database with Grafana from my Linux instance by using the same credentials.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any hint what could be wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bernardo&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 21 Mar 2022 16:58:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-when-trying-to-connect-to-Timescale-Cloud-with-SSL-by/m-p/339047#M233006</guid>
      <dc:creator>BerniHacker</dc:creator>
      <dc:date>2022-03-21T16:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error when trying to connect to Timescale Cloud with SSL by using Apache Ni-Fi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-when-trying-to-connect-to-Timescale-Cloud-with-SSL-by/m-p/339062#M233010</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/85508"&gt;@BerniHacker&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I noticed that your JDBC URL starts with "&lt;SPAN&gt;jdbc:postgres:". The correct is "jdbc:postgresql:".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you please make this change and try again?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;André&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;--&lt;BR /&gt;Was your question answered? Please take some time to click on "&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;" below this post.&lt;BR /&gt;If you find a reply useful, say thanks by clicking on the thumbs up button.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 22:05:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-when-trying-to-connect-to-Timescale-Cloud-with-SSL-by/m-p/339062#M233010</guid>
      <dc:creator>araujo</dc:creator>
      <dc:date>2022-03-21T22:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error when trying to connect to Timescale Cloud with SSL by using Apache Ni-Fi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-when-trying-to-connect-to-Timescale-Cloud-with-SSL-by/m-p/339092#M233030</link>
      <description>&lt;P&gt;Hi André!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your answer! That was the problem!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 08:36:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-when-trying-to-connect-to-Timescale-Cloud-with-SSL-by/m-p/339092#M233030</guid>
      <dc:creator>BerniHacker</dc:creator>
      <dc:date>2022-03-22T08:36:50Z</dc:date>
    </item>
  </channel>
</rss>

