title: Pig: loading a data file using an external schema file
body: <p>I have a data file and a corresponding schema file stored in separate locations.
  I would like to load the data using the schema in the schema-file. I tried using</p>
  
  <pre><code>A= LOAD '&lt;file path&gt;' USING PigStorage('\u0001') as '&lt;schema-file path&gt;' 
  </code></pre>
  
  <p>but get an error.</p>
  
  <p>What is the syntax for correctly loading the file?</p>
  
  <p>The schema file format is something like:</p>
  
  <pre><code>data1 - complex - - - - format - -
  data1 event_type - - - - - long - "ends '\001'"
  data1 event_id - - - - - varchar(50) - "ends '\001'"
  data1 name_format - - - - - varchar(10) - "ends newline"
  </code></pre>