Re: code generation: paragraph generates another paragraph

2016-12-14 Thread Ruslan Dautkhanov
Hi Moon,

I believe there are many use cases beyound our needs, when users could
access
rest API directly through 'z' variable.

Done: https://issues.apache.org/jira/browse/ZEPPELIN-1814

Thank you.



-- 
Ruslan Dautkhanov

On Wed, Dec 14, 2016 at 8:53 AM, moon  wrote:

> Hi Ruslan,
>
> Although you can always create your function that call Zeppelin's rest API
> to add paragraph,
> providing capability to add paragraph through 'z' (more precisely, from
> Interpreter) helps
> provide user more interactive usage of notebook i think.
>
> Do you mind file an issue for this feature?
>
> Thanks,
> moon
>
> On Mon, Dec 12, 2016 at 2:55 PM Ruslan Dautkhanov 
> wrote:
>
> > We'd like to have paragraph's code generated by a preceding paragraph.
> >
> > For example, one of the use cases we have
> > is when %pyspark generates Hive DDLs.
> > (can't run those in Spark in some cases)
> > Any chance an output of a paragraph can be redirected to a following
> > paragraph?
> >
> > I was thinking something like this could be used
> >
> > https://zeppelin.apache.org/docs/latest/rest-api/rest-
> notebook.html#create-a-new-paragraph
> > http://
> > [zeppelin-server]:[zeppelin-port]/api/notebook/[notebookId]/paragraph
> > But not sure if there is a easy way to call Zeppelin API directly through
> > "z" variable?
> >
> > Something like z.addParagraph(...)
> >
> > In most cases a paragraph generates a SQL code that can't be run directly
> > as Spark SQL
> > and has to be run by a different engine, for example, by Hive.
> >
> >
> > Thanks,
> > Ruslan
> >
> >
>


Re: code generation: paragraph generates another paragraph

2016-12-14 Thread moon
Hi Ruslan,

Although you can always create your function that call Zeppelin's rest API
to add paragraph,
providing capability to add paragraph through 'z' (more precisely, from
Interpreter) helps
provide user more interactive usage of notebook i think.

Do you mind file an issue for this feature?

Thanks,
moon

On Mon, Dec 12, 2016 at 2:55 PM Ruslan Dautkhanov 
wrote:

> We'd like to have paragraph's code generated by a preceding paragraph.
>
> For example, one of the use cases we have
> is when %pyspark generates Hive DDLs.
> (can't run those in Spark in some cases)
> Any chance an output of a paragraph can be redirected to a following
> paragraph?
>
> I was thinking something like this could be used
>
> https://zeppelin.apache.org/docs/latest/rest-api/rest-notebook.html#create-a-new-paragraph
> http://
> [zeppelin-server]:[zeppelin-port]/api/notebook/[notebookId]/paragraph
> But not sure if there is a easy way to call Zeppelin API directly through
> "z" variable?
>
> Something like z.addParagraph(...)
>
> In most cases a paragraph generates a SQL code that can't be run directly
> as Spark SQL
> and has to be run by a different engine, for example, by Hive.
>
>
> Thanks,
> Ruslan
>
>


code generation: paragraph generates another paragraph

2016-12-12 Thread Ruslan Dautkhanov
We'd like to have paragraph's code generated by a preceding paragraph.

For example, one of the use cases we have
is when %pyspark generates Hive DDLs.
(can't run those in Spark in some cases)
Any chance an output of a paragraph can be redirected to a following
paragraph?

I was thinking something like this could be used
https://zeppelin.apache.org/docs/latest/rest-api/rest-notebook.html#create-a-new-paragraph
http://[zeppelin-server]:[zeppelin-port]/api/notebook/[notebookId]/paragraph
But not sure if there is a easy way to call Zeppelin API directly through
"z" variable?

Something like z.addParagraph(...)

In most cases a paragraph generates a SQL code that can't be run directly
as Spark SQL
and has to be run by a different engine, for example, by Hive.


Thanks,
Ruslan