[NO ISSUE][DOC] Refresh and update text-example

Change-Id: Ie756e790994cd6d8dad69cce1bb728923cc0398c
Reviewed-on: https://asterix-gerrit.ics.uci.edu/3356
Sonar-Qube: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Michael Blow <mblow@apache.org>
diff --git a/hyracks-fullstack/hyracks/hyracks-examples/text-example/textclient/pom.xml b/hyracks-fullstack/hyracks/hyracks-examples/text-example/textclient/pom.xml
index c00ffc1..4412fe0 100644
--- a/hyracks-fullstack/hyracks/hyracks-examples/text-example/textclient/pom.xml
+++ b/hyracks-fullstack/hyracks/hyracks-examples/text-example/textclient/pom.xml
@@ -100,6 +100,22 @@
           <skip>true</skip>
         </configuration>
       </plugin>
+      <plugin>
+        <artifactId>maven-assembly-plugin</artifactId>
+        <executions>
+          <execution>
+            <configuration>
+              <descriptors>
+                <descriptor>src/main/assembly/binary-assembly.xml</descriptor>
+              </descriptors>
+            </configuration>
+            <phase>package</phase>
+            <goals>
+              <goal>single</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
   </build>
 </project>
diff --git a/hyracks-fullstack/hyracks/hyracks-examples/text-example/textclient/src/main/assembly/binary-assembly.xml b/hyracks-fullstack/hyracks/hyracks-examples/text-example/textclient/src/main/assembly/binary-assembly.xml
index 3271f1d..f8abe31 100644
--- a/hyracks-fullstack/hyracks/hyracks-examples/text-example/textclient/src/main/assembly/binary-assembly.xml
+++ b/hyracks-fullstack/hyracks/hyracks-examples/text-example/textclient/src/main/assembly/binary-assembly.xml
@@ -49,5 +49,12 @@
         <include>NOTICE*</include>
       </includes>
     </fileSet>
+    <fileSet>
+      <directory>src/main/conf</directory>
+      <outputDirectory>.</outputDirectory>
+      <includes>
+        <include>README</include>
+      </includes>
+    </fileSet>
   </fileSets>
 </assembly>
diff --git a/hyracks-fullstack/hyracks/hyracks-examples/text-example/textclient/src/main/conf/README b/hyracks-fullstack/hyracks/hyracks-examples/text-example/textclient/src/main/conf/README
new file mode 100644
index 0000000..3af2693
--- /dev/null
+++ b/hyracks-fullstack/hyracks/hyracks-examples/text-example/textclient/src/main/conf/README
@@ -0,0 +1,10 @@
+This package holds a very simple Hyracks client program that counts the words in a supplied text file. A prerequisite
+is a running Hyracks cluster from the textserver example.
+
+In the bin directory of the unzipped textclient package, run
+
+        textclient -host localhost \
+         -infile-splits textserver-nc1:data/file1.txt \
+         -outfile-splits textserver-nc1:data/file1.txt.out \
+         -algo -hash
+
diff --git a/hyracks-fullstack/hyracks/hyracks-examples/text-example/textserver/src/main/assembly/binary-assembly.xml b/hyracks-fullstack/hyracks/hyracks-examples/text-example/textserver/src/main/assembly/binary-assembly.xml
index e89db9c..ac2e6f9 100644
--- a/hyracks-fullstack/hyracks/hyracks-examples/text-example/textserver/src/main/assembly/binary-assembly.xml
+++ b/hyracks-fullstack/hyracks/hyracks-examples/text-example/textserver/src/main/assembly/binary-assembly.xml
@@ -53,5 +53,17 @@
         <include>NOTICE*</include>
       </includes>
     </fileSet>
+    <fileSet>
+      <directory>src/main/conf</directory>
+      <outputDirectory>.</outputDirectory>
+      <includes>
+        <include>text.conf</include>
+        <include>README</include>
+      </includes>
+    </fileSet>
+    <fileSet>
+      <directory>data/</directory>
+      <outputDirectory>data/</outputDirectory>
+    </fileSet>
   </fileSets>
 </assembly>
diff --git a/hyracks-fullstack/hyracks/hyracks-examples/text-example/textserver/src/main/conf/README b/hyracks-fullstack/hyracks/hyracks-examples/text-example/textserver/src/main/conf/README
new file mode 100644
index 0000000..22cf5c5
--- /dev/null
+++ b/hyracks-fullstack/hyracks/hyracks-examples/text-example/textserver/src/main/conf/README
@@ -0,0 +1,10 @@
+This example sets up a very basic Hyracks cluster to be used for counting words in a file with the textclient example.
+To run, simply execute:
+
+        bin/hyrackscc -config-file conf/text.conf
+
+to start the cluster controller. Once this process is running, execute:
+
+        bin/hyracksnc -config-file conf/text.conf
+
+and you will have a Hyracks cluster running locally for the textclient to use.
\ No newline at end of file
diff --git a/hyracks-fullstack/hyracks/hyracks-examples/text-example/textserver/src/main/conf/text.conf b/hyracks-fullstack/hyracks/hyracks-examples/text-example/textserver/src/main/conf/text.conf
new file mode 100644
index 0000000..9a4f423
--- /dev/null
+++ b/hyracks-fullstack/hyracks/hyracks-examples/text-example/textserver/src/main/conf/text.conf
@@ -0,0 +1,28 @@
+; Licensed to the Apache Software Foundation (ASF) under one
+; or more contributor license agreements.  See the NOTICE file
+; distributed with this work for additional information
+; regarding copyright ownership.  The ASF licenses this file
+; to you under the Apache License, Version 2.0 (the
+; "License"); you may not use this file except in compliance
+; with the License.  You may obtain a copy of the License at
+;
+;   http://www.apache.org/licenses/LICENSE-2.0
+;
+; Unless required by applicable law or agreed to in writing,
+; software distributed under the License is distributed on an
+; "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+; KIND, either express or implied.  See the License for the
+; specific language governing permissions and limitations
+; under the License.
+
+[nc]
+address = 127.0.0.1
+cluster.address = 127.0.0.1
+cluster.port = 1099
+
+[cc]
+address = 127.0.0.1
+app.class = org.apache.hyracks.control.cc.BaseCCApplication
+
+[localnc]
+node.id = textserver-nc1