<?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 connect to CDP Impala from R in CDSW in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-connect-to-CDP-Impala-from-R-in-CDSW/m-p/371945#M241124</link>
    <description>&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;Dear community,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;I am writing to you because I have the following problem: How can I connect to impala tables from Cloudera AI Workbench, if I am setting up a session where R 3.x or R 4.x is used.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;I managed to make the connection using python, but I need to do it using R as well.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;I have the connection host, the port, the authentication mechanism.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;For example, the following python code manages to connect:&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;"from impala.dbapi &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;import connect&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;conn = connect(host='host_name',&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;port=21050,&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;auth_mechanism='GSSAPI',&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;use_ssl=True,&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;kerberos_service_name='impala')&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;cursor = conn.cursor()"&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;But I need to achieve the connection now using R in Cloudera Data Science Workbench.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;Does anyone know how to translate the above code to R 3.x or R 4.x?&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;I already tried using the 'RImpala' library, but it was removed from the CRAN repository according to &lt;A href="https://cran.r-project.org/web/packages/RImpala/index.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://cran.r-project.org/web/packages/RImpala/index.html&lt;/A&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;If anyone has an idea how to help me I would be very grateful.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Apr 2026 07:08:27 GMT</pubDate>
    <dc:creator>asandovala21</dc:creator>
    <dc:date>2026-04-21T07:08:27Z</dc:date>
    <item>
      <title>How to connect to CDP Impala from R in CDSW</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-connect-to-CDP-Impala-from-R-in-CDSW/m-p/371945#M241124</link>
      <description>&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;Dear community,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;I am writing to you because I have the following problem: How can I connect to impala tables from Cloudera AI Workbench, if I am setting up a session where R 3.x or R 4.x is used.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;I managed to make the connection using python, but I need to do it using R as well.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;I have the connection host, the port, the authentication mechanism.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;For example, the following python code manages to connect:&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;"from impala.dbapi &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;import connect&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;conn = connect(host='host_name',&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;port=21050,&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;auth_mechanism='GSSAPI',&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;use_ssl=True,&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;kerberos_service_name='impala')&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;cursor = conn.cursor()"&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;But I need to achieve the connection now using R in Cloudera Data Science Workbench.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;Does anyone know how to translate the above code to R 3.x or R 4.x?&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;I already tried using the 'RImpala' library, but it was removed from the CRAN repository according to &lt;A href="https://cran.r-project.org/web/packages/RImpala/index.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://cran.r-project.org/web/packages/RImpala/index.html&lt;/A&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;If anyone has an idea how to help me I would be very grateful.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 07:08:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-connect-to-CDP-Impala-from-R-in-CDSW/m-p/371945#M241124</guid>
      <dc:creator>asandovala21</dc:creator>
      <dc:date>2026-04-21T07:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect to CDP Impala from R in CDSW</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-connect-to-CDP-Impala-from-R-in-CDSW/m-p/371966#M241128</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/105361"&gt;@asandovala21&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our CDSW experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/28743"&gt;@Gopinath&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/25179"&gt;@Mike&lt;/a&gt;&amp;nbsp; who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 19:45:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-connect-to-CDP-Impala-from-R-in-CDSW/m-p/371966#M241128</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2023-06-01T19:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect to CDP Impala from R in CDSW</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-connect-to-CDP-Impala-from-R-in-CDSW/m-p/371968#M241130</link>
      <description>&lt;P&gt;Hi, the documentation suggests to use SparklyR to read from Impala in R:&lt;BR /&gt;&lt;A href="https://docs.cloudera.com/cdsw/1.10.3/import-data/topics/cdsw-running-queries-on-impala-tables.html#pnavId4" target="_blank"&gt;https://docs.cloudera.com/cdsw/1.10.3/import-data/topics/cdsw-running-queries-on-impala-tables.html#pnavId4&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I think you could also use RJDBC library to set up a JDBC connection to impala:&lt;BR /&gt;&lt;A href="https://cran.r-project.org/web/packages/RJDBC/index.html" target="_blank"&gt;https://cran.r-project.org/web/packages/RJDBC/index.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 21:39:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-connect-to-CDP-Impala-from-R-in-CDSW/m-p/371968#M241130</guid>
      <dc:creator>Mike</dc:creator>
      <dc:date>2023-06-01T21:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect to CDP Impala from R in CDSW</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-connect-to-CDP-Impala-from-R-in-CDSW/m-p/372130#M241162</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/105361"&gt;@asandovala21&lt;/a&gt;&amp;nbsp;Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 13:32:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-connect-to-CDP-Impala-from-R-in-CDSW/m-p/372130#M241162</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2023-06-05T13:32:11Z</dc:date>
    </item>
  </channel>
</rss>

