Wed Aug 15, 2018 4:32 pm
Login Register Lost Password? Contact Us


Format of file parts of XML logical file.

Questions or comments related to Cloud Computing and the HPCC Systems Instant Cloud for AWS

Tue Sep 09, 2014 8:05 pm Change Time Zone

I'm storing a XML file on S3 and want to break the file into file parts that look exactly like those file parts created when one does a spray. I believe, I know all the steps to do this EXCEPT the format of the content of the file parts files.

Can someone tell me the format of an file parts of an XML file that is sprayed?
tlhumphrey2
 
Posts: 250
Joined: Mon May 07, 2012 6:23 pm

Wed Sep 10, 2014 1:48 pm Change Time Zone

Tim,

When you spray a "well-formed" XML file, you end up with a "well-formed" XML file as each of its component parts of the HPCC logical file. For eaxmple, spraying this file to my 3-node training cluster:
Code: Select all
<?xml version="1.0" encoding="utf-8" ?>
<Dataset>
<area><code>201</code><description>PA Pennsylvania</description></area>
<area><code>202</code><description>OH Ohio</description></area>
<area><code>203</code><description>IL Illinois</description></area>
</Dataset>

will result in something like these files:
Node 1
Code: Select all
<?xml version="1.0" encoding="utf-8" ?>
<Dataset>
<area><code>201</code><description>PA Pennsylvania</description></area>
</Dataset>
Node 2
Code: Select all
<?xml version="1.0" encoding="utf-8" ?>
<Dataset>
<area><code>202</code><description>OH Ohio</description></area>
</Dataset>
Node 3
Code: Select all
<?xml version="1.0" encoding="utf-8" ?>
<Dataset>
<area><code>203</code><description>IL Illinois</description></area>
</Dataset>

Or possibly like these (depending on exactly how spray decides to split the data):
Node 1
Code: Select all
<?xml version="1.0" encoding="utf-8" ?>
<Dataset>
<area><code>201</code><description>PA Pennsylvania</description></area>
<area><code>202</code><description>OH Ohio</description></area>
</Dataset>
Node 2
Code: Select all
<?xml version="1.0" encoding="utf-8" ?>
<Dataset>
<area><code>203</code><description>IL Illinois</description></area>
</Dataset>
Node 3
Code: Select all
<?xml version="1.0" encoding="utf-8" ?>
<Dataset>
</Dataset>

HTH,

Richard
rtaylor
Community Advisory Board Member
Community Advisory Board Member
 
Posts: 1368
Joined: Wed Oct 26, 2011 7:40 pm


Return to Cloud

Who is online

Users browsing this forum: No registered users and 1 guest

cron