nifi-config | Automatically deploy and configure Template on Nifi | Application Framework library
kandi X-RAY | nifi-config Summary
kandi X-RAY | nifi-config Summary
Automatically deploy and configure Template on Nifi
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Main entry point
- Find the DTO of the flow
- Update connection list
- Update the controllers
- Stops processor or port
- Set the state of port
- Set processor state
- Runs a runnable
- Extract processor DTO from processor
- Converts a connection entity to a Connection object
- Compares two connection objects
nifi-config Key Features
nifi-config Examples and Code Snippets
{
"processors": [
{
"name": "ExecuteSQL",
"config": {
"properties": {
"Database Connection Pooling Service": "85f67694-015d-1000-5071-8cd46e8b2e47",
"Max Wait Time": "5 seconds",
"dbf-normalize": "false",
"dbf-user-logica
java -jar nifi-deploy-config-1.1.15.jar \
-nifi http://ip-nifi-dev:8080/nifi-api \
-branch "root>my group>my subgroup" \
-conf /tmp/test2.json \
-mode extractConfig
java -jar nifi-deploy-config-1.1.15.jar \
-nifi http://ip-nifi-prod:
-timeout allows specifying the polling timeout in second (defaut 120 seconds); negative values indicate no timeout
-interval allows specifying the polling interval in second (default 2 seconds)
-password password
Community Discussions
Trending Discussions on nifi-config
QUESTION
I have started Apache NiFi in a container successfully with the command
...ANSWER
Answered 2020-Jun-05 at 17:55The Docker container doesn't expose all the settings you need to modify directly for this use case, so you have a few options (responding to your numbered points).
(General) It looks like you provided configurations for multiple context paths, but not the root path (/
). As stated in the documentation, there are many component context paths inside the NiFi application, so when putting it behind a proxy, the root path should be proxied.
- Correct, there is no editor in the base Docker image. You can build your own image based on this one (either with an editor or with custom properties/scripts to handle this scenario).
- The documentation you linked to is discussing granting permission to an external proxy to relay requests. You can add the identity of the proxy as a user in NiFi to grant it permissions through the UI. This is separate from identifying the proxy service to the NiFi application (the
nifi.properties
settings). There is no way to configure those two settings you listed through the UI. - The current Docker
start.sh
file lists the environment variables accepted by the Docker image at this time. To add more, please submit a PR or open a Jira requesting an improvement.
Koji Kawamura has provided example configuration and documentation for NiFi running behind a reverse proxy that you may be interested in.
QUESTION
I have written the nifi.properties
into a Kubernetes ConfigMap
. When I deploy NiFi (as a StatefulSet
) I want to have this nifi.properties
file to be used by the NiFi I just deployed. To do so I added a volume for the ConfigMap
and mounted it in the Container. The associated statefulset.yaml
looks like this:
ANSWER
Answered 2018-Aug-11 at 19:56There are two problems with the above setup:
- You have to specify the subpath to tell which item you mount from the configmap as a single file, see: https://github.com/kubernetes/kubernetes/issues/44815#issuecomment-297077509
- You cannot mount a configmap item as a readwrite volume by default on 1.9.6 and above, so the start script won't be able to replace properties in it, see: https://github.com/kubernetes/kubernetes/issues/62099#issuecomment-378809922
To workaround the second issue you can simply mount the configmap item as a separate file (nifi.properties.tmp) and copy it to the destination by wrapping the container entry point with a custom command.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install nifi-config
You can use nifi-config like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the nifi-config component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page