bbende / nifi

Mirror of Apache NiFi
Apache License 2.0
1 stars 1 forks source link

Failed to import the Apache Wiki's 'Simple Http Get' example #45

Closed aperepel closed 6 years ago

aperepel commented 6 years ago

Maybe there's a problem with the outdated template, but in any case error handling can be improved. Downloaded the xml template, imported into a nifi instance, started version control. Exported into json via cli (public URL below).

#> demo quick-import -i https://gist.githubusercontent.com/aperepel/fcc084e251205f4658863686e1fd4615/raw/810e9cb4b3cbad4561a860c5f71fafa1a5ae7c28/example_http_get.json

Found existing bucket...

Created new flow...

Imported flow version...

Found existing registry client...

ERROR: Error executing command 'quick-import' : null

Imports a flow from a file, or a public URL, into a pre-defined bucket named 'QUICK-IMPORT'. This command will create the bucket if it doesn't exist, and will
create a new flow for each execution. The flow will then be imported to the given NiFi instance.

usage: quick-import
 -i,--input <arg>                     A local file to read as input contents, or a public URL to fetch
 -nifiProps,--nifiProps <arg>         A properties file to load for NiFi config
 -nifiRegProps,--nifiRegProps <arg>   A properties file to load for NiFi Registry config
bbende commented 6 years ago

Hmm this just worked for me:

#> demo quick-import -i https://gist.githubusercontent.com/aperepel/fcc084e251205f4658863686e1fd4615/raw/810e9cb4b3cbad4561a860c5f71fafa1a5ae7c28/example_http_get.json
>

Found existing registry client...

Created new bucket...

Created new flow...

Imported flow version...

Imported process group to NiFi...

94ef10bc-0161-1000-fdda-731d6c9fe67a

I have a few small uncommitted changes, but nothing that should have fixed any problems.

For all commands you should be able to use -verbose to see the stacktrace, but since this is a new composite command I forgot to add that as an option so I'll go ahead and do that.

aperepel commented 6 years ago

PR here https://github.com/bbende/nifi/pull/48