<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question How to get variable value in %jdbc context in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-variable-value-in-jdbc-context/m-p/122665#M34386</link>
    <description>&lt;P&gt;In zeppelin notebook, there are 2 paragraphs&lt;/P&gt;&lt;P&gt;In paragraph 1 - I have a python script which gets value from a rest-api call and assign it to a variable. I used z.put("var1",var) to set the variable. &lt;/P&gt;&lt;P&gt;In paragraph-2 , I am using %jdbc to run a sql query on a mysql table. e.g select abc from tb1 where name = '&amp;lt;variable&amp;gt;'&lt;/P&gt;&lt;P&gt;Question is - How can i pass var1 to the query and replace &amp;lt;variable&amp;gt; with value of var1. Any hints will be helpful&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jul 2016 19:26:32 GMT</pubDate>
    <dc:creator>pankaj_singh</dc:creator>
    <dc:date>2016-07-11T19:26:32Z</dc:date>
    <item>
      <title>How to get variable value in %jdbc context</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-variable-value-in-jdbc-context/m-p/122665#M34386</link>
      <description>&lt;P&gt;In zeppelin notebook, there are 2 paragraphs&lt;/P&gt;&lt;P&gt;In paragraph 1 - I have a python script which gets value from a rest-api call and assign it to a variable. I used z.put("var1",var) to set the variable. &lt;/P&gt;&lt;P&gt;In paragraph-2 , I am using %jdbc to run a sql query on a mysql table. e.g select abc from tb1 where name = '&amp;lt;variable&amp;gt;'&lt;/P&gt;&lt;P&gt;Question is - How can i pass var1 to the query and replace &amp;lt;variable&amp;gt; with value of var1. Any hints will be helpful&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2016 19:26:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-variable-value-in-jdbc-context/m-p/122665#M34386</guid>
      <dc:creator>pankaj_singh</dc:creator>
      <dc:date>2016-07-11T19:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to get variable value in %jdbc context</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-variable-value-in-jdbc-context/m-p/122666#M34387</link>
      <description>&lt;P&gt;Its currently not possible as in zeppelin 0.6. &lt;/P&gt;&lt;P&gt;"Zeppelin's interpreter abstraction allows any interpreter creates something like Z context. To expose Z context to user in %jdbc interpreter, we need proper syntax for it. i.e. %spark interpreter expose Z context as scala api. %pyspark interpreter expose Z context as python api. %jdbc interpreter expose Z context as ..?"&lt;/P&gt;&lt;P&gt;Related defect -  &lt;A href="https://issues.apache.org/jira/browse/ZEPPELIN-1363"&gt;https://issues.apache.org/jira/browse/ZEPPELIN-1363&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2016 22:22:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-variable-value-in-jdbc-context/m-p/122666#M34387</guid>
      <dc:creator>pankaj_singh</dc:creator>
      <dc:date>2016-10-14T22:22:56Z</dc:date>
    </item>
  </channel>
</rss>

