gresockj commented on a change in pull request #5068:
URL: https://github.com/apache/nifi/pull/5068#discussion_r637389819
##########
File path: nifi-toolkit/nifi-toolkit-assembly/docker/Dockerfile
##########
@@ -43,7 +43,7 @@ RUN chown -R nifi:nifi ${NIFI_TOOLKIT_BASE_DIR}
USER nifi
# Default port for TLS Toolkit CA Server
-EXPOSE 8443
+EXPOSE 9443
Review comment:
The toolkit guide adoc also needs to be updated for 9443.
##########
File path: nifi-docs/src/main/asciidoc/administration-guide.adoc
##########
@@ -84,15 +84,14 @@ The following table lists the default ports used by NiFi
and the corresponding p
[options="header,footer"]
|==================================================================================================================================================
| Function | Property |
Default Value
-|HTTP Port | `nifi.web.http.port` |
`8080`
-|HTTPS Port* | `nifi.web.https.port` |
`9443`
+|HTTPS Port | `nifi.web.https.port` |
`8443`
|Remote Input Socket Port* | `nifi.remote.input.socket.port` |
`10443`
|Cluster Node Protocol Port* | `nifi.cluster.node.protocol.port` |
`11443`
|Cluster Node Load Balancing Port | `nifi.cluster.node.load.balance.port` |
`6342`
|Web HTTP Forwarding Port | `nifi.web.http.port.forwarding` |
_none_
|==================================================================================================================================================
-NOTE: The ports marked with an asterisk (*) have property values that are
blank by default in _nifi.properties_. The values shown in the table are the
default values for these ports when <<toolkit-guide.adoc#tls_toolkit,TLS
Toolkit>> is used to generate _nifi.properties_ for a secured NiFi instance.
The default Certificate Authority Port used by
<<toolkit-guide.adoc#tls_toolkit,TLS Toolkit>> is `8443`.
+NOTE: The ports marked with an asterisk (*) have property values that are
blank by default in _nifi.properties_. The values shown in the table are the
default values for these ports when <<toolkit-guide.adoc#tls_toolkit,TLS
Toolkit>> is used to generate _nifi.properties_ for a secured NiFi instance.
The default Certificate Authority Port used by
<<toolkit-guide.adoc#tls_toolkit,TLS Toolkit>> is `9443`.
=== Embedded ZooKeeper
Review comment:
I noticed this line in the admin guide, which I think is no longer
correct:
The nifi.security.user.login.identity.provider property indicates which of
the configured Login Identity Provider should be used. By default, this
property is not configured meaning that username/password must be explicitly
enabled.
##########
File path: README.md
##########
@@ -65,67 +65,108 @@ Apache NiFi was made for dataflow. It supports highly
configurable directed grap
## Getting Started
-- Read through the [quickstart guide for
development](http://nifi.apache.org/quickstart.html).
- It will include information on getting a local copy of the source, give
pointers on issue
- tracking, and provide some warnings about common problems with development
environments.
-- For a more comprehensive guide to development and information about
contributing to the project
- read through the [NiFi Developer's
Guide](http://nifi.apache.org/developer-guide.html).
+Read through the [quickstart guide for
development](http://nifi.apache.org/quickstart.html).
+It will include information on getting a local copy of the source, give
pointers on issue
+tracking, and provide some warnings about common problems with development
environments.
-To build:
-- Execute `mvn clean install` or for parallel build execute `mvn -T 2.0C clean
install`. On a
- modest development laptop that is a couple of years old, the latter build
takes a bit under ten
- minutes. After a large amount of output you should eventually see a success
message.
-
- laptop:nifi myuser$ mvn -T 2.0C clean install
- [INFO] Scanning for projects...
- [INFO] Inspecting build with total of 115 modules...
- ...tens of thousands of lines elided...
- [INFO]
------------------------------------------------------------------------
- [INFO] BUILD SUCCESS
- [INFO]
------------------------------------------------------------------------
- [INFO] Total time: 09:24 min (Wall Clock)
- [INFO] Finished at: 2015-04-30T00:30:36-05:00
- [INFO] Final Memory: 173M/1359M
- [INFO]
------------------------------------------------------------------------
-- Execute `mvn clean install -DskipTests` to compile tests, but skip running
them.
-
-To deploy:
-- Change directory to 'nifi-assembly'. In the target directory, there should
be a build of nifi.
-
- laptop:nifi myuser$ cd nifi-assembly
- laptop:nifi-assembly myuser$ ls -lhd target/nifi*
- drwxr-xr-x 3 myuser mygroup 102B Apr 30 00:29
target/nifi-1.0.0-SNAPSHOT-bin
- -rw-r--r-- 1 myuser mygroup 144M Apr 30 00:30
target/nifi-1.0.0-SNAPSHOT-bin.tar.gz
- -rw-r--r-- 1 myuser mygroup 144M Apr 30 00:30
target/nifi-1.0.0-SNAPSHOT-bin.zip
+For a more comprehensive guide to development and information about
contributing to the project
+read through the [NiFi Developer's
Guide](http://nifi.apache.org/developer-guide.html).
-- For testing ongoing development you could use the already unpacked build
present in the directory
- named "nifi-*version*-bin", where *version* is the current project version.
To deploy in another
- location make use of either the tarball or zipfile and unpack them wherever
you like. The
- distribution will be within a common parent directory named for the version.
+### Building
- laptop:nifi-assembly myuser$ mkdir ~/example-nifi-deploy
- laptop:nifi-assembly myuser$ tar xzf target/nifi-*-bin.tar.gz -C
~/example-nifi-deploy
- laptop:nifi-assembly myuser$ ls -lh ~/example-nifi-deploy/
- total 0
- drwxr-xr-x 10 myuser mygroup 340B Apr 30 01:06 nifi-1.0.0-SNAPSHOT
+Run `mvn clean install` or for parallel build execute `mvn -T 2.0C clean
install`.
-To run NiFi:
-- Change directory to the location where you installed NiFi and run it.
+The parallel build should take around fifteen minutes on modern hardware.
- laptop:~ myuser$ cd ~/example-nifi-deploy/nifi-*
- laptop:nifi-1.0.0-SNAPSHOT myuser$ ./bin/nifi.sh start
- Issuing `bin/nifi.sh start` executes the `nifi.sh` script that starts NiFi
in the background and then exits. If you want `nifi.sh` to wait for NiFi to
finish scheduling all components before exiting, use the `--wait-for-init` flag
with an optional timeout specified in seconds.
+ laptop:nifi myuser$ mvn -T 2.0C clean install
+ [INFO] Scanning for projects...
+ [INFO] Inspecting build with total of 115 modules...
+ ...tens of thousands of lines elided...
+ [INFO]
------------------------------------------------------------------------
+ [INFO] BUILD SUCCESS
+ [INFO]
------------------------------------------------------------------------
+ [INFO] Total time: 09:24 min (Wall Clock)
+ [INFO] Finished at: 2015-04-30T00:30:36-05:00
+ [INFO] Final Memory: 173M/1359M
+ [INFO]
------------------------------------------------------------------------
- laptop:nifi-1.0.0-SNAPSHOT myuser$ ./bin/nifi.sh start --wait-for-init
120
-- Direct your browser to http://localhost:8080/nifi/ and you should see a
screen like this screenshot:
- 
+Run `mvn clean install -DskipTests` to skip unit test execution.
-- For help building your first data flow see the [NiFi User
Guide](http://nifi.apache.org/docs/nifi-docs/html/user-guide.html)
+### Deploying
-- If you are testing ongoing development, you will likely want to stop your
instance.
+Change directories to `nifi-assembly`. The `target` directory contains binary
archives.
+
+ laptop:nifi myuser$ cd nifi-assembly
+ laptop:nifi-assembly myuser$ ls -lhd target/nifi*
+ drwxr-xr-x 3 myuser mygroup 102B Apr 30 00:29
target/nifi-1.0.0-SNAPSHOT-bin
+ -rw-r--r-- 1 myuser mygroup 144M Apr 30 00:30
target/nifi-1.0.0-SNAPSHOT-bin.tar.gz
+ -rw-r--r-- 1 myuser mygroup 144M Apr 30 00:30
target/nifi-1.0.0-SNAPSHOT-bin.zip
+
+Copy the `nifi-VERSION-bin.tar.gz` or `nifi-VERSION-bin.zip` to a separate
deployment directory.
+Extracting the distribution will create a new directory named for the version.
+
+ laptop:nifi-assembly myuser$ mkdir ~/example-nifi-deploy
+ laptop:nifi-assembly myuser$ tar xzf target/nifi-*-bin.tar.gz -C
~/example-nifi-deploy
+ laptop:nifi-assembly myuser$ ls -lh ~/example-nifi-deploy/
+ total 0
+ drwxr-xr-x 10 myuser mygroup 340B Apr 30 01:06 nifi-1.0.0-SNAPSHOT
+
+### Starting
+
+Change directories to the deployment location and run the following command to
start NiFi.
+
+ laptop:~ myuser$ cd ~/example-nifi-deploy/nifi-*
+ laptop:nifi-1.0.0-SNAPSHOT myuser$ ./bin/nifi.sh start
+
+Running `bin/nifi.sh start` starts NiFi in the background and exits. Use
`--wait-for-init` with an optional timeout in
+seconds to wait for a complete startup before exiting.
+
+ laptop:nifi-1.0.0-SNAPSHOT myuser$ ./bin/nifi.sh start --wait-for-init 120
+
+### Authenticating
+
+The default configuration generates a random username and password on startup.
NiFi writes the generated credentials
+to the application log located in `logs/nifi-app.log` under the NiFi
installation directory.
+
+The following command can be used to find the generated credentials on
operating systems with `grep` installed:
+
+ laptop:nifi-1.0.0-SNAPSHOT myuser$ grep Generated logs/nifi-app*log
+
+NiFi logs the generated credentials as follows:
+
+ Generated Username [USERNAME]
+ Generated Password [PASSWORD]
+
+The `USERNAME` will be a random UUID composed of 36 characters. The `PASSWORD`
will be a random string composed of
+32 characters. The generated credentials will be stored in
`conf/login-identity-providers.xml` with the password stored
+using bcrypt hashing. Record these credentials in a secure location for access
to NiFi.
Review comment:
Do you want to put a note about the set-single-user-credentials 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:
[email protected]