<?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: Unable to insert data in MySQL using ConvertJSONToSQL processor through NiFi in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-insert-data-in-MySQL-using-ConvertJSONToSQL/m-p/120157#M34246</link>
    <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/11710/javaetlbigdata.html" nodeid="11710" target="_blank"&gt;@Prasanta Sahoo&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Can you try "ConvertAvroToJSON" processor with below configuration: &lt;/P&gt;&lt;P&gt;For "JSON container options" Instead of "none"  try "array"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5674-screen-shot-2016-07-10-at-115507-pm.png" style="width: 1582px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22898iA0799ED2EF6010C4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="5674-screen-shot-2016-07-10-at-115507-pm.png" alt="5674-screen-shot-2016-07-10-at-115507-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;That determines how the stream flows as an array or single object.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jobin&lt;/P&gt;</description>
    <pubDate>Mon, 19 Aug 2019 10:35:57 GMT</pubDate>
    <dc:creator>jgeorge</dc:creator>
    <dc:date>2019-08-19T10:35:57Z</dc:date>
    <item>
      <title>Unable to insert data in MySQL using ConvertJSONToSQL processor through NiFi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-insert-data-in-MySQL-using-ConvertJSONToSQL/m-p/120153#M34242</link>
      <description>&lt;P&gt;Hi, I want to load data from hive table to MySql table using HDF (nifi). I have created the following dataflow. &lt;/P&gt;&lt;P&gt;After execution of dataflow, it is showing 151 bytes data has written the destination table. However there is no data in the destination table.&lt;/P&gt;&lt;P&gt;Please help me if there is any configuration issue.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5637-capture5.png" style="width: 1183px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22899i73C4C5BD73DE5949/image-size/medium?v=v2&amp;amp;px=400" role="button" title="5637-capture5.png" alt="5637-capture5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://community.cloudera.com/ExecuteSQL" rel="nofollow noopener noreferrer"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5639-capture6.png" style="width: 813px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22900i211158357D4F8AE4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="5639-capture6.png" alt="5639-capture6.png" /&gt;&lt;/span&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5640-capture7.png" style="width: 808px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22901i9EA0C7D189F5C13E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="5640-capture7.png" alt="5640-capture7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5651-capture8.png" style="width: 805px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22902i93A1992910E5D4D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="5651-capture8.png" alt="5651-capture8.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 10:36:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-insert-data-in-MySQL-using-ConvertJSONToSQL/m-p/120153#M34242</guid>
      <dc:creator>java_etl_bigdat</dc:creator>
      <dc:date>2019-08-19T10:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to insert data in MySQL using ConvertJSONToSQL processor through NiFi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-insert-data-in-MySQL-using-ConvertJSONToSQL/m-p/120154#M34243</link>
      <description>&lt;P&gt;Hi &lt;A href="https://community.hortonworks.com/questions/44195/unable-to-insert-data-using-convertjsontosql-proce.html#"&gt;@Prasanta Sahoo&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Please add PutSQL processor (with DBCPConnectionPool for mysql)  after ConvertJSONToSQL processor and try.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jobin&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 23:29:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-insert-data-in-MySQL-using-ConvertJSONToSQL/m-p/120154#M34243</guid>
      <dc:creator>jgeorge</dc:creator>
      <dc:date>2016-07-08T23:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to insert data in MySQL using ConvertJSONToSQL processor through NiFi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-insert-data-in-MySQL-using-ConvertJSONToSQL/m-p/120155#M34244</link>
      <description>&lt;P&gt;The ConvertJSONToSQL processor[1] merely converts a JSON object into a SQL query that can be executed. After it is converted, you haven't sent the command anywhere yet. You need another processor after that in order to actually send the command to be executed by a system. The PutSQL processor[2] (as suggested by &lt;A rel="user" href="https://community.cloudera.com/users/466/jgeorge.html" nodeid="466"&gt;@Jobin George&lt;/A&gt;) executes the SQL UPDATE or INSERT command that is in the contents of the incoming FlowFile.&lt;/P&gt;&lt;P&gt;
[1] &lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.ConvertJSONToSQL/index.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.ConvertJSONToSQL/index.html&lt;/A&gt; &lt;/P&gt;&lt;P&gt;[2] &lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.PutSQL/index.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.PutSQL/index.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jul 2016 00:52:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-insert-data-in-MySQL-using-ConvertJSONToSQL/m-p/120155#M34244</guid>
      <dc:creator>jpercivall</dc:creator>
      <dc:date>2016-07-09T00:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to insert data in MySQL using ConvertJSONToSQL processor through NiFi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-insert-data-in-MySQL-using-ConvertJSONToSQL/m-p/120156#M34245</link>
      <description>&lt;P&gt;As suggested by &lt;A href="https://community.hortonworks.com/users/466/jgeorge.html"&gt;@Jobin George&lt;/A&gt; , I have added PutSQL processor and it inserted only one record. However i have 100 records are coming from ExecuteSql processor( &lt;STRONG&gt;contains select query:&lt;/STRONG&gt; &lt;EM&gt;select * from table_name&lt;/EM&gt;) and want to insert 100 records. Please help me if any configuration required for this requirement.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2016 13:33:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-insert-data-in-MySQL-using-ConvertJSONToSQL/m-p/120156#M34245</guid>
      <dc:creator>java_etl_bigdat</dc:creator>
      <dc:date>2016-07-11T13:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to insert data in MySQL using ConvertJSONToSQL processor through NiFi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-insert-data-in-MySQL-using-ConvertJSONToSQL/m-p/120157#M34246</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/11710/javaetlbigdata.html" nodeid="11710" target="_blank"&gt;@Prasanta Sahoo&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Can you try "ConvertAvroToJSON" processor with below configuration: &lt;/P&gt;&lt;P&gt;For "JSON container options" Instead of "none"  try "array"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5674-screen-shot-2016-07-10-at-115507-pm.png" style="width: 1582px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22898iA0799ED2EF6010C4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="5674-screen-shot-2016-07-10-at-115507-pm.png" alt="5674-screen-shot-2016-07-10-at-115507-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;That determines how the stream flows as an array or single object.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jobin&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 10:35:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-insert-data-in-MySQL-using-ConvertJSONToSQL/m-p/120157#M34246</guid>
      <dc:creator>jgeorge</dc:creator>
      <dc:date>2019-08-19T10:35:57Z</dc:date>
    </item>
  </channel>
</rss>

