Looks like Chris's answer is right

ERROR:
"text":"%pyspark\r\n\r\ndef formatClusterName(index):\r\n    return
'ClusterCenter_' + str(index +1) ",

SUCCESS:
"text":"%pyspark\n\ndef formatClusterName(index):\n    return
'ClusterCenter_' + str(index + 1)",

Both look the same in the UI
Em 17 de mai de 2016 10:18, "Felix Cheung" <felixcheun...@hotmail.com>
escreveu:

> That's a great solution. If one of you don't mind opening a JIRA for this
> we should investigate and fix this lien ending check issue.
>
>
>
>
>
> On Tue, May 17, 2016 at 6:05 AM -0700, "Chris Winne" <
> ch...@missoula.mine.nu> wrote:
>
> On Mon, May 16, 2016 at 10:06:18AM -0300, Guilherme Silveira wrote:
> >    > Hi Folks,
> >    >
> >    > I am evaluating zeppelin right now but I am facing some annoying
> issues.
> >    > I would like to hear from the community, maybe I am doing something
> >    wrong.
> >    >
> >    > The number #1 annoying thing is unpredictable of some interpreters.
> >    Every now and then I get a "pyspark interpleter not found". This is
> pretty
> >    common, and it is not related to the source code itself. The same
> source
> >    code, in different paragraphs, get different results. As you can see
> in
> >    the example attached, the source code is exactly the same, and one
> >    paragraph is right above the other. When I receive a pyspark
> interpreter
> >    not found, there is nothing I can do besides remove the paragraph,
> insert
> >    a new one and pray that the same error does not return. I would say
> that
> >    30% of all paragraphs get this error. How can I debug this?
> >    >
> >    >
>
> I have found that when code was pasted from an editor on windows
> having evil (editorial..) CRLF endings, I had a similar problem (i.e.
> %pyspark interpreter not found). Once I changed my editor to default to
> LF endings, the pasting issue was gone.  This can be checked by
> examining the <notebook>.json file in the notebook directory of
> Zeppelin. Look for a \r\n between code lines instead of simply a \n.
>
> Chris
>

Reply via email to