nifi-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leslie Hartman <lpha...@nsa.gov>
Subject Re: Processor Question
Date Sun, 05 Jun 2016 08:40:51 GMT
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Matthew:<br>
    <br>
        The modifyBytes processor would be the best if it would allow
    one to<br>
    specify the bytes to keep. I could calculate the number of bytes to
    delete,<br>
    but when I try and place a variable in the End Offset it says it is
    not in the<br>
    &lt;Data Size&gt; &lt;Data Unit&gt; format.<br>
    <br>
        As for SegmentContent and SplitText I have tried both of these.
    The problem<br>
    is that it just takes the original file a splits it in to a bunch of
    little files. So if I wanted<br>
    say 256 Bytes of a 30 meg file, after running out of memory it would
    give me<br>
    125 Million 829 Thousand 119 Files to get rid of.<br>
    <br>
        For the 2nd case ReplaceText should work, I'm just having
    problems getting<br>
    the correct syntax. If someone could provide an example of the
    correct syntax<br>
    I would appreciate it.<br>
    <br>
        Thank You.<br>
    <br>
        Leslie Hartman<br>
    <br>
    <div class="moz-cite-prefix">Matthew Clarke wrote:<br>
    </div>
    <blockquote
cite="mid:CAC9dF2cBKuS4zhpfjAu2a=t+Y1VNL3iS0QU2Pye6MK0zNeB9Aw@mail.gmail.com"
      type="cite">
      <p dir="ltr">You may also want to look at using the modifyBytes
        processor for number 1.<br>
      </p>
      <div class="gmail_quote">On Jun 4, 2016 1:49 PM, "Thad Guidry"
        &lt;<a moz-do-not-send="true" href="mailto:thadguidry@gmail.com">thadguidry@gmail.com</a>&gt;
        wrote:<br type="attribution">
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div dir="ltr">
            <div class="gmail_default" style="font-size:small">For your
              1st case, you can use either SegmentContent by your 256
              bytes (or perhaps you can even use SplitText)</div>
            <div class="gmail_default"><a moz-do-not-send="true"
href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.SegmentContent/index.html"
                target="_blank">https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.SegmentContent/index.html</a><br>
            </div>
            <div class="gmail_default"><a moz-do-not-send="true"
href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.SplitText/index.html"
                target="_blank">https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.SplitText/index.html</a><br>
            </div>
            <div class="gmail_default"><br>
            </div>
            <div class="gmail_default" style="font-size:small">For your
              2nd case, you can use ReplaceText</div>
            <div class="gmail_default"><a moz-do-not-send="true"
href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.ReplaceText/index.html"
                target="_blank">https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.ReplaceText/index.html</a><br>
            </div>
            <div class="gmail_default"><br>
            </div>
            <div class="gmail_extra">
              <div>
                <div data-smartmail="gmail_signature">
                  <div dir="ltr">
                    <div>
                      <div dir="ltr">Thad
                        <div><a moz-do-not-send="true"
                            href="https://www.google.com/+ThadGuidry"
                            target="_blank">+ThadGuidry</a><br>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
              <br>
            </div>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <br>
  </body>
</html>

Mime
View raw message