简体   繁体   English

带有Apache箭头的Sparklyr R失败,意外终止:未找到对象'as_tibble'

[英]Sparklyr R with apache arrow fails, terminated unexpectedly: object 'as_tibble' not found

I am trying to use sparklyr with arrow to increase performance as seen for example here , however running into errors. 我正在尝试使用带有箭头的 sparklyr来提高性能,例如此处所示 ,但是遇到错误。

Here is a (hopefully) reproducible example: 这是(希望)可复制的示例:

# Prepare session and data
library(sparklyr)
library(dplyr)
config <- sparklyr::spark_config()
sc <- sparklyr::spark_connect(master = "local", config = config)
mtcars_sp <- dplyr::copy_to(sc, datasets::mtcars, overwrite = TRUE)

Using sparklyr without arrow works fine: 使用不带箭头的sparklyr可以正常工作:

if ("arrow" %in% .packages()) detach("package:arrow")
mtcars_sp %>% sparklyr::spark_apply(function(df) df) %>% collect()

However, adding arrow to the mix and running the same produces errors: 但是,将箭头添加到混合中并运行它会产生错误:

library(arrow)
mtcars_sp %>% sparklyr::spark_apply(function(df) df) %>% collect()

The error message does not seem too helpful, but looking at the worker log I see: 错误消息似乎并没有太大帮助,但查看工作日志,我看到:

ERROR sparklyr: RScript (6891) terminated unexpectedly: object 'as_tibble' not found 错误sparklyr:RScript(6891)意外终止:找不到对象'as_tibble'

Relevant sessioninfo: 相关会话信息:

  • R version 3.6.0, x86_64-redhat-linux-gnu (64-bit) R版本3.6.0,x86_64-redhat-linux-gnu(64位)
  • Packages: arrow_0.14.1, dplyr_0.8.3, sparklyr_1.0.1 包裹:arrow_0.14.1,dplyr_0.8.3,sparklyr_1.0.1
  • Spark version 2.4.3 Spark版本2.4.3

There's a newer version of sparklyr available, 1.0.2. 有可用的更新版本的sparklyr 1.0.2。 It looks like there are some changes in that release that are needed to work with arrow 0.14.x. 看起来该版本中有一些更改需要使用arrow 0.14.x。 sparklyr 's continuous integration with the latest version of arrow is passing. sparklyr与最新版本的arrow持续集成正在过去。

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

相关问题 如何修复R中的“错误:&#39;名称空间:dplyr&#39;未导出对象&#39;as_tibble&#39;错误:包&#39;BLANK&#39;的延迟加载失败” - How to fix “Error : object ‘as_tibble’ is not exported by 'namespace:dplyr' ERROR: lazy loading failed for package ‘BLANK’” in R 在 purrr::map 调用 R 中的 object 上强制应用权利 as_tibble function - Force the application of the right as_tibble function on an object in a purrr::map call in R as_tibble()无法正常工作 - as_tibble() not working as expected as_tibble控制拼合级别 - as_tibble control level of flattening 避免在 dplyr 中重复 as_tibble() - Avoid repeating as_tibble() in dplyr 如何在 R 中将 as_tibble() 格式的时间序列数据转换为 as_tsibble() 格式? - How to transform an as_tibble() format time series data into an as_tsibble() format in R? 我可以控制 as_tibble 或 as.data.frame 如何处理 R 中的一维数据吗? - Can I control how as_tibble or as.data.frame treat one-dimensional data in R? 使用purrr :: map在R中取消嵌套JSON时会丢失名称(取消列表,t,as_tibble) - Losing names when unnesting a JSON in R using purrr::map (unlist, t, as_tibble) 在 R 中找不到故障排除对象“tibble_update_attrs” - troubleshooting object 'tibble_update_attrs' not found in R as_tibble只返回一个变量 - as_tibble only returns a single variable
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM