Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Not A Bug
-
None
-
None
-
None
-
Linux
Description
runhelloworld.sh failed with
-bash-4.2$ ./runhelloworld.sh ./runhelloworld.sh: line 2: $'\r': command not found Error: Could not find or load main class quarks.samples.topology.HelloWorld
Contents of current runhelloworld.sh that failed. Note line endings contain \r\n (which looks like windows line endings).
-bash-4.2$ od -c runhelloworld.sh 0000000 q u a r k s = . . \r \n \r \n # R 0000020 u n s H e l l o W o r l d \r \n 0000040 # \r \n e x p o r t C L A S S P 0000060 A T H = " $ { q u a r k s } / s 0000100 a m p l e s / l i b / q u a r k 0000120 s . s a m p l e s . t o p o l o 0000140 g y . j a r " \r \n j a v a q u 0000160 a r k s . s a m p l e s . t o p 0000200 o l o g y . H e l l o W o r l d 0000220 \r \n
Contents of earlier version(2/24/2016) of runhelloworld.sh that worked. Note line endings contain \n.
-bash-4.2$ od -c runhelloworld.sh 0000000 q u a r k s = . . \n \n # R u n 0000020 s H e l l o W o r l d \n # \n e 0000040 x p o r t C L A S S P A T H = 0000060 " $ { q u a r k s } / s a m p l 0000100 e s / l i b / q u a r k s . s a 0000120 m p l e s . t o p o l o g y . j 0000140 a r " \n j a v a q u a r k s . 0000160 s a m p l e s . t o p o l o g y 0000200 . H e l l o W o r l d \n
Note 1: Other scripts such as unkafkaclient.sh also failed with different symptoms.
Note 2: the .sh works OK under Windows Git bash.