Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 11-16-2016 01:43 AM
getting syntax error near unpected token 'newline' 'JAVAHOME = /opt/java/jdk1.8.0_101 nearl Line 82 in nifi.sh
Created 11-16-2016 03:23 AM
@Prem Kripalani That is weird. I'm looking at code for nifi 1.0.0 and line 82 does not have JAVAHOME anywhere near it. In fact, I don't see JAVAHOME anywhere. Typically that variable has an underscore "_" like JAVA_HOME. The error message "syntax error near unexpected token `newline'" is associated with an invalid redirect ">" with a newline after it. Can you find the file nifi.sh and look around line 82 to see if you see anything about JAVAHOME or if you see a redirect with no filename after it? This could be an empty variable after the ">" as well.
In any case, it may be easier to reinstall Nifi than to track it down.
Created 11-16-2016 01:44 AM
Created 11-16-2016 02:33 AM
What version of are you using?
Created 11-16-2016 02:59 AM
latest version HDP 2.5 nifi HDF 2.0.1.0
Created 11-16-2016 03:23 AM
@Prem Kripalani That is weird. I'm looking at code for nifi 1.0.0 and line 82 does not have JAVAHOME anywhere near it. In fact, I don't see JAVAHOME anywhere. Typically that variable has an underscore "_" like JAVA_HOME. The error message "syntax error near unexpected token `newline'" is associated with an invalid redirect ">" with a newline after it. Can you find the file nifi.sh and look around line 82 to see if you see anything about JAVAHOME or if you see a redirect with no filename after it? This could be an empty variable after the ">" as well.
In any case, it may be easier to reinstall Nifi than to track it down.
Created 11-16-2016 03:31 AM
thanks a lot for your quick reply,
as you suggested, i have reinstalled nifi and Magically (**as always happens with HDP 2.5) its working, only took me six hours to work it out,
i have installed nifi in stand alone windows 10 environment, to test and it worked fine
than restarted computer few times and it is working now
thanks a lot
Created 11-16-2016 02:12 PM
@Prem Kripalani I'm glad yo got it worked out. Sorry to hear that it was such a pain.