Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

nifi doesnt start

avatar
New Member

getting syntax error near unpected token 'newline' 'JAVAHOME = /opt/java/jdk1.8.0_101 nearl Line 82 in nifi.sh

1 ACCEPTED SOLUTION

avatar
Master Collaborator

@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.

View solution in original post

6 REPLIES 6

avatar
New Member

avatar
Master Collaborator

What version of are you using?

avatar
New Member

latest version HDP 2.5 nifi HDF 2.0.1.0

avatar
Master Collaborator

@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.

avatar
New Member

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

avatar
Master Collaborator

@Prem Kripalani I'm glad yo got it worked out. Sorry to hear that it was such a pain.