<?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>topic Connection from on-premise R sparklyr session to Databricks, &amp;quot; invalid method toDF for object 17/org.apache.spark.sql.DataFrameReader fields 0 selected 0&amp;quot; in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/connection-from-on-premise-r-sparklyr-session-to-databricks-quot/m-p/12985#M7727</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working with an on-premise R session and would like to connect to Databricks using sparklyr. RStudio server in this case is not an option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to use jdbc. I tested RJDBC + DBI and can conect locally and perform operations. However, my interest is to perform remote operations using sparklyr and then collect the results locally. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using Azure. In my local environment, these are the commands I'm running:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;config &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;PRE&gt;&lt;CODE&gt;The path for the jar file as well as the jdbc string are correct (supressed some text with "xxxx" for privacy).  What I might be doing wrong?  &lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;PRE&gt;&lt;CODE&gt;My sessionInfo()&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;CODE&gt;&amp;gt; sessionInfo() 
&amp;nbsp;
R version 4.2.0 (2022-04-22) 
&amp;nbsp;
Platform: x86_64-pc-linux-gnu (64-bit) 
&amp;nbsp;
Running under: CentOS Linux 7 (Core) 
&amp;nbsp;
 
&amp;nbsp;
Matrix products: default 
&amp;nbsp;
BLAS/LAPACK: /share/software/user/open/openblas/0.3.10/lib/libopenblas_haswellp-r0.3.10.so 
&amp;nbsp;
 
&amp;nbsp;
locale: 
&amp;nbsp;
 [1] LC_CTYPE=en_US.UTF-8      LC_NUMERIC=C              
&amp;nbsp;
 [3] LC_TIME=en_US.UTF-8       LC_COLLATE=en_US.UTF-8    
&amp;nbsp;
 [5] LC_MONETARY=en_US.UTF-8   LC_MESSAGES=en_US.UTF-8   
&amp;nbsp;
 [7] LC_PAPER=en_US.UTF-8      LC_NAME=C                 
&amp;nbsp;
 [9] LC_ADDRESS=C              LC_TELEPHONE=C            
&amp;nbsp;
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       
&amp;nbsp;
 
&amp;nbsp;
attached base packages: 
&amp;nbsp;
[1] stats    graphics grDevices utils    datasets methods  base     
&amp;nbsp;
 
&amp;nbsp;
other attached packages: 
&amp;nbsp;
[1] catalog_0.1.1 sparklyr_1.7.9 
&amp;nbsp;
 
&amp;nbsp;
loaded via a namespace (and not attached): 
&amp;nbsp;
 [1] rstudioapi_0.14  magrittr_2.0.3   tidyselect_1.2.0 R6_2.5.1         
&amp;nbsp;
 [5] rlang_1.0.6      fastmap_1.1.0    fansi_1.0.3      httr_1.4.4       
&amp;nbsp;
 [9] dplyr_1.0.10     tools_4.2.0      parallel_4.2.0   config_0.3.1     
&amp;nbsp;
[13] utf8_1.2.2       cli_3.5.0        DBI_1.1.3        withr_2.5.0      
&amp;nbsp;
[17] dbplyr_2.2.1     askpass_1.1      htmltools_0.5.4  ellipsis_0.3.2   
&amp;nbsp;
[21] openssl_2.0.5    yaml_2.3.5       assertthat_0.2.1 rprojroot_2.0.3  
&amp;nbsp;
[25] digest_0.6.29    tibble_3.1.8     lifecycle_1.0.3  forge_0.2.0      
&amp;nbsp;
[29] tidyr_1.2.1      purrr_1.0.0      base64enc_0.1-3  htmlwidgets_1.6.1 
&amp;nbsp;
[33] vctrs_0.5.1      glue_1.6.2       compiler_4.2.0   pillar_1.8.1     
&amp;nbsp;
[37] r2d3_0.2.6       generics_0.1.3   jsonlite_1.8.4   pkgconfig_2.0.3  
&amp;nbsp;&lt;/CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 08 Jan 2023 23:36:03 GMT</pubDate>
    <dc:creator>leandro</dc:creator>
    <dc:date>2023-01-08T23:36:03Z</dc:date>
    <item>
      <title>Connection from on-premise R sparklyr session to Databricks, " invalid method toDF for object 17/org.apache.spark.sql.DataFrameReader fields 0 selected 0"</title>
      <link>https://community.databricks.com/t5/data-engineering/connection-from-on-premise-r-sparklyr-session-to-databricks-quot/m-p/12985#M7727</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working with an on-premise R session and would like to connect to Databricks using sparklyr. RStudio server in this case is not an option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to use jdbc. I tested RJDBC + DBI and can conect locally and perform operations. However, my interest is to perform remote operations using sparklyr and then collect the results locally. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using Azure. In my local environment, these are the commands I'm running:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;config &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;PRE&gt;&lt;CODE&gt;The path for the jar file as well as the jdbc string are correct (supressed some text with "xxxx" for privacy).  What I might be doing wrong?  &lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;PRE&gt;&lt;CODE&gt;My sessionInfo()&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;CODE&gt;&amp;gt; sessionInfo() 
&amp;nbsp;
R version 4.2.0 (2022-04-22) 
&amp;nbsp;
Platform: x86_64-pc-linux-gnu (64-bit) 
&amp;nbsp;
Running under: CentOS Linux 7 (Core) 
&amp;nbsp;
 
&amp;nbsp;
Matrix products: default 
&amp;nbsp;
BLAS/LAPACK: /share/software/user/open/openblas/0.3.10/lib/libopenblas_haswellp-r0.3.10.so 
&amp;nbsp;
 
&amp;nbsp;
locale: 
&amp;nbsp;
 [1] LC_CTYPE=en_US.UTF-8      LC_NUMERIC=C              
&amp;nbsp;
 [3] LC_TIME=en_US.UTF-8       LC_COLLATE=en_US.UTF-8    
&amp;nbsp;
 [5] LC_MONETARY=en_US.UTF-8   LC_MESSAGES=en_US.UTF-8   
&amp;nbsp;
 [7] LC_PAPER=en_US.UTF-8      LC_NAME=C                 
&amp;nbsp;
 [9] LC_ADDRESS=C              LC_TELEPHONE=C            
&amp;nbsp;
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       
&amp;nbsp;
 
&amp;nbsp;
attached base packages: 
&amp;nbsp;
[1] stats    graphics grDevices utils    datasets methods  base     
&amp;nbsp;
 
&amp;nbsp;
other attached packages: 
&amp;nbsp;
[1] catalog_0.1.1 sparklyr_1.7.9 
&amp;nbsp;
 
&amp;nbsp;
loaded via a namespace (and not attached): 
&amp;nbsp;
 [1] rstudioapi_0.14  magrittr_2.0.3   tidyselect_1.2.0 R6_2.5.1         
&amp;nbsp;
 [5] rlang_1.0.6      fastmap_1.1.0    fansi_1.0.3      httr_1.4.4       
&amp;nbsp;
 [9] dplyr_1.0.10     tools_4.2.0      parallel_4.2.0   config_0.3.1     
&amp;nbsp;
[13] utf8_1.2.2       cli_3.5.0        DBI_1.1.3        withr_2.5.0      
&amp;nbsp;
[17] dbplyr_2.2.1     askpass_1.1      htmltools_0.5.4  ellipsis_0.3.2   
&amp;nbsp;
[21] openssl_2.0.5    yaml_2.3.5       assertthat_0.2.1 rprojroot_2.0.3  
&amp;nbsp;
[25] digest_0.6.29    tibble_3.1.8     lifecycle_1.0.3  forge_0.2.0      
&amp;nbsp;
[29] tidyr_1.2.1      purrr_1.0.0      base64enc_0.1-3  htmlwidgets_1.6.1 
&amp;nbsp;
[33] vctrs_0.5.1      glue_1.6.2       compiler_4.2.0   pillar_1.8.1     
&amp;nbsp;
[37] r2d3_0.2.6       generics_0.1.3   jsonlite_1.8.4   pkgconfig_2.0.3  
&amp;nbsp;&lt;/CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 08 Jan 2023 23:36:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connection-from-on-premise-r-sparklyr-session-to-databricks-quot/m-p/12985#M7727</guid>
      <dc:creator>leandro</dc:creator>
      <dc:date>2023-01-08T23:36:03Z</dc:date>
    </item>
  </channel>
</rss>

