dbkegley commented on a change in pull request #3651: NIFI-6539 Nifi stateless
init from flow xml
URL: https://github.com/apache/nifi/pull/3651#discussion_r314433073
##########
File path:
nifi-stateless/nifi-stateless-core/src/main/java/org/apache/nifi/stateless/runtimes/Program.java
##########
@@ -154,23 +161,27 @@ private static void runLocal(final String[] args, final
ClassLoader systemClassL
private static void printUsage() {
System.out.println("Usage:");
- System.out.println(" " + RUN_FROM_REGISTRY + " [Once|Continuous]
--json <JSON>");
+ System.out.println(" 1) " + RUN_FROM_REGISTRY + " [Once|Continuous]
--json <JSON>");
System.out.println(" " + RUN_FROM_REGISTRY + " [Once|Continuous]
--file <File Name>");
System.out.println();
- System.out.println(" " + RUN_YARN_SERVICE_FROM_REGISTRY + "
<YARN RM URL> <Docker Image Name> <Service Name> <# of Containers> --json
<JSON>");
+ System.out.println(" 2) " + RUN_FROM_FLOW_XML + " [Once|Continuous]
--json <JSON>");
+ System.out.println(" " + RUN_FROM_FLOW_XML + " [Once|Continuous]
--file <File Name>");
+ System.out.println();
+ System.out.println(" 3) " + RUN_YARN_SERVICE_FROM_REGISTRY + "
<YARN RM URL> <Docker Image Name> <Service Name> <# of Containers> --json
<JSON>");
System.out.println(" " + RUN_YARN_SERVICE_FROM_REGISTRY + "
<YARN RM URL> <Docker Image Name> <Service Name> <# of Containers> --file
<File Name>");
System.out.println();
- System.out.println(" 3) " + RUN_OPENWHISK_ACTION_SERVER + "
<Port>");
+ System.out.println(" 4) " + RUN_OPENWHISK_ACTION_SERVER + "
<Port>");
System.out.println();
System.out.println("Examples:");
System.out.println(" 1) " + RUN_FROM_REGISTRY + " Once --json
\"{\\\"registryUrl\\\":\\\"http://172.26.198.107:61080\\\",\\\"bucketId\\\":\\\"5eec8794-01b3-4cd7-8536-0167c8b4ce8c\\\",\\\"flowId\\\":
\\\"c5fa1d4f-b453-4bf5-8ff3-352352c418f3\\\"}\"");
- System.out.println(" 2) " + RUN_YARN_SERVICE_FROM_REGISTRY + "
http://127.0.0.1:8088 nifi-stateless:latest kafka-to-solr 3 --file
kafka-to-solr.json");
- System.out.println(" 3) " + RUN_OPENWHISK_ACTION_SERVER + " 8080");
+ System.out.println(" 2) " + RUN_FROM_FLOW_XML + " Once --file
/opt/nifi/nifi-stateless-configs/flow-abc.json");
Review comment:
updated
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services