<?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>topic Connection Issue with RDS MySql --Talend Job Running in Docker Container in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Connection-Issue-with-RDS-MySql-Talend-Job-Running-in-Docker/m-p/2413191#M142382</link>
    <description>&lt;P&gt;Hello Talend Community,&lt;/P&gt;
&lt;P&gt;I hope this message finds you well. I am currently facing an issue while running a Talend job inside a Docker container. The job connects to an RDS MySQL database, and it's working fine on EC2 Linux, but encounters issues when executed within a Docker container on the same EC2 machine.&lt;/P&gt;
&lt;P&gt;The Dockerfile includes the following steps:&lt;/P&gt;
&lt;P&gt;```Dockerfile&lt;BR /&gt;FROM ubuntu:latest&lt;/P&gt;
&lt;P&gt;RUN apt-get update&lt;BR /&gt;RUN apt-get install openjdk-17-jdk -y&lt;/P&gt;
&lt;P&gt;COPY Job_L4_Invoice_load_mysql_0.1.zip /usr/src/app/&lt;BR /&gt;COPY MySQLConnectionTest-0.0.1-SNAPSHOT-jar-with-dependencies.jar /usr/src/app/&lt;/P&gt;
&lt;P&gt;WORKDIR /usr/src/app&lt;/P&gt;
&lt;P&gt;RUN apt-get install -y coreutils unzip&lt;BR /&gt;RUN unzip /usr/src/app/Job_L4_Invoice_load_mysql_0.1.zip -d /usr/src/app/&lt;BR /&gt;RUN rm -rf /usr/src/app/Job_L4_Invoice_load_mysql_0.1.zip&lt;/P&gt;
&lt;P&gt;CMD ["sh", "./Job_L4_Invoice_load_mysql/Job_L4_Invoice_load_mysql_run.sh"]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;---------&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;However, when the job runs, it throws the following error related to MySQL connection:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;java.sql.SQLException: Access denied for user 'vineet'@'172.31.18.166' (using password: YES)&lt;BR /&gt;com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=======================&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I've confirmed that manually connecting from the Docker container to the RDS MySQL host works fine. Could you please assist me in resolving this issue? Are there any specific configurations or considerations I should take into account when running Talend jobs in Docker containers?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jan 2024 16:44:30 GMT</pubDate>
    <dc:creator>jvineethunterai</dc:creator>
    <dc:date>2024-01-31T16:44:30Z</dc:date>
    <item>
      <title>Connection Issue with RDS MySql --Talend Job Running in Docker Container</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connection-Issue-with-RDS-MySql-Talend-Job-Running-in-Docker/m-p/2413191#M142382</link>
      <description>&lt;P&gt;Hello Talend Community,&lt;/P&gt;
&lt;P&gt;I hope this message finds you well. I am currently facing an issue while running a Talend job inside a Docker container. The job connects to an RDS MySQL database, and it's working fine on EC2 Linux, but encounters issues when executed within a Docker container on the same EC2 machine.&lt;/P&gt;
&lt;P&gt;The Dockerfile includes the following steps:&lt;/P&gt;
&lt;P&gt;```Dockerfile&lt;BR /&gt;FROM ubuntu:latest&lt;/P&gt;
&lt;P&gt;RUN apt-get update&lt;BR /&gt;RUN apt-get install openjdk-17-jdk -y&lt;/P&gt;
&lt;P&gt;COPY Job_L4_Invoice_load_mysql_0.1.zip /usr/src/app/&lt;BR /&gt;COPY MySQLConnectionTest-0.0.1-SNAPSHOT-jar-with-dependencies.jar /usr/src/app/&lt;/P&gt;
&lt;P&gt;WORKDIR /usr/src/app&lt;/P&gt;
&lt;P&gt;RUN apt-get install -y coreutils unzip&lt;BR /&gt;RUN unzip /usr/src/app/Job_L4_Invoice_load_mysql_0.1.zip -d /usr/src/app/&lt;BR /&gt;RUN rm -rf /usr/src/app/Job_L4_Invoice_load_mysql_0.1.zip&lt;/P&gt;
&lt;P&gt;CMD ["sh", "./Job_L4_Invoice_load_mysql/Job_L4_Invoice_load_mysql_run.sh"]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;---------&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;However, when the job runs, it throws the following error related to MySQL connection:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;java.sql.SQLException: Access denied for user 'vineet'@'172.31.18.166' (using password: YES)&lt;BR /&gt;com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=======================&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I've confirmed that manually connecting from the Docker container to the RDS MySQL host works fine. Could you please assist me in resolving this issue? Are there any specific configurations or considerations I should take into account when running Talend jobs in Docker containers?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 16:44:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connection-Issue-with-RDS-MySql-Talend-Job-Running-in-Docker/m-p/2413191#M142382</guid>
      <dc:creator>jvineethunterai</dc:creator>
      <dc:date>2024-01-31T16:44:30Z</dc:date>
    </item>
  </channel>
</rss>

