nifi-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [nifi] mcgilman commented on a change in pull request #3795: NIFI-6703: Add Stateless NiFi to CLI
Date Thu, 17 Oct 2019 02:07:24 GMT
mcgilman commented on a change in pull request #3795: NIFI-6703: Add Stateless NiFi to CLI
URL: https://github.com/apache/nifi/pull/3795#discussion_r335782382
 
 

 ##########
 File path: nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-stateless/README.md
 ##########
 @@ -38,19 +41,19 @@ Where the arguments dictate the runtime to use:
 
 ### Examples:
 ```
-1) docker run --rm -it nifi-stateless:1.10.0-SNAPSHOT-dockermaven \
-    RunFromRegistry Once --file /Users/nifi/nifi-stateless-configs/flow-abc.json
+1) ${NIFI_HOME}/bin/nifi.sh stateless RunFromRegistry Once --file /Users/nifi/nifi-stateless-configs/flow-abc.json
 2) docker run --rm -it nifi-stateless:1.10.0-SNAPSHOT-dockermaven \
+    RunFromRegistry Once --file /Users/nifi/nifi-stateless-configs/flow-abc.json
+3) docker run --rm -it nifi-stateless:1.10.0-SNAPSHOT-dockermaven \
 
 Review comment:
   When I attempt to run like this I receive the following error:
   
   > $ docker run --rm -it apache/nifi-stateless:1.10.0-SNAPSHOT-dockermaven RunFromRegistry
Once --file ~/flow.json
   > Exception in thread "main" java.lang.reflect.InvocationTargetException
   > 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   > 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   > 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   > 	at java.lang.reflect.Method.invoke(Method.java:498)
   > 	at org.apache.nifi.bootstrap.RunStatelessNiFi.main(RunStatelessNiFi.java:69)
   > Caused by: java.lang.reflect.InvocationTargetException
   > 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   > 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   > 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   > 	at java.lang.reflect.Method.invoke(Method.java:498)
   > 	at org.apache.nifi.StatelessNiFi.main(StatelessNiFi.java:103)
   > 	... 5 more
   > Caused by: java.nio.file.NoSuchFileException: /Users/mgilman/flow.json
   
   Do I need to do anything for the docker image to be able to access my flow.json? If so,
we should probably document it here.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message