May Wone created QUARKS-44:
------------------------------

             Summary: scripts runhelloworld.sh fails with "\r: command not 
found"
                 Key: QUARKS-44
                 URL: https://issues.apache.org/jira/browse/QUARKS-44
             Project: Quarks
          Issue Type: Bug
          Components: Samples
         Environment: Linux 
            Reporter: May Wone
            Priority: Minor


runhelloworld.sh failed with
{code}
-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
{code}

Contents of current  runhelloworld.sh that failed. Note line endings contain 
\r\n (which looks like windows line endings).
{code}
-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
{code}

Contents of earlier version of runhelloworld.sh that worked. Note line endings 
contain \n.
{code}
-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
{code}

Note 1: Other scripts such as unkafkaclient.sh also failed with different 
symptoms.

Note 2:  the .sh works OK under Windows Git bash.





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to