<?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: how to convert json blueprint file to csv file in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-convert-json-blueprint-file-to-csv-file/m-p/219097#M66643</link>
    <description>&lt;P&gt;yes , all I need is to know what is the config type for parameter ( so in the json file we have parameters ) but what I need to know by API is the config type for the parameter please help if you can &lt;/P&gt;</description>
    <pubDate>Fri, 18 Aug 2017 00:45:54 GMT</pubDate>
    <dc:creator>mike_bronson7</dc:creator>
    <dc:date>2017-08-18T00:45:54Z</dc:date>
    <item>
      <title>how to convert json blueprint file to csv file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-convert-json-blueprint-file-to-csv-file/m-p/219094#M66640</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;How to convert blueprint json file to csv file?&lt;/P&gt;&lt;P&gt;My target is to convert all properties parameters to a csv
file from the amabri cluster&lt;/P&gt;&lt;P&gt;Example – generate blueprint json file from my ambari
cluster&lt;/P&gt;&lt;P&gt;       curl  -u admin:admin
-H "X-Requested-By: ambari" -X GET &lt;A href="http://10.23.4.122:8080/api/v1/clusters/HDP26?format=blueprint" target="_blank"&gt;http://10.23.4.122:8080/api/v1/clusters/HDP26?format=blueprint&lt;/A&gt;
-o /tmp/HDP01_blueprint.json&lt;/P&gt;&lt;P&gt;example of expected results: ( all parameters from all
config types should be in the csv file )&lt;/P&gt;&lt;P&gt;  autopurge.purgeInterval,512&lt;/P&gt;&lt;P&gt;  dataDir,/hadoop/zookeeper&lt;/P&gt;&lt;P&gt;  autopurge.snapRetainCount,10&lt;/P&gt;&lt;P&gt;  clientPort,2181&lt;/P&gt;&lt;P&gt;  initLimit,11&lt;/P&gt;&lt;P&gt;  tickTime,2000&lt;/P&gt;&lt;P&gt;  syncLimit,5&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 15:00:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-convert-json-blueprint-file-to-csv-file/m-p/219094#M66640</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-08-15T15:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert json blueprint file to csv file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-convert-json-blueprint-file-to-csv-file/m-p/219095#M66641</link>
      <description>&lt;P&gt;What is your purpose in converting the JSON to a CSV? Perhaps we can find a better solution for you depending on what you're trying to accomplish.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 21:30:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-convert-json-blueprint-file-to-csv-file/m-p/219095#M66641</guid>
      <dc:creator>anarasimham</dc:creator>
      <dc:date>2017-08-16T21:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert json blueprint file to csv file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-convert-json-blueprint-file-to-csv-file/m-p/219096#M66642</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@uri ben-ari&lt;/A&gt; &lt;/P&gt;&lt;P&gt;You can probably use a tool like jq to achieve this through a shell script:&lt;/P&gt;&lt;P&gt;&lt;A href="https://stedolan.github.io/jq/" target="_blank"&gt;https://stedolan.github.io/jq/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As to how to use jq, there is available literature on forums such as stackoverflow:&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/1955505/parsing-json-with-unix-tools" target="_blank"&gt;https://stackoverflow.com/questions/1955505/parsing-json-with-unix-tools&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 22:13:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-convert-json-blueprint-file-to-csv-file/m-p/219096#M66642</guid>
      <dc:creator>zhoussen</dc:creator>
      <dc:date>2017-08-16T22:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert json blueprint file to csv file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-convert-json-blueprint-file-to-csv-file/m-p/219097#M66643</link>
      <description>&lt;P&gt;yes , all I need is to know what is the config type for parameter ( so in the json file we have parameters ) but what I need to know by API is the config type for the parameter please help if you can &lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 00:45:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-convert-json-blueprint-file-to-csv-file/m-p/219097#M66643</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-08-18T00:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert json blueprint file to csv file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-convert-json-blueprint-file-to-csv-file/m-p/219098#M66644</link>
      <description>&lt;P&gt;Could you give me an example?&lt;/P&gt;&lt;P&gt;It sounds like you just want to be able to read the values for a property inside of the JSON file - could you explain why specifically you need it in a CSV format? For nested data like this it is usually better to have it in a JSON format.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 02:10:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-convert-json-blueprint-file-to-csv-file/m-p/219098#M66644</guid>
      <dc:creator>anarasimham</dc:creator>
      <dc:date>2017-08-18T02:10:59Z</dc:date>
    </item>
  </channel>
</rss>

