Ian Maxon has uploaded this change for review. ( 
https://asterix-gerrit.ics.uci.edu/3356


Change subject: [NO ISSUE][DOC] Refresh and update text-example
......................................................................

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

Change-Id: Ie756e790994cd6d8dad69cce1bb728923cc0398c
---
M hyracks-fullstack/hyracks/hyracks-examples/text-example/textclient/pom.xml
M 
hyracks-fullstack/hyracks/hyracks-examples/text-example/textclient/src/main/assembly/binary-assembly.xml
A 
hyracks-fullstack/hyracks/hyracks-examples/text-example/textclient/src/main/conf/README
M 
hyracks-fullstack/hyracks/hyracks-examples/text-example/textserver/src/main/assembly/binary-assembly.xml
A 
hyracks-fullstack/hyracks/hyracks-examples/text-example/textserver/src/main/conf/README
A 
hyracks-fullstack/hyracks/hyracks-examples/text-example/textserver/src/main/conf/text.conf
6 files changed, 65 insertions(+), 0 deletions(-)



  git pull ssh://asterix-gerrit.ics.uci.edu:29418/asterixdb 
refs/changes/56/3356/1

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..cbf6fc7
--- /dev/null
+++ 
b/hyracks-fullstack/hyracks/hyracks-examples/text-example/textclient/src/main/conf/README
@@ -0,0 +1,9 @@
+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
+
+textclient -host localhost \
+ -infile-splits textserver-nc1:data/file1.txt \
+ -outfile-splits textserver-nc1:data/file1.txt.out \
+ -algo -hash
\ No newline at end of file
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..d77412d
--- /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/nc.conf
+
+To start the cluster controller. Once this process is running, execute:
+
+bin/hyracksnc -config-file conf/nc.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..e167e0b
--- /dev/null
+++ 
b/hyracks-fullstack/hyracks/hyracks-examples/text-example/textserver/src/main/conf/text.conf
@@ -0,0 +1,11 @@
+[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

--
To view, visit https://asterix-gerrit.ics.uci.edu/3356
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings

Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie756e790994cd6d8dad69cce1bb728923cc0398c
Gerrit-Change-Number: 3356
Gerrit-PatchSet: 1
Gerrit-Owner: Ian Maxon <[email protected]>

Reply via email to