<?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 Data with one value per line conversation to csv not working in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Data-with-one-value-per-line-conversation-to-csv-not-working/m-p/310987#M224398</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have data which has only one value per line, often not even a header. My goal is to conert the data to csv and format it afterwards (remove the comments and add some columns).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example base data:&lt;/P&gt;&lt;P&gt;#This is my base data#&lt;/P&gt;&lt;P&gt;#################&lt;/P&gt;&lt;P&gt;value1&lt;/P&gt;&lt;P&gt;value2&lt;/P&gt;&lt;P&gt;value3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example finished data:&lt;/P&gt;&lt;P&gt;value-description, source, timestamp&lt;/P&gt;&lt;P&gt;value1, source1, 984359345&lt;/P&gt;&lt;P&gt;value2, source1, 98249732&lt;/P&gt;&lt;P&gt;value3, source1, 984u9834&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now I'm able to achieve the output if I have an input which is already in a CSV format (comma separated). But if I try is with the example data above the output is the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;header-descriptionvalue1value2value3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This happens after the ReplaceText processor which should delete blank lines. The source and timestamp column is not yet added. This is the config of the processor:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am glad about every response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Maurice&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Feb 2021 09:51:59 GMT</pubDate>
    <dc:creator>Mandrill</dc:creator>
    <dc:date>2021-02-04T09:51:59Z</dc:date>
    <item>
      <title>Data with one value per line conversation to csv not working</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Data-with-one-value-per-line-conversation-to-csv-not-working/m-p/310987#M224398</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have data which has only one value per line, often not even a header. My goal is to conert the data to csv and format it afterwards (remove the comments and add some columns).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example base data:&lt;/P&gt;&lt;P&gt;#This is my base data#&lt;/P&gt;&lt;P&gt;#################&lt;/P&gt;&lt;P&gt;value1&lt;/P&gt;&lt;P&gt;value2&lt;/P&gt;&lt;P&gt;value3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example finished data:&lt;/P&gt;&lt;P&gt;value-description, source, timestamp&lt;/P&gt;&lt;P&gt;value1, source1, 984359345&lt;/P&gt;&lt;P&gt;value2, source1, 98249732&lt;/P&gt;&lt;P&gt;value3, source1, 984u9834&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now I'm able to achieve the output if I have an input which is already in a CSV format (comma separated). But if I try is with the example data above the output is the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;header-descriptionvalue1value2value3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This happens after the ReplaceText processor which should delete blank lines. The source and timestamp column is not yet added. This is the config of the processor:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am glad about every response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Maurice&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 09:51:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Data-with-one-value-per-line-conversation-to-csv-not-working/m-p/310987#M224398</guid>
      <dc:creator>Mandrill</dc:creator>
      <dc:date>2021-02-04T09:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Data with one value per line conversation to csv not working</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Data-with-one-value-per-line-conversation-to-csv-not-working/m-p/311179#M224513</link>
      <description>&lt;P&gt;Solved. Ihad the settings in the csv writer wrong.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 18:57:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Data-with-one-value-per-line-conversation-to-csv-not-working/m-p/311179#M224513</guid>
      <dc:creator>Mandrill</dc:creator>
      <dc:date>2021-02-08T18:57:39Z</dc:date>
    </item>
  </channel>
</rss>

