简体   繁体   English

具有64位R的32位数据库驱动程序,用于查询大数据

[英]32-bit Database Driver with 64-bit R to Query Big Data

I have a 32-bit HortonWorks Hadoop/Hive database that I'm able to query within 32-bit R using RODBC . 我有一个32位的HortonWorks Hadoop / Hive数据库,我可以使用RODBC在32位R中RODBC

When trying to connect to the database in 64-bit RI receive this error: 尝试连接到64位RI数据库时收到此错误:

[RODBC] ERROR: state IM014, code 0, message [Microsoft][ODBC Driver Manager] 

The specified DSN contains an architecture mismatch between the Driver and Application

However, the large size of the data requires me to use 64-bit R due to the memory limitations in Windows' 32-bit R. 但是,由于Windows 32位R中的内存限制,大数据需要我使用64位R.

Is there a work around? 有工作吗?

You need to match 32 bit odbc drivers with 32 bit R and the same for 64 bit R. I had a similar problem using 64 bit R with 32 bit office. 您需要将32位odbc驱动程序与32位R匹配,并将64位R匹配相同。我在使用64位R和32位处理时遇到类似问题。

In my case, I used a 32 bit R installation (on my 64 bit windows) to use RODBC with the the data connections set up using the 32 bit drivers (look for this file: odbcad32.exe - this will bring up the 32 bit ODBC data source administrator). 在我的情况下,我使用32位R安装(在我的64位窗口上)使用RODBC与使用32位驱动程序设置的数据连接(查找此文件:odbcad32.exe - 这将调出32位ODBC数据源管理员)。 In my case I save the data as .rdata, and then continue in 64 bit R, but if you need to read and write constantly to the data source it may not be possible to use both. 在我的情况下,我将数据保存为.rdata,然后继续64位R,但如果您需要不断读取和写入数据源,可能无法同时使用它们。

See this post> 看这篇文章>

http://r.789695.n4.nabble.com/RODBC-for-64-bit-R-with-32-bit-Access-td3093030.html http://r.789695.n4.nabble.com/RODBC-for-64-bit-R-with-32-bit-Access-td3093030.html

And this answer: Hand Install of 64-bit MS Access ODBC drivers when 32-bit Office is present 这个答案: 当32位Office存在时,手动安装64位MS Access ODBC驱动程序

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM