You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@zeppelin.apache.org by Daubignard Marion <Ma...@ssi.gouv.fr> on 2021/10/18 18:47:26 UTC

Precode for abstract interpreters

Hi everyone,
I am searching the best way to initialize a few settings before running the shell or terminal interpreters, and I realized that the precode feature is not implemented for them, since they do not extend the Interpreter class, but rather the AbstractInterpreter class.
Hence, my question : is there a reason other than < this has not been done yet > for this ? Like something incompatible with this precode feature in the AbstractInterpreter class ?
Thanks for your help,
-M
Les donn?es ? caract?re personnel recueillies et trait?es dans le cadre de cet ?change, le sont ? seule fin d'ex?cution d'une relation professionnelle et s'op?rent dans cette seule finalit? et pour la dur?e n?cessaire ? cette relation. Si vous souhaitez faire usage de vos droits de consultation, de rectification et de suppression de vos donn?es, veuillez contacter contact.rgpd@sgdsn.gouv.fr. Si vous avez re?u ce message par erreur, nous vous remercions d'en informer l'exp?diteur et de d?truire le message. The personal data collected and processed during this exchange aims solely at completing a business relationship and is limited to the necessary duration of that relationship. If you wish to use your rights of consultation, rectification and deletion of your data, please contact: contact.rgpd@sgdsn.gouv.fr. If you have received this message in error, we thank you for informing the sender and destroying the message.

RE: Precode for abstract interpreters

Posted by Daubignard Marion <Ma...@ssi.gouv.fr>.
My bad... AbstractInterpreter extends Interpreter... so I guess I should manage to make it work ; I can't for now. Anyone tried this already ?

De : Daubignard Marion <Ma...@ssi.gouv.fr>
Envoyé : lundi 18 octobre 2021 20:47
À : users@zeppelin.apache.org
Objet : Precode for abstract interpreters

Hi everyone,
I am searching the best way to initialize a few settings before running the shell or terminal interpreters, and I realized that the precode feature is not implemented for them, since they do not extend the Interpreter class, but rather the AbstractInterpreter class.
Hence, my question : is there a reason other than « this has not been done yet » for this ? Like something incompatible with this precode feature in the AbstractInterpreter class ?
Thanks for your help,
-M
Les données à caractère personnel recueillies et traitées dans le cadre de cet échange, le sont à seule fin d'exécution d'une relation professionnelle et s'opèrent dans cette seule finalité et pour la durée nécessaire à cette relation. Si vous souhaitez faire usage de vos droits de consultation, de rectification et de suppression de vos données, veuillez contacter contact.rgpd@sgdsn.gouv.fr<ma...@sgdsn.gouv.fr>. Si vous avez reçu ce message par erreur, nous vous remercions d'en informer l'expéditeur et de détruire le message. The personal data collected and processed during this exchange aims solely at completing a business relationship and is limited to the necessary duration of that relationship. If you wish to use your rights of consultation, rectification and deletion of your data, please contact: contact.rgpd@sgdsn.gouv.fr<ma...@sgdsn.gouv.fr>. If you have received this message in error, we thank you for informing the sender and destroying the message.
Les données à caractère personnel recueillies et traitées dans le cadre de cet échange, le sont à seule fin d'exécution d'une relation professionnelle et s'opèrent dans cette seule finalité et pour la durée nécessaire à cette relation. Si vous souhaitez faire usage de vos droits de consultation, de rectification et de suppression de vos données, veuillez contacter contact.rgpd@sgdsn.gouv.fr. Si vous avez reçu ce message par erreur, nous vous remercions d'en informer l'expéditeur et de détruire le message. The personal data collected and processed during this exchange aims solely at completing a business relationship and is limited to the necessary duration of that relationship. If you wish to use your rights of consultation, rectification and deletion of your data, please contact: contact.rgpd@sgdsn.gouv.fr. If you have received this message in error, we thank you for informing the sender and destroying the message.

Re: Precode for abstract interpreters

Posted by Jeff Zhang <zj...@gmail.com>.
What kind of pre code you'd like to execute for your shell ?

Daubignard Marion <Ma...@ssi.gouv.fr> 于2021年10月19日周二 上午3:22写道:

> OK, so it’s not that I don’t manage to do it, actually, it’s that precode
> is not what I’m looking for.
>
>
>
> Using the classname and parameter zeppelin.<classname>.precode, everytime
> my java interpreter is spawned, my precode snippet is prepended to the
> first bash code executed by shell. However, every time I execute my shell
> interpreter, a new bash -c is spawned, and then nothing persists of my
> environment.
>
>
>
> Does anyone have an idea  to solve this problem ?
>
>
>
> Thanks again,
>
> Marion
>
>
>
> *De :* Daubignard Marion
> *Envoyé :* lundi 18 octobre 2021 21:00
> *À :* users@zeppelin.apache.org
> *Objet :* RE: Precode for abstract interpreters
>
>
>
> My bad… AbstractInterpreter extends Interpreter… so I guess I should
> manage to make it work ; I can’t for now. Anyone tried this already ?
>
>
>
> *De :* Daubignard Marion <Ma...@ssi.gouv.fr>
> *Envoyé :* lundi 18 octobre 2021 20:47
> *À :* users@zeppelin.apache.org
> *Objet :* Precode for abstract interpreters
>
>
>
> Hi everyone,
>
> I am searching the best way to initialize a few settings before running
> the shell or terminal interpreters, and I realized that the precode feature
> is not implemented for them, since they do not extend the Interpreter
> class, but rather the AbstractInterpreter class.
>
> Hence, my question : is there a reason other than « this has not been done
> yet » for this ? Like something incompatible with this precode feature in
> the AbstractInterpreter class ?
>
> Thanks for your help,
>
> -M
>
> Les données à caractère personnel recueillies et traitées dans le cadre de
> cet échange, le sont à seule fin d’exécution d’une relation professionnelle
> et s’opèrent dans cette seule finalité et pour la durée nécessaire à cette
> relation. Si vous souhaitez faire usage de vos droits de consultation, de
> rectification et de suppression de vos données, veuillez contacter
> contact.rgpd@sgdsn.gouv.fr. Si vous avez reçu ce message par erreur, nous
> vous remercions d’en informer l’expéditeur et de détruire le message. The
> personal data collected and processed during this exchange aims solely at
> completing a business relationship and is limited to the necessary duration
> of that relationship. If you wish to use your rights of consultation,
> rectification and deletion of your data, please contact:
> contact.rgpd@sgdsn.gouv.fr. If you have received this message in error,
> we thank you for informing the sender and destroying the message.
> Les données à caractère personnel recueillies et traitées dans le cadre de
> cet échange, le sont à seule fin d’exécution d’une relation professionnelle
> et s’opèrent dans cette seule finalité et pour la durée nécessaire à cette
> relation. Si vous souhaitez faire usage de vos droits de consultation, de
> rectification et de suppression de vos données, veuillez contacter
> contact.rgpd@sgdsn.gouv.fr. Si vous avez reçu ce message par erreur, nous
> vous remercions d’en informer l’expéditeur et de détruire le message. The
> personal data collected and processed during this exchange aims solely at
> completing a business relationship and is limited to the necessary duration
> of that relationship. If you wish to use your rights of consultation,
> rectification and deletion of your data, please contact:
> contact.rgpd@sgdsn.gouv.fr. If you have received this message in error,
> we thank you for informing the sender and destroying the message.
>


-- 
Best Regards

Jeff Zhang

RE: Precode for abstract interpreters

Posted by Daubignard Marion <Ma...@ssi.gouv.fr>.
OK, so it's not that I don't manage to do it, actually, it's that precode is not what I'm looking for.

Using the classname and parameter zeppelin.<classname>.precode, everytime my java interpreter is spawned, my precode snippet is prepended to the first bash code executed by shell. However, every time I execute my shell interpreter, a new bash -c is spawned, and then nothing persists of my environment.

Does anyone have an idea  to solve this problem ?

Thanks again,
Marion

De : Daubignard Marion
Envoyé : lundi 18 octobre 2021 21:00
À : users@zeppelin.apache.org
Objet : RE: Precode for abstract interpreters

My bad... AbstractInterpreter extends Interpreter... so I guess I should manage to make it work ; I can't for now. Anyone tried this already ?

De : Daubignard Marion <Ma...@ssi.gouv.fr>>
Envoyé : lundi 18 octobre 2021 20:47
À : users@zeppelin.apache.org<ma...@zeppelin.apache.org>
Objet : Precode for abstract interpreters

Hi everyone,
I am searching the best way to initialize a few settings before running the shell or terminal interpreters, and I realized that the precode feature is not implemented for them, since they do not extend the Interpreter class, but rather the AbstractInterpreter class.
Hence, my question : is there a reason other than « this has not been done yet » for this ? Like something incompatible with this precode feature in the AbstractInterpreter class ?
Thanks for your help,
-M
Les données à caractère personnel recueillies et traitées dans le cadre de cet échange, le sont à seule fin d'exécution d'une relation professionnelle et s'opèrent dans cette seule finalité et pour la durée nécessaire à cette relation. Si vous souhaitez faire usage de vos droits de consultation, de rectification et de suppression de vos données, veuillez contacter contact.rgpd@sgdsn.gouv.fr<ma...@sgdsn.gouv.fr>. Si vous avez reçu ce message par erreur, nous vous remercions d'en informer l'expéditeur et de détruire le message. The personal data collected and processed during this exchange aims solely at completing a business relationship and is limited to the necessary duration of that relationship. If you wish to use your rights of consultation, rectification and deletion of your data, please contact: contact.rgpd@sgdsn.gouv.fr<ma...@sgdsn.gouv.fr>. If you have received this message in error, we thank you for informing the sender and destroying the message.
Les données à caractère personnel recueillies et traitées dans le cadre de cet échange, le sont à seule fin d'exécution d'une relation professionnelle et s'opèrent dans cette seule finalité et pour la durée nécessaire à cette relation. Si vous souhaitez faire usage de vos droits de consultation, de rectification et de suppression de vos données, veuillez contacter contact.rgpd@sgdsn.gouv.fr. Si vous avez reçu ce message par erreur, nous vous remercions d'en informer l'expéditeur et de détruire le message. The personal data collected and processed during this exchange aims solely at completing a business relationship and is limited to the necessary duration of that relationship. If you wish to use your rights of consultation, rectification and deletion of your data, please contact: contact.rgpd@sgdsn.gouv.fr. If you have received this message in error, we thank you for informing the sender and destroying the message.