[maven-release-plugin] copy for tag uima-ducc-2.2.2
git-svn-id: https://svn.apache.org/repos/asf/uima/uima-ducc/tags/uima-ducc-2.2.2@1826744 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/RELEASE_NOTES.html b/RELEASE_NOTES.html
index 6e5117b..f19514a 100755
--- a/RELEASE_NOTES.html
+++ b/RELEASE_NOTES.html
@@ -77,16 +77,20 @@
confirm, please check memory.stat file in <cgroups base dir>/ducc/ folder. If swap accounting is
enabled there should be "swap" property defined. If it's missing, you need to add a kernel parameter
swapaccount=1. Details of how to do this can be found <a href="http://unix.stackexchange.com/questions/147158/how-to-enable-swap-accounting-for-memory-cgroup-in-archlinux">here</a>.
-
+<p>
Due to a bug in uima sdk, the uima AnalysisEngineProcessException cannot be serialized as a Java object. If your
analysis engine throws an exception in process(), the ducc framework will stringify it and wrap it in
java RuntimeException. If you have a custom error handler plugged in into a job driver you will not be
able to test for AnalysisEngineProcessException in a stack trace with a code like this:
if ( error instanceof AnalysisEngineProcessException ) ...
-
+</p>
+<p>
To use OS-based login with the WebServer while running DUCC with IBM java, the minimum JDK version is
Java 8 SR4 FP5 (8.0.4.5).
-
+</p>
+<p>
+Due to a bug in uima-as v.2.10.2 (see <a href="https://issues.apache.org/jira/browse/UIMA-5747">https://issues.apache.org/jira/browse/UIMA-5747</a>), job processes which use uima-as Jms Service Descriptor may fail with javax.jms.InvalidClientIDException. The fix for this is to use uima-as 2.9.0.
+</p>
</body>
</html>
diff --git a/src/main/assembly/bin.xml b/src/main/assembly/bin.xml
index a02e0d5..167360b 100644
--- a/src/main/assembly/bin.xml
+++ b/src/main/assembly/bin.xml
@@ -516,14 +516,6 @@
<outputDirectory>examples/simple</outputDirectory>
<fileMode>644</fileMode>
<directoryMode>755</directoryMode>
- <includes>
- <include>1.dd.job</include>
- <include>1.dd.sync.job</include>
- <include>1.job</include>
- <include>1-error.job</include>
- <include>1.inputs</include>
- <include>1.service</include>
- </includes>
</fileSet>
<fileSet>
diff --git a/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/launcher/CGroupsManager.java b/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/launcher/CGroupsManager.java
index a3c4d02..6348bbc 100644
--- a/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/launcher/CGroupsManager.java
+++ b/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/launcher/CGroupsManager.java
@@ -1189,7 +1189,7 @@
try {
ProcessBuilder pb = new ProcessBuilder("ps", "-Ao",
- "user:12,pid,ppid,args,stat", "--no-heading");
+ "user:32,pid,ppid,args,stat", "--no-heading");
pb.redirectErrorStream(true);
java.lang.Process proc = pb.start();
// spawn ps command and scrape the output
diff --git a/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/metrics/collectors/NodeMemInfoCollector.java b/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/metrics/collectors/NodeMemInfoCollector.java
index 7b42b0a..5f23d03 100644
--- a/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/metrics/collectors/NodeMemInfoCollector.java
+++ b/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/metrics/collectors/NodeMemInfoCollector.java
@@ -106,7 +106,7 @@
if ( Utils.isMac() ) {
pb = new ProcessBuilder("ps","-Ao","user=,pid=,uid=,rss=");
} else {
- pb = new ProcessBuilder("ps","-Ao","user:12,pid,uid,rss", "--no-heading");
+ pb = new ProcessBuilder("ps","-Ao","user:32,pid,uid,rss", "--no-heading");
}
pb.redirectErrorStream(true);
Process proc = pb.start();
diff --git a/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/metrics/collectors/NodeUsersCollector.java b/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/metrics/collectors/NodeUsersCollector.java
index 98da388..1d2be58 100644
--- a/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/metrics/collectors/NodeUsersCollector.java
+++ b/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/metrics/collectors/NodeUsersCollector.java
@@ -213,7 +213,7 @@
if ( Utils.isMac() ) {
pb = new ProcessBuilder("ps","-Ao","user=,pid=,ppid=,uid=,args=");
} else {
- pb = new ProcessBuilder("ps","-Ao","user,pid,ppid,uid,args", "--no-heading");
+ pb = new ProcessBuilder("ps","-Ao","user:32,pid,ppid,uid,args", "--no-heading");
}
pb.redirectErrorStream(true);
Process proc = pb.start();
diff --git a/uima-ducc-examples/src/main/java/org/apache/uima/ducc/test/randomsleep/FixedSleepAE.java b/uima-ducc-examples/src/main/java/org/apache/uima/ducc/test/randomsleep/FixedSleepAE.java
index de1468d..f332d40 100644
--- a/uima-ducc-examples/src/main/java/org/apache/uima/ducc/test/randomsleep/FixedSleepAE.java
+++ b/uima-ducc-examples/src/main/java/org/apache/uima/ducc/test/randomsleep/FixedSleepAE.java
@@ -74,7 +74,6 @@
System.out.println("Is this nuts or what, no logger!");
}
-
if ( initComplete ) {
logger.log(Level.INFO, "Init bypassed in PID:TID " + pid + ":" + tid + ", already completed. ");
return;
@@ -88,13 +87,13 @@
File workingdir = new File(System.getProperty("user.dir"));
File[] files = workingdir.listFiles();
if ( logger != null )
- logger.log(Level.INFO, "Working directory is " + workingdir.toString());
- if ( files != null ) {
+ logger.log(Level.INFO, "Working directory " + workingdir.toString() + " has " + files.length + " files.");
+/* if ( files != null ) {
for ( File f : files ) {
if ( logger != null )
logger.log(Level.INFO, "File: " + f.toString());
}
- }
+ }*/
}
long sleep;
diff --git a/uima-ducc-examples/src/main/resources/sleepjobs/1.jms.job b/uima-ducc-examples/src/main/resources/sleepjobs/1.jms.job
new file mode 100644
index 0000000..e8a6b4a
--- /dev/null
+++ b/uima-ducc-examples/src/main/resources/sleepjobs/1.jms.job
@@ -0,0 +1,38 @@
+#
+# 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.
+#
+description Test JMS job 1
+
+driver_descriptor_CR org.apache.uima.ducc.test.randomsleep.FixedSleepCR
+driver_descriptor_CR_overrides jobfile=${DUCC_HOME}/examples/simple/1.inputs compression=10 error_rate=0.0
+driver_jvm_args -Xmx500M
+
+process_descriptor_AE org.apache.uima.ducc.test.service.UimaAsRemote
+process_memory_size 2
+classpath ${DUCC_HOME}/lib/uima-ducc/examples/*:\
+ ${DUCC_HOME}/apache-uima/lib/*:\
+ ${DUCC_HOME}/apache-uima/apache-activemq/lib/*:\
+ ${DUCC_HOME}/apache-uima/apache-activemq/lib/optional/*
+process_jvm_args -Xmx100M -DdefaultBrokerURL=${defaultBrokerURL}
+process_pipeline_count 2
+process_per_item_time_max 5
+process_deployments_max 999
+
+scheduling_class normal
+
+
diff --git a/uima-ducc-examples/src/main/resources/sleepjobs/FixedSleep.service b/uima-ducc-examples/src/main/resources/sleepjobs/FixedSleep.service
new file mode 100644
index 0000000..3dba8d8
--- /dev/null
+++ b/uima-ducc-examples/src/main/resources/sleepjobs/FixedSleep.service
@@ -0,0 +1,31 @@
+#
+# 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.
+#
+
+service_request_endpoint UIMA-AS:FixedSleepAE:${defaultBrokerURL}
+description Test service 1
+
+process_DD ${DUCC_HOME}/examples/simple/resources/service/Deploy_RandomSleepAE.xml
+
+classpath ${DUCC_HOME}/lib/uima-ducc/examples/*:${DUCC_HOME}/apache-uima/lib/*:${DUCC_HOME}/apache-uima/apache-activemq/lib/*:${DUCC_HOME}/apache-uima/apache-activemq/lib/optional/*
+
+process_jvm_args -Xmx100M -DdefaultBrokerURL=${defaultBrokerURL}
+process_memory_size 2
+environment AE_INIT_TIME=5 AE_INIT_RANGE=5 INIT_ERROR=0 LD_LIBRARY_PATH=/yet/a/nother/dumb/path
+instances 1
+autostart true