You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by 林家銘 <ro...@gmail.com> on 2015/10/27 15:29:23 UTC

Can't run from "nifi-ide-integration"

Hi

I am just checkout the nifi and want to try "nifi-ide-integration".
I have followed the instruction on the "nifi-ide-integration" github
README page.
Here is my configure
1. configure a java application run...
2. At the Main tag, choose the Project to be "nifi-ide-integration"
3. At the Main tag, choose the Main class to be "org.apache.nifi.NiFi"
4. At the Arguments tag and Working Directory part, choose the option
"other" and select the Nifi root project from the Workspace...
5. At the Source tag, click the Add button, and select "Java Project"
to add all the nifi modules.
6. Run...

The error message is
18:52:12,463  INFO main nifi.NiFi:225 - Launching NiFi...
18:52:12,475 ERROR main nifi.NiFi:229 - Failure to launch NiFi due to
java.lang.RuntimeException: Requires a system property called
'nifi.properties.file.path' and this is not set or has no value
java.lang.RuntimeException: Requires a system property called
'nifi.properties.file.path' and this is not set or has no value
	at org.apache.nifi.util.NiFiProperties.getInstance(NiFiProperties.java:249)
	at org.apache.nifi.NiFi.main(NiFi.java:227)

Can anyone help me?

Re: Can't run from "nifi-ide-integration"

Posted by Mark Petronic <ma...@gmail.com>.
Oleg, per my previous email, it worked as advertised on my work setup.
I will play around again at home and start over from scratch just to
see what happens there and let you know. But, thank you very much for
your help.

Mark

On Tue, Oct 27, 2015 at 11:56 AM, Oleg Zhurakousky
<oz...@hortonworks.com> wrote:
> Mark
>
> Have you being able to figure out your issue? Based on this last report instructions seemed to work correctly. Want to make sure nothing is missing.
>
> Cheers
> Oleg
>
>
>> On Oct 27, 2015, at 11:19 AM, 林家銘 <ro...@gmail.com> wrote:
>>
>> Thank you very much
>> It works now!
>>
>> On 27/10/2015, Mark Petronic <ma...@gmail.com> wrote:
>>> I am just in the middle of this same issue. You need to add this to
>>> your VM arguments in the run configuration. Oleg is updating the
>>> README to cover this missing step :)
>>>
>>> -Dnifi.properties.file.path=/<path to nifi install>/conf/nifi.properties
>>>
>>> On Tue, Oct 27, 2015 at 10:29 AM, 林家銘 <ro...@gmail.com> wrote:
>>>> Hi
>>>>
>>>> I am just checkout the nifi and want to try "nifi-ide-integration".
>>>> I have followed the instruction on the "nifi-ide-integration" github
>>>> README page.
>>>> Here is my configure
>>>> 1. configure a java application run...
>>>> 2. At the Main tag, choose the Project to be "nifi-ide-integration"
>>>> 3. At the Main tag, choose the Main class to be "org.apache.nifi.NiFi"
>>>> 4. At the Arguments tag and Working Directory part, choose the option
>>>> "other" and select the Nifi root project from the Workspace...
>>>> 5. At the Source tag, click the Add button, and select "Java Project"
>>>> to add all the nifi modules.
>>>> 6. Run...
>>>>
>>>> The error message is
>>>> 18:52:12,463  INFO main nifi.NiFi:225 - Launching NiFi...
>>>> 18:52:12,475 ERROR main nifi.NiFi:229 - Failure to launch NiFi due to
>>>> java.lang.RuntimeException: Requires a system property called
>>>> 'nifi.properties.file.path' and this is not set or has no value
>>>> java.lang.RuntimeException: Requires a system property called
>>>> 'nifi.properties.file.path' and this is not set or has no value
>>>>        at
>>>> org.apache.nifi.util.NiFiProperties.getInstance(NiFiProperties.java:249)
>>>>        at org.apache.nifi.NiFi.main(NiFi.java:227)
>>>>
>>>> Can anyone help me?
>>>
>>
>

Re: Can't run from "nifi-ide-integration"

Posted by Oleg Zhurakousky <oz...@hortonworks.com>.
Mark

Have you being able to figure out your issue? Based on this last report instructions seemed to work correctly. Want to make sure nothing is missing.

Cheers
Oleg


> On Oct 27, 2015, at 11:19 AM, 林家銘 <ro...@gmail.com> wrote:
> 
> Thank you very much
> It works now!
> 
> On 27/10/2015, Mark Petronic <ma...@gmail.com> wrote:
>> I am just in the middle of this same issue. You need to add this to
>> your VM arguments in the run configuration. Oleg is updating the
>> README to cover this missing step :)
>> 
>> -Dnifi.properties.file.path=/<path to nifi install>/conf/nifi.properties
>> 
>> On Tue, Oct 27, 2015 at 10:29 AM, 林家銘 <ro...@gmail.com> wrote:
>>> Hi
>>> 
>>> I am just checkout the nifi and want to try "nifi-ide-integration".
>>> I have followed the instruction on the "nifi-ide-integration" github
>>> README page.
>>> Here is my configure
>>> 1. configure a java application run...
>>> 2. At the Main tag, choose the Project to be "nifi-ide-integration"
>>> 3. At the Main tag, choose the Main class to be "org.apache.nifi.NiFi"
>>> 4. At the Arguments tag and Working Directory part, choose the option
>>> "other" and select the Nifi root project from the Workspace...
>>> 5. At the Source tag, click the Add button, and select "Java Project"
>>> to add all the nifi modules.
>>> 6. Run...
>>> 
>>> The error message is
>>> 18:52:12,463  INFO main nifi.NiFi:225 - Launching NiFi...
>>> 18:52:12,475 ERROR main nifi.NiFi:229 - Failure to launch NiFi due to
>>> java.lang.RuntimeException: Requires a system property called
>>> 'nifi.properties.file.path' and this is not set or has no value
>>> java.lang.RuntimeException: Requires a system property called
>>> 'nifi.properties.file.path' and this is not set or has no value
>>>        at
>>> org.apache.nifi.util.NiFiProperties.getInstance(NiFiProperties.java:249)
>>>        at org.apache.nifi.NiFi.main(NiFi.java:227)
>>> 
>>> Can anyone help me?
>> 
> 


Re: Can't run from "nifi-ide-integration"

Posted by 林家銘 <ro...@gmail.com>.
Thank you very much
It works now!

On 27/10/2015, Mark Petronic <ma...@gmail.com> wrote:
> I am just in the middle of this same issue. You need to add this to
> your VM arguments in the run configuration. Oleg is updating the
> README to cover this missing step :)
>
>  -Dnifi.properties.file.path=/<path to nifi install>/conf/nifi.properties
>
> On Tue, Oct 27, 2015 at 10:29 AM, 林家銘 <ro...@gmail.com> wrote:
>> Hi
>>
>> I am just checkout the nifi and want to try "nifi-ide-integration".
>> I have followed the instruction on the "nifi-ide-integration" github
>> README page.
>> Here is my configure
>> 1. configure a java application run...
>> 2. At the Main tag, choose the Project to be "nifi-ide-integration"
>> 3. At the Main tag, choose the Main class to be "org.apache.nifi.NiFi"
>> 4. At the Arguments tag and Working Directory part, choose the option
>> "other" and select the Nifi root project from the Workspace...
>> 5. At the Source tag, click the Add button, and select "Java Project"
>> to add all the nifi modules.
>> 6. Run...
>>
>> The error message is
>> 18:52:12,463  INFO main nifi.NiFi:225 - Launching NiFi...
>> 18:52:12,475 ERROR main nifi.NiFi:229 - Failure to launch NiFi due to
>> java.lang.RuntimeException: Requires a system property called
>> 'nifi.properties.file.path' and this is not set or has no value
>> java.lang.RuntimeException: Requires a system property called
>> 'nifi.properties.file.path' and this is not set or has no value
>>         at
>> org.apache.nifi.util.NiFiProperties.getInstance(NiFiProperties.java:249)
>>         at org.apache.nifi.NiFi.main(NiFi.java:227)
>>
>> Can anyone help me?
>

Re: Can't run from "nifi-ide-integration"

Posted by Mark Petronic <ma...@gmail.com>.
I am just in the middle of this same issue. You need to add this to
your VM arguments in the run configuration. Oleg is updating the
README to cover this missing step :)

 -Dnifi.properties.file.path=/<path to nifi install>/conf/nifi.properties

On Tue, Oct 27, 2015 at 10:29 AM, 林家銘 <ro...@gmail.com> wrote:
> Hi
>
> I am just checkout the nifi and want to try "nifi-ide-integration".
> I have followed the instruction on the "nifi-ide-integration" github
> README page.
> Here is my configure
> 1. configure a java application run...
> 2. At the Main tag, choose the Project to be "nifi-ide-integration"
> 3. At the Main tag, choose the Main class to be "org.apache.nifi.NiFi"
> 4. At the Arguments tag and Working Directory part, choose the option
> "other" and select the Nifi root project from the Workspace...
> 5. At the Source tag, click the Add button, and select "Java Project"
> to add all the nifi modules.
> 6. Run...
>
> The error message is
> 18:52:12,463  INFO main nifi.NiFi:225 - Launching NiFi...
> 18:52:12,475 ERROR main nifi.NiFi:229 - Failure to launch NiFi due to
> java.lang.RuntimeException: Requires a system property called
> 'nifi.properties.file.path' and this is not set or has no value
> java.lang.RuntimeException: Requires a system property called
> 'nifi.properties.file.path' and this is not set or has no value
>         at org.apache.nifi.util.NiFiProperties.getInstance(NiFiProperties.java:249)
>         at org.apache.nifi.NiFi.main(NiFi.java:227)
>
> Can anyone help me?

Re: Can't run from "nifi-ide-integration"

Posted by Oleg Zhurakousky <oz...@hortonworks.com>.
Sorry there was a missed instruction, please read the updated one here - https://github.com/olegz/nifi/tree/NIFI-1074/nifi-external/nifi-ide-integration

Basically you need to specify argument in ‘VM Arguments’ tab,. Something like this: -Dnifi.properties.file.path=<NIFI_HOME>/conf/nifi.prpperties

NOTE: NIFI_HOME is NOT the root of your workspace. It is the root of binary distribution. This means that if you downloaded binary and unzipped it into a directory, that directory would be NIFI_HOME. If you have your own build, then it would be 'nifi-assembly/target/nifi-0.3.1-SNAPSHOT-bin/nifi-0.3.1-SNAPSHOT/‘

So when you say "4. At the Arguments tag and Working Directory part, choose the option"other" and select the Nifi root project from the Workspace…” that is not correct, it should point to the binary distribution of NoFi.

Oleg


On Oct 27, 2015, at 10:29 AM, 林家銘 <ro...@gmail.com>> wrote:

Hi

I am just checkout the nifi and want to try "nifi-ide-integration".
I have followed the instruction on the "nifi-ide-integration" github
README page.
Here is my configure
1. configure a java application run...
2. At the Main tag, choose the Project to be "nifi-ide-integration"
3. At the Main tag, choose the Main class to be "org.apache.nifi.NiFi"
4. At the Arguments tag and Working Directory part, choose the option
"other" and select the Nifi root project from the Workspace...
5. At the Source tag, click the Add button, and select "Java Project"
to add all the nifi modules.
6. Run...

The error message is
18:52:12,463  INFO main nifi.NiFi:225 - Launching NiFi...
18:52:12,475 ERROR main nifi.NiFi:229 - Failure to launch NiFi due to
java.lang.RuntimeException: Requires a system property called
'nifi.properties.file.path' and this is not set or has no value
java.lang.RuntimeException: Requires a system property called
'nifi.properties.file.path' and this is not set or has no value
at org.apache.nifi.util.NiFiProperties.getInstance(NiFiProperties.java:249)
at org.apache.nifi.NiFi.main(NiFi.java:227)

Can anyone help me?